nvim/lua/lsp/servers/lua_ls.lua
2025-03-05 09:03:20 -05:00

27 lines
587 B
Lua

return {
settings = {
Lua = {
runtime = {
version = 'LuaJIT',
},
hint = {
enable = true,
paramName = 'Literal',
setType = true,
},
diagnostics = {
-- Get the language server to recognize the `vim` global
globals = { 'vim' },
},
workspace = {
checkThirdParty = false,
-- Make the server aware of Neovim runtime files
library = {
vim.env.VIMRUNTIME,
--[[ "${3rd}/busted/library", ]]
'${3rd}/luv/library',
},
},
},
},
}