all repos — dotfiles @ 47f5f08a4718cc63f638a3d2601fd5f4acb976f8

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