Files
dotfiles/nvim/lsp/luals.lua
2026-03-05 19:36:09 +03:00

30 lines
531 B
Lua

-- https://github.com/neovim/nvim-lspconfig/blob/master/lsp/lua_ls.lua
return {
cmd = {
"lua-language-server",
},
filetypes = {
"lua",
},
root_markers = {
"lazy-lock.json",
".luarc.json",
".luarc.jsonc",
".luacheckrc",
".stylua.toml",
".git",
},
settings = {
Lua = {
runtime = {
version = 'LuaJIT',
},
workspace = {
library = vim.api.nvim_get_runtime_file("", true)
}
}
},
single_file_support = true,
log_level = vim.lsp.protocol.MessageType.Warning,
}