summaryrefslogtreecommitdiff
path: root/fnl/config/lsp/settings/sumneko-lua.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/config/lsp/settings/sumneko-lua.fnl')
-rw-r--r--fnl/config/lsp/settings/sumneko-lua.fnl23
1 files changed, 23 insertions, 0 deletions
diff --git a/fnl/config/lsp/settings/sumneko-lua.fnl b/fnl/config/lsp/settings/sumneko-lua.fnl
new file mode 100644
index 0000000..90c8807
--- /dev/null
+++ b/fnl/config/lsp/settings/sumneko-lua.fnl
@@ -0,0 +1,23 @@
+;; Config for a Lua language server.
+(module config.lsp.settings.sumneko-lua)
+
+(def- workspace
+ {: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- runtime {:version :LuaJIT :path (vim.split package.path ";")})
+
+(def opts {:settings {:Lua {: diagnostics : workspace}}})