https://github.com/niuiic/lsp-commands.nvim
https://github.com/niuiic/lsp-commands.nvim
lsp neovim plugin
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/niuiic/lsp-commands.nvim
- Owner: niuiic
- License: mit
- Created: 2023-02-28T11:56:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-21T00:48:47.000Z (11 months ago)
- Last Synced: 2025-01-30T17:38:44.881Z (8 months ago)
- Topics: lsp, neovim, plugin
- Language: Lua
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lsp-commands.nvim
[More neovim plugins](https://github.com/niuiic/awesome-neovim-plugins)
## Usage
Register lsp commands, then pick and run them.
```lua
---@param filter (fun(name): boolean) | nil
---@param silent boolean | nil
function M.run_command(filter, silent) end---@param command lsp-commands.Command
function M.register_command(command) end---@class lsp-commands.Command
---@field name string
---@field run fun()
---@field is_enabled (fun(): boolean) | nil
```