Using fish-lsp's commands #36
ndonfris
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Showing the new
onExecuteCommand()handlerImportant
Initially included in release version 1.0.5
This handler allows clients to call lsp defined commands.
The commands will then be run on the server. Once the server completes the command, a popup formatting the output of the command will be displayed in the client.
Note
using coc.nvim to run these commands
Therefore, the following examples use:
CocCommand fish-lsp.cmd <Args...>to be executedfish-lsp.executeLine
Executes the line specified in the file.
Command requires
fish-lsp.executeLine <Filepath> <LineNumber>fish-lsp.execute and fish-lsp.executeBuffer
Executes the entire file.
executeandexecuteBufferare equivalent commands.Command requires
fish-lsp.execute <Filepath>Note
There is also
fish-lsp.createThemewhich needs further testingUseful Client Example
Here is a simple neovim configuaration to bind the command's above to a keybinding
~/.config/nvim/lua/ftplugin/fish.lua
More commands will be included with future fish-lsp releases.
Ideas for new commands, other client configurations, or any any other relevant information here!
Beta Was this translation helpful? Give feedback.
All reactions