diff --git a/.config/nvim/lua/plugins/ltex-ls.lua b/.config/nvim/lua/plugins/ltex-ls.lua index 83b87e2b..2b3e032e 100644 --- a/.config/nvim/lua/plugins/ltex-ls.lua +++ b/.config/nvim/lua/plugins/ltex-ls.lua @@ -1,11 +1,12 @@ local extraOpts = { + init_check = true, load_langs = { "en", "en-US", "en-CA", }, path = vim.fn.expand("~") .. "/.local/share/ltex", - log_level = "warn", + -- log_level = "warn", } return { { @@ -17,14 +18,12 @@ return { opts = { servers = { ltex = { - on_attach = { - function(client, bufnr) - require("ltex_extra").setup(extraOpts) - end, - }, + on_attach = function(client, bufnr) + require("ltex_extra").setup(extraOpts) + end, settings = { ltex = { - language = "en", + language = { "en", "en-US", "en-CA" }, enabled = { "latex", "tex", @@ -32,9 +31,9 @@ return { "md", "markdown", }, - -- checkFrequency = { "save" }, - -- diagnosticSeverity = "information", - -- sentencetCacheSize = 5000, + checkFrequency = { "save" }, + diagnosticSeverity = "information", + sentencetCacheSize = 5000, -- additionalRules = { -- enablePickyRules = true, -- motherTongue = "en", diff --git a/.config/nvim/lua/plugins/typos.lua b/.config/nvim/lua/plugins/typos.lua new file mode 100644 index 00000000..9e15b7a9 --- /dev/null +++ b/.config/nvim/lua/plugins/typos.lua @@ -0,0 +1,4 @@ +return { + "williamboman/mason.nvim", + opts = { ensure_installed = { "typos-lsp" } }, +}