From 687a4b79ef7bc2b49a1c3dda6459653226269348 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Tue, 19 Nov 2024 15:45:03 -0500 Subject: [PATCH] AutoYADM commit: 2024-11-19 15:45:03 --- .config/nvim/lua/plugins/ltex-ls.lua | 54 ++++------------------------ .config/nvim/spell/en.utf-8.add | 1 + 2 files changed, 7 insertions(+), 48 deletions(-) diff --git a/.config/nvim/lua/plugins/ltex-ls.lua b/.config/nvim/lua/plugins/ltex-ls.lua index 7dbb0ca0..729a994f 100644 --- a/.config/nvim/lua/plugins/ltex-ls.lua +++ b/.config/nvim/lua/plugins/ltex-ls.lua @@ -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 { - { "vigoux/ltex-ls.nvim", opts = ltex_opts }, { - "williamboman/mason.nvim", - opts = { ensure_installed = { "ltex-ls" } }, + "neovim/nvim-lspconfig", + opts = {}, + }, + { + "williamboman/mason-lspconfig.nvim", + opts = { ensure_installed = { "ltex" } }, }, } diff --git a/.config/nvim/spell/en.utf-8.add b/.config/nvim/spell/en.utf-8.add index 26315f0f..64c25461 100644 --- a/.config/nvim/spell/en.utf-8.add +++ b/.config/nvim/spell/en.utf-8.add @@ -104,3 +104,4 @@ hasSeen isSeen isState bytesRead +SoundID