nixos/pkgsets/nvim/lsp/lua.nix

27 lines
490 B
Nix
Raw Normal View History

{
lib,
config,
pkgs,
...
}:
lib.optionalString (lib.elem "nvim::lsp::lua" config.machine.pkgs) # lua
''
lspconfig.lua_ls.setup({
cmd = {"${pkgs.lua-language-server}/bin/lua-language-server"},
settings = {
Lua = {
runtime = {
version = 'LuaJIT'
},
workspace = {
checkThirdParty = false,
library = {
vim.env.VIMRUNTIME
}
}
}
}
})
''