Skip to content

ndonfris/fish-lsp-language-clients

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

fish-lsp-language-clients

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
  • kickstart
  • 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
  • BBEdit
    • includes [language modules/fish.plist] for fish language support
    • includes documentation for hooking up the language server to BBEdit

Usage

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

Neovim

  1. clone the repository into the ~/.config directory
git clone https://github.com/ndonfris/fish-lsp-language-clients.git \
~/.config/fish-lsp-language-clients/
  1. choose a client
# git branch -a
git checkout <CLIENT>

client can be kickstart, native-nvim, coc-example, coc-minimal, packer

  1. 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'
  1. 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
  1. Open the client
flc-conf

Helix

Use the languages.toml file in the helix directory to add fish-lsp support to helix.

  1. clone the repository
git clone https://github.com/ndonfris/fish-lsp-language-clients.git
cd fish-lsp-language-clients
  1. Switch to the helix branch
git switch helix
  1. copy the languages.toml file to your helix config directory
cat languages.toml >> ~/.config/helix/languages.toml
  1. Open helix
hx ~/.config/fish/config.fish

VSCode

use the vscode plugin to add fish-lsp support to vscode.

BBEdit

  1. clone the repository
git clone https://github.com/ndonfris/fish-lsp-language-clients.git 
cd fish-lsp-language-clients
  1. Switch to the bbedit branch
git switch bbedit
  1. use the BBEdit docs

Contributing

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 start

or

~/path/to/fish-lsp/out/cli.js start

About

WIP minimal templates showcasing fish-lsp language client examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published