Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 973 Bytes

README.md

File metadata and controls

38 lines (35 loc) · 973 Bytes

LspUI.nvim

A fairly simply frontend for neovim's builtin lsp to do things like code actions and token renaming. Please note that this project is very much a WIP, and things will likely break or change.

This project is largely inspired by lspsaga.

Installation

Vim-Plug

Plug 'nvim-lua/plenary.nvim' " required for lspui to work
Plug 'anott03/lspui.nvim', { 'branch': 'main' }

Packer.nvim

use {
  'anott03/lspui.nvim',
  branch = 'main',
  requires = {'nvim-lua/plenary.nvim'},
}

Usage

Currently all functionality must be called with lua.

Code Actions

require('lspui.code_actions').action_picker()

As a keybinding it might look something like this:

<nnoremap> <leader>a lua require('lspui.code_actions').action_picker()<CR>

Line Diagnostics

require('lspui.hover').line_diagnostics()

Hover Docs

require('lspui.hover').hover_doc()