aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorFabio Coatti <fabio.coatti@gmail.com>2024-06-02 16:43:21 +0200
committerGitHub <noreply@github.com>2024-06-02 22:43:21 +0800
commit6dfb2463e3351359fe6d6a902ac06857b3d7ed20 (patch)
tree0d7adb7a6b17e8187513a18189219700feccaab7 /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-6dfb2463e3351359fe6d6a902ac06857b3d7ed20.tar
nvim-lspconfig-6dfb2463e3351359fe6d6a902ac06857b3d7ed20.tar.gz
nvim-lspconfig-6dfb2463e3351359fe6d6a902ac06857b3d7ed20.tar.bz2
nvim-lspconfig-6dfb2463e3351359fe6d6a902ac06857b3d7ed20.tar.lz
nvim-lspconfig-6dfb2463e3351359fe6d6a902ac06857b3d7ed20.tar.xz
nvim-lspconfig-6dfb2463e3351359fe6d6a902ac06857b3d7ed20.tar.zst
nvim-lspconfig-6dfb2463e3351359fe6d6a902ac06857b3d7ed20.zip
feat: add fish-lsp support (#3188)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/fish_lsp.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/fish_lsp.lua b/lua/lspconfig/server_configurations/fish_lsp.lua
new file mode 100644
index 00000000..e027de9e
--- /dev/null
+++ b/lua/lspconfig/server_configurations/fish_lsp.lua
@@ -0,0 +1,26 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'fish-lsp', 'start' },
+ cmd_env = { fish_lsp_show_client_popups = false },
+ filetypes = { 'fish' },
+ root_dir = util.find_git_ancestor,
+ single_file_support = true,
+ },
+ docs = {
+ description = [[
+https://github.com/ndonfris/fish-lsp
+
+A Language Server Protocol (LSP) tailored for the fish shell.
+This project aims to enhance the coding experience for fish,
+by introducing a suite of intelligent features like auto-completion,
+scope aware symbol analysis, per-token hover generation, and many others.
+
+[homepage](https://www.fish-lsp.dev/)
+]],
+ default_config = {
+ root_dir = [[util.find_git_ancestor]],
+ },
+ },
+}