all repos — dotfiles @ 6d79b364fff07095f838185c6c4abbf9941a4ee6

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}