summaryrefslogtreecommitdiff
path: root/fnl/config/lsp/settings
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-06 22:36:55 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-06 22:36:55 +0200
commit1996d606ed56c815790baaccc2151cad5db00fc4 (patch)
tree56d69eee018583a81c8fabd7b6f408e8c5cfdd7e /fnl/config/lsp/settings
parentba5d050c1b5ae35ed88e3a53ef1d5c8ec267ef9d (diff)
feat(sumneko lua): add fnl config
Diffstat (limited to 'fnl/config/lsp/settings')
-rw-r--r--fnl/config/lsp/settings/sumneko-lua.fnl21
1 files changed, 21 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..5498f7e
--- /dev/null
+++ b/fnl/config/lsp/settings/sumneko-lua.fnl
@@ -0,0 +1,21 @@
+;; 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 settings
+ {:settings {
+ :Lua {
+ :diagnostics diagnostics
+ :workspace workspace}}})
+
+(settings)