A collection of lsp-clients for the fish language server.
Currently, there are 7 different client implementations included on branches here:
- native-nvim
- uses the built-in LSP client
- no package manager or external dependencies (except for neovim v0.8+)
- helix
- setup for helix
- uses languages.toml example
- kickstart
- uses kickstart.nvim as starting point
- uses lazy for lazy loading plugins
- coc-example
- a semi configured coc.nvim setup
- includes telescope, telescope coc, noice, vim-plug, and a few other plugins
- coc-minimal
- includes the default coc.nvim setup
- coc-settings.json includes fish-lsp
- packer
- includes packer.nvim as package manage
- sets up fish-lsp as a language server with keybinds
- vscode
- setup for vscode
- uses vscode-fish-lsp repo for vscode extension
- BBEdit
- includes [language modules/fish.plist] for fish language support
- includes documentation for hooking up the language server to BBEdit
Note
Don't forget to make sure your fish-lsp command is working
fish-lsp --help-all
fish-lsp start --dump
fish-lsp info --time-startup- clone the repository into the
~/.configdirectory
git clone https://github.com/ndonfris/fish-lsp-language-clients.git \
~/.config/fish-lsp-language-clients/- choose a client
# git branch -a
git checkout <CLIENT>client can be
kickstart,native-nvim,coc-example,coc-minimal,packer
- Write an alias to use the client you've checked out, inside neovim
alias flc-conf='NVIM_APPNAME=fish-lsp-language-clients nvim ~/.config/fish/config.fish'- Run installation commands for the client you chose
| Client | Setup |
|---|---|
| native-nvim | N/A |
| packer | N/A |
| kickstart | :Lazy |
| coc-example | :PlugInstall |
| coc-minimal | :PlugInstall |
- Open the client
flc-confUse the languages.toml file in the helix directory to add fish-lsp support to helix.
- clone the repository
git clone https://github.com/ndonfris/fish-lsp-language-clients.git
cd fish-lsp-language-clients- Switch to the
helixbranch
git switch helix- copy the
languages.tomlfile to your helix config directory
cat languages.toml >> ~/.config/helix/languages.toml- Open helix
hx ~/.config/fish/config.fishuse the vscode plugin to add fish-lsp support to vscode.
- clone the repository
git clone https://github.com/ndonfris/fish-lsp-language-clients.git
cd fish-lsp-language-clients- Switch to the
bbeditbranch
git switch bbedit- use the BBEdit docs
If you would like to contribute, please open an issue or a pull request. Non neovim client implementations are done by accessing the LSP server directly through either command:
fish-lsp startor
~/path/to/fish-lsp/out/cli.js start