From 1996d606ed56c815790baaccc2151cad5db00fc4 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 6 Apr 2022 22:36:55 +0200 Subject: feat(sumneko lua): add fnl config --- fnl/config/lsp/settings/sumneko-lua.fnl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 fnl/config/lsp/settings/sumneko-lua.fnl (limited to 'fnl/config/lsp/settings') 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) -- cgit v1.2.3-70-g09d2