summaryrefslogtreecommitdiff
path: root/fnl/config/lsp/settings/sumneko-lua.fnl
blob: d40fe9b0ac3747c51db4f8d80e851c6d364b0300 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
;; 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 diagnostics
                    :workspace workspace
                    :runtime runtime}}})