https://github.com/neovim/nvim-lspconfig
https://luals.github.io/wiki/configuration/
Abaixo segue a configuraĆ§Ć£o do lua language server
.
require'lspconfig'.lua_ls.setup {
settings = {
Lua = {
hint = {
enable = true,
},
runtime = {
version = 'LuaJIT',
},
workspace = {
checkThirdParty = true,
library = {
vim.env.VIMRUNTIME,
'${3rd}/luv/library',
'${3rd}/busted/library',
},
},
},
},
}