Compare commits

...

5 Commits

Author SHA1 Message Date
andrzej 501ee7e4bb test grammar/spell check 2024-03-16 14:30:44 +01:00
andrzej 092e8e1dc7 remove marksman in favor of ltex 2024-03-16 14:30:30 +01:00
andrzej 84c1622133 remove proselint (ltex with ngrams is better) 2024-03-16 14:29:26 +01:00
andrzej e39e5ab80c fix lua config 2024-03-16 14:28:56 +01:00
andrzej af3cbde2b1 add latex config 2024-03-16 14:28:47 +01:00
5 changed files with 33 additions and 6 deletions

View File

@ -0,0 +1,6 @@
Here we go agan
The cat sit on the mat.
I runs for congress.
He run for congress.
Aple.
Dont forget to put on the breaks.

View File

@ -0,0 +1,11 @@
local M = {}
M.settings = {
ltex = {
language = "en",
additionalRules = {
languageModel = '~/ngrams/',
},
}
}
return M

View File

@ -7,3 +7,5 @@ diagnostics = {
}
}
}
return M

View File

@ -25,7 +25,7 @@ return {
typescriptreact = { "biomejs" },
svelte = { "biomejs" },
python = { "pylint" },
markdown = { "proselint" },
-- markdown = { "marksman" },
lua = {"luacheck"},
}

View File

@ -24,7 +24,8 @@ require("mason-lspconfig").setup({
"html",
"bashls",
"eslint",
"marksman",
"ltex",
--"marksman",
--"lua_ls" has to be installed via package manager on ARM systems
},
handlers = {
@ -41,13 +42,13 @@ require("mason-lspconfig").setup_handlers({
function(server_name)
require("lspconfig")[server_name].setup({
on_attach = on_attach,
capabilities = capabilities,
capabilities = lsp_capabilities,
--handlers = handlers,
})
end,
["eslint"] = function()
lspconfig.eslint.setup({
capabilities = capabilities,
capabilities = lsp_capabilities,
--handlers = handlers,
on_attach = require("config.lsp.servers.eslint").on_attach,
settings = require("config.lsp.servers.eslint").settings,
@ -55,9 +56,16 @@ require("mason-lspconfig").setup_handlers({
end,
["lua_ls"] = function()
lspconfig.lua_ls.setup({
capabilities = capabilities,
capabilities = lsp_capabilities,
on_attach = require("config.lsp.servers.lua").on_attach,
settings = require("config.lsp.servers.lua").settings,
})
end
end,
["ltex"] = function()
lspconfig.ltex.setup({
capabilities = lsp_capabilities,
settings = require("config.lsp.servers.latex").settings,
})
end
})