diff --git a/.config/nvim/lua/config/autocmds.lua b/.config/nvim/lua/config/autocmds.lua index 445a4c7b..534801e0 100644 --- a/.config/nvim/lua/config/autocmds.lua +++ b/.config/nvim/lua/config/autocmds.lua @@ -68,7 +68,7 @@ vim.api.nvim_create_autocmd({ "FileType" }, { end end, { desc = "Continue List", silent = true, remap = true }) vim.opt_local.wrap = true - vim.opt_local.spell = true + -- vim.opt_local.spell = true -- local secondary = "#379393" -- local primary = "#933737" local colorbuddy = require("colorbuddy") diff --git a/.config/nvim/lua/plugins/ltex-ls.lua b/.config/nvim/lua/plugins/ltex-ls.lua index 2b3e032e..b3c5793a 100644 --- a/.config/nvim/lua/plugins/ltex-ls.lua +++ b/.config/nvim/lua/plugins/ltex-ls.lua @@ -6,7 +6,7 @@ local extraOpts = { "en-CA", }, path = vim.fn.expand("~") .. "/.local/share/ltex", - -- log_level = "warn", + log_level = "warn", } return { { @@ -23,6 +23,7 @@ return { end, settings = { ltex = { + completionEnabled = true, language = { "en", "en-US", "en-CA" }, enabled = { "latex", @@ -31,13 +32,20 @@ return { "md", "markdown", }, - checkFrequency = { "save" }, + markdown = { + nodes = { + CodeBlock = "ignore", + FencedCodeBlock = "ignore", + AutoLink = "dummy", + Code = "dummy", + }, + }, + checkFrequency = { "edit" }, diagnosticSeverity = "information", sentencetCacheSize = 5000, - -- additionalRules = { - -- enablePickyRules = true, - -- motherTongue = "en", - -- }, + additionalRules = { + enablePickyRules = true, + }, }, }, },