all repos — dotfiles @ 1af1f6acd2ce167d5d5358f5a36c58b368965496

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}