aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorliugh <46311996+gh-liu@users.noreply.github.com>2022-11-20 12:29:01 +0800
committerGitHub <noreply@github.com>2022-11-20 12:29:01 +0800
commit16c8f45f84d8a77d347f9a08be5c71acac880497 (patch)
tree38234a942233fe8dcd826990d3e20c5d9bf7c24c /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-16c8f45f84d8a77d347f9a08be5c71acac880497.tar
nvim-lspconfig-16c8f45f84d8a77d347f9a08be5c71acac880497.tar.gz
nvim-lspconfig-16c8f45f84d8a77d347f9a08be5c71acac880497.tar.bz2
nvim-lspconfig-16c8f45f84d8a77d347f9a08be5c71acac880497.tar.lz
nvim-lspconfig-16c8f45f84d8a77d347f9a08be5c71acac880497.tar.xz
nvim-lspconfig-16c8f45f84d8a77d347f9a08be5c71acac880497.tar.zst
nvim-lspconfig-16c8f45f84d8a77d347f9a08be5c71acac880497.zip
feat: add fennel-ls support (#2247)
* feat: add fennel-ls support * Update lua/lspconfig/server_configurations/fennel-ls.lua Co-authored-by: Raphael <glephunter@gmail.com> * Update lua/lspconfig/server_configurations/fennel-ls.lua Co-authored-by: Raphael <glephunter@gmail.com> * Update lua/lspconfig/server_configurations/fennel-ls.lua Co-authored-by: Raphael <glephunter@gmail.com> * Update lua/lspconfig/server_configurations/fennel-ls.lua Co-authored-by: Raphael <glephunter@gmail.com> Co-authored-by: liu <liu@allen> Co-authored-by: Raphael <glephunter@gmail.com>
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/fennel-ls.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/fennel-ls.lua b/lua/lspconfig/server_configurations/fennel-ls.lua
new file mode 100644
index 00000000..0d7fc392
--- /dev/null
+++ b/lua/lspconfig/server_configurations/fennel-ls.lua
@@ -0,0 +1,19 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'fennel-ls' },
+ filetypes = { 'fennel' },
+ root_dir = function(dir)
+ return util.find_git_ancestor(dir)
+ end,
+ settings = {},
+ },
+ docs = {
+ description = [[
+https://sr.ht/~xerool/fennel-ls/
+
+A language server for fennel.
+]] ,
+ },
+}