Git Product home page Git Product logo

nvim-docs-view's Introduction

StandWithPalestine

nvim-docs-view

A neovim plugin to display lsp hover documentation in a side panel.

Inspired by the VSCode extension Docs View.

doc-view-example

Installation

Using packer.nvim

use {
  "amrbashir/nvim-docs-view",
  opt = true,
  cmd = { "DocsViewToggle" },
  config = function()
    require("docs-view").setup {
      position = "right",
      width = 60,
    }
  end
}

Using vim-plug

Plug 'amrbashir/nvim-docs-view', { 'on': 'DocsViewToggle'}

lua << EOF
  require("docs-view").setup {
    position = "right",
    width = 60,
  }
EOF

Using lazy.nvim

{
  "amrbashir/nvim-docs-view",
  lazy = true,
  cmd = "DocsViewToggle",
  opts = {
    position = "right",
    width = 60
  }
}

Options

  • position:
    • description: Determines where to open the docs view panel.
    • type: string
    • default: right
    • possible: right | left | top | bottom
  • height:
    • description: Height of the docs view panel when position is set to top or bottom
    • type: number
    • default: 10
  • width:
    • description: Width of the docs view panel when position is set to right or left
    • type: number
    • default: 60
  • update_mode:
    • description: Determines the mechanism used to update the docs view panel content. If auto, the content will update upon cursor move. If manual, the content will only update once :DocsViewUpdate is called.
    • type: string
    • default: auto
    • possible: auto | manual

Commands

  • :DocsViewToggle to open/close the docs view panel.
  • :DocsViewUpdate to manually update the docs view panel (will open the docs view panel if necessary).

LICENSE

MIT © Amr Bashir

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.