summaryrefslogtreecommitdiff
path: root/fnl/config/lsp/settings
diff options
context:
space:
mode:
authoraktersnurra <grydholm@kth.se>2022-04-23 21:22:24 +0200
committeraktersnurra <grydholm@kth.se>2022-04-23 21:22:24 +0200
commit4932d32cae9a2a63226b67e6678d459b773f1f8b (patch)
tree5b7d3fb35afe2e9f067f73ff70742e87c84d7342 /fnl/config/lsp/settings
parentd3f68e913454fb9cfa555ab112a23c3d86e6bec4 (diff)
fix(lsp): error loading capabilities and format
Diffstat (limited to 'fnl/config/lsp/settings')
-rw-r--r--fnl/config/lsp/settings/sumneko-lua.fnl26
1 files changed, 23 insertions, 3 deletions
diff --git a/fnl/config/lsp/settings/sumneko-lua.fnl b/fnl/config/lsp/settings/sumneko-lua.fnl
index acc8df2..d40fe9b 100644
--- a/fnl/config/lsp/settings/sumneko-lua.fnl
+++ b/fnl/config/lsp/settings/sumneko-lua.fnl
@@ -2,8 +2,28 @@
(module config.lsp.settings.sumneko-lua)
(def- workspace
- {:library {(vim.fn.expand :$VIMRUNTIME/lua) true
- (vim.fn.expand :$VIMRUNTIME/lua/vim/lsp) true}})
+ {:library {(vim.fn.expand "$VIMRUNTIME/lua") true
+ (vim.fn.expand "$VIMRUNTIME/lua/vim/lsp") true}})
+(def- diagnostics
+ {:globals ["vim"
+ "map"
+ "filter"
+ "range"
+ "reduce"
+ "head"
+ "tail"
+ "nth"
+ "use"
+ "describe"
+ "it"
+ "dump"]})
-(def opts {:settings {:Lua {:diagnostics {:globals [ :vim ]} :workspace workspace}}})
+(def- runtime
+ {:version "LuaJIT"
+ :path (vim.split package.path ";")})
+
+(def opts
+ {:settings {:Lua {:diagnostics diagnostics
+ :workspace workspace
+ :runtime runtime}}})