Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.2 KB

README.md

File metadata and controls

23 lines (18 loc) · 1.2 KB

nvim-clap-lsp

nvim lsp handlers a la nvim-lsputils, but using vim-clap as the UI

example

vim.lsp.handlers['textDocument/codeAction']     = require'clap-lsp.codeAction'.code_action_handler
vim.lsp.handlers['textDocument/definition']     = require'clap-lsp.locations'.definition_handler
vim.lsp.handlers['textDocument/documentSymbol'] = require'clap-lsp.symbols'.document_handler
vim.lsp.handlers['textDocument/references']     = require'clap-lsp.locations'.references_handler
vim.lsp.handlers['workspace/symbol']            = require'clap-lsp.symbols'.workspace_handler

if you don't want to input a query for the workspace_symbol handler, you may create a binding for the command:

:lua vim.lsp.buf.workspace_symbol("")<CR>

screenshots

image image image