An open API service indexing awesome lists of open source software.

https://github.com/goolord/nvim-clap-lsp

nvim-lsp handlers using vim-clap as the ui
https://github.com/goolord/nvim-clap-lsp

lua neovim nvim-lspconfig vim-clap

Last synced: about 1 year ago
JSON representation

nvim-lsp handlers using vim-clap as the ui

Awesome Lists containing this project

README

          

# nvim-clap-lsp

nvim lsp handlers a la [nvim-lsputils](https://github.com/RishabhRD/nvim-lsputils), but using [vim-clap](https://github.com/liuchengxu/vim-clap) as the UI

## example

```lua
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:
```viml
:lua vim.lsp.buf.workspace_symbol("")
```

## screenshots
![image](https://user-images.githubusercontent.com/24906808/134748297-4b193cc4-e0ea-4e29-972e-344ff67598b7.png "screenshot of the symbol handler")
![image](https://user-images.githubusercontent.com/24906808/134748377-03a02aa8-e4ca-466a-b192-e75a2d5f5f19.png)
![image](https://user-images.githubusercontent.com/24906808/134756018-9db593d3-dcbf-4401-b7f2-95328c2ca1c0.png)