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
- Host: GitHub
- URL: https://github.com/goolord/nvim-clap-lsp
- Owner: goolord
- License: mit
- Created: 2021-03-11T00:55:01.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-28T17:39:11.000Z (over 4 years ago)
- Last Synced: 2025-03-24T10:38:50.636Z (about 1 year ago)
- Topics: lua, neovim, nvim-lspconfig, vim-clap
- Language: Lua
- Homepage:
- Size: 349 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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


