all repos — dotfiles @ 0a867ad2e58c21d31f0ce106ab5812a152c6b83f

my *nix dotfiles

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'.lua_ls.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}