AutoYADM commit: 2024-11-19 15:45:03
This commit is contained in:
parent
186710db0c
commit
687a4b79ef
2 changed files with 7 additions and 48 deletions
|
@ -1,52 +1,10 @@
|
||||||
local ltex_opts = {
|
|
||||||
-- on_attach = on_attach,
|
|
||||||
-- capabilities = capabilities,
|
|
||||||
use_spellfile = false,
|
|
||||||
filetypes = { "latex", "tex", "bib", "markdown", "gitcommit", "text" },
|
|
||||||
settings = {
|
|
||||||
ltex = {
|
|
||||||
enabled = { "latex", "tex", "bib", "markdown" },
|
|
||||||
language = "auto",
|
|
||||||
diagnosticSeverity = "information",
|
|
||||||
sentenceCacheSize = 2000,
|
|
||||||
additionalRules = {
|
|
||||||
enablePickyRules = true,
|
|
||||||
motherTongue = "en",
|
|
||||||
},
|
|
||||||
disabledRules = {
|
|
||||||
fr = { "APOS_TYP", "FRENCH_WHITESPACE" },
|
|
||||||
},
|
|
||||||
-- dictionary = (function()
|
|
||||||
-- -- For dictionary, search for files in the runtime to have
|
|
||||||
-- -- and include them as externals the format for them is
|
|
||||||
-- -- dict/{LANG}.txt
|
|
||||||
-- --
|
|
||||||
-- -- Also add dict/default.txt to all of them
|
|
||||||
-- local files = {}
|
|
||||||
-- for _, file in ipairs(vim.api.nvim_get_runtime_file("dict/*", true)) do
|
|
||||||
-- local lang = vim.fn.fnamemodify(file, ":t:r")
|
|
||||||
-- local fullpath = vim.fs.normalize(file, ":p")
|
|
||||||
-- files[lang] = { ":" .. fullpath }
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- if files.default then
|
|
||||||
-- for lang, _ in pairs(files) do
|
|
||||||
-- if lang ~= "default" then
|
|
||||||
-- vim.list_extend(files[lang], files.default)
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
-- files.default = nil
|
|
||||||
-- end
|
|
||||||
-- return files
|
|
||||||
-- end)(),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{ "vigoux/ltex-ls.nvim", opts = ltex_opts },
|
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"neovim/nvim-lspconfig",
|
||||||
opts = { ensure_installed = { "ltex-ls" } },
|
opts = {},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
opts = { ensure_installed = { "ltex" } },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,3 +104,4 @@ hasSeen
|
||||||
isSeen
|
isSeen
|
||||||
isState
|
isState
|
||||||
bytesRead
|
bytesRead
|
||||||
|
SoundID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue