Compare commits
4 Commits
eeb54eef78
...
61e2ada9e3
Author | SHA1 | Date |
---|---|---|
|
61e2ada9e3 | |
|
843c8e5371 | |
|
c1db53c3fa | |
|
dea5bbf2ac |
|
@ -0,0 +1,9 @@
|
|||
local M = {}
|
||||
|
||||
M.settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = {"vim"}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -26,6 +26,7 @@ return {
|
|||
svelte = { "biomejs" },
|
||||
python = { "pylint" },
|
||||
markdown = { "proselint" },
|
||||
lua = {"luacheck"},
|
||||
}
|
||||
|
||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||
|
|
|
@ -25,6 +25,7 @@ require("mason-lspconfig").setup({
|
|||
"bashls",
|
||||
"eslint",
|
||||
"marksman",
|
||||
--"lua_ls" has to be installed via package manager on ARM systems
|
||||
},
|
||||
handlers = {
|
||||
default_setup,
|
||||
|
@ -52,4 +53,11 @@ require("mason-lspconfig").setup_handlers({
|
|||
settings = require("config.lsp.servers.eslint").settings,
|
||||
})
|
||||
end,
|
||||
["lua_ls"] = function()
|
||||
lspconfig.lua_ls.setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = require("config.lsp.servers.lua").on_attach,
|
||||
settings = require("config.lsp.servers.lua").settings,
|
||||
})
|
||||
end
|
||||
})
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue