Files
dotfiles/nvim/lsp/luals.lua
Valeriy Filippov 210e99d004 Add neovim config
2026-03-05 16:34:38 +03:00

29 lines
504 B
Lua

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