Skip to content

My attempt at making a nice UI for nvims builtin LSP.

Notifications You must be signed in to change notification settings

anott03/lspui.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

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()

About

My attempt at making a nice UI for nvims builtin LSP.

Resources

Stars

Watchers

Forks