all repos — dotfiles @ 2c00620ef710e80a5702621b075274fdfd3a6e2b

my *nix dotfiles

config/nvim/lua/lsp/lua.lua (view raw)

 1-- only on macOS
 2util = require('lspconfig.util')
 3
 4
 5local root_path = '/Users/icy/Leet/lua-language-server'
 6local bin_path = root_path .. '/bin/macOS/lua-language-server'
 7
 8require'lspconfig'.sumneko_lua.setup {
 9  cmd = { bin_path, "-E", root_path .. '/main.lua' },
10  settings = {
11    Lua = {
12      runtime = {
13        version = 'LuaJIT',
14        path = vim.split(package.path, ';'),
15      },
16      diagnostics = {
17        globals = {'vim'},
18      },
19      workspace = {
20        library = {
21          [vim.fn.expand('$VIMRUNTIME/lua')] = true,
22          [vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true,
23        },
24      },
25      telemetry = {
26        enable = false,
27      }
28    },
29  },
30  on_attach = require('maps').on_attach,
31}