aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig
diff options
context:
space:
mode:
authorMassolari <douglasmassolari@hotmail.com>2023-02-10 22:21:02 -0300
committerGitHub <noreply@github.com>2023-02-11 09:21:02 +0800
commitfd1a51ce40ca3c045a833ea3862fd9c34e5263b1 (patch)
tree8633df76fed35b120aeb256887e4fb1cb50f269a /lua/lspconfig
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-fd1a51ce40ca3c045a833ea3862fd9c34e5263b1.tar
nvim-lspconfig-fd1a51ce40ca3c045a833ea3862fd9c34e5263b1.tar.gz
nvim-lspconfig-fd1a51ce40ca3c045a833ea3862fd9c34e5263b1.tar.bz2
nvim-lspconfig-fd1a51ce40ca3c045a833ea3862fd9c34e5263b1.tar.lz
nvim-lspconfig-fd1a51ce40ca3c045a833ea3862fd9c34e5263b1.tar.xz
nvim-lspconfig-fd1a51ce40ca3c045a833ea3862fd9c34e5263b1.tar.zst
nvim-lspconfig-fd1a51ce40ca3c045a833ea3862fd9c34e5263b1.zip
feat: add fennel_language_server (#2438)
Diffstat (limited to 'lua/lspconfig')
-rw-r--r--lua/lspconfig/server_configurations/fennel_language_server.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/fennel_language_server.lua b/lua/lspconfig/server_configurations/fennel_language_server.lua
new file mode 100644
index 00000000..a26e7702
--- /dev/null
+++ b/lua/lspconfig/server_configurations/fennel_language_server.lua
@@ -0,0 +1,24 @@
+local util = require 'lspconfig.util'
+
+local cmd = { 'fennel-language-server' }
+
+if vim.fn.has 'win32' == 1 then
+ cmd = { 'cmd.exe', '/C', 'fennel-language-server' }
+end
+
+return {
+ default_config = {
+ cmd = cmd,
+ filetypes = { 'fennel' },
+ single_file_support = true,
+ root_dir = util.find_git_ancestor,
+ settings = {},
+ },
+ docs = {
+ description = [[
+https://github.com/rydesun/fennel-language-server
+
+Fennel language server protocol (LSP) support.
+]],
+ },
+}