all repos — dotfiles @ e85d1606045c9f78fb3f642345ec3b87458f1abb

my *nix dotfiles

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

 1local runtime_path = vim.split(package.path, ';')
 2table.insert(runtime_path, "lua/?.lua")
 3table.insert(runtime_path, "lua/?/init.lua")
 4
 5require'lspconfig'.sumneko_lua.setup {
 6  settings = {
 7    Lua = {
 8      runtime = {
 9        version = 'LuaJIT',
10        path = runtime_path,
11      },
12      diagnostics = {
13        globals = {'vim'},
14      },
15      workspace = {
16        library = vim.api.nvim_get_runtime_file("", true),
17      },
18      telemetry = {
19        enable = false,
20      },
21    },
22  },
23}