AutoYADM commit: 2024-11-19 16:45:02

This commit is contained in:
Daniel Fichtinger 2024-11-19 16:45:02 -05:00
parent bfcc83c832
commit 0f8dbf7f8a
2 changed files with 13 additions and 10 deletions

View file

@ -1,11 +1,12 @@
local extraOpts = { local extraOpts = {
init_check = true,
load_langs = { load_langs = {
"en", "en",
"en-US", "en-US",
"en-CA", "en-CA",
}, },
path = vim.fn.expand("~") .. "/.local/share/ltex", path = vim.fn.expand("~") .. "/.local/share/ltex",
log_level = "warn", -- log_level = "warn",
} }
return { return {
{ {
@ -17,14 +18,12 @@ return {
opts = { opts = {
servers = { servers = {
ltex = { ltex = {
on_attach = { on_attach = function(client, bufnr)
function(client, bufnr) require("ltex_extra").setup(extraOpts)
require("ltex_extra").setup(extraOpts) end,
end,
},
settings = { settings = {
ltex = { ltex = {
language = "en", language = { "en", "en-US", "en-CA" },
enabled = { enabled = {
"latex", "latex",
"tex", "tex",
@ -32,9 +31,9 @@ return {
"md", "md",
"markdown", "markdown",
}, },
-- checkFrequency = { "save" }, checkFrequency = { "save" },
-- diagnosticSeverity = "information", diagnosticSeverity = "information",
-- sentencetCacheSize = 5000, sentencetCacheSize = 5000,
-- additionalRules = { -- additionalRules = {
-- enablePickyRules = true, -- enablePickyRules = true,
-- motherTongue = "en", -- motherTongue = "en",

View file

@ -0,0 +1,4 @@
return {
"williamboman/mason.nvim",
opts = { ensure_installed = { "typos-lsp" } },
}