make ltex shut up

This commit is contained in:
Christoph J. Scherr 2024-04-20 17:18:13 +02:00
parent 64f178ec8e
commit e102335f6e
5 changed files with 24 additions and 4 deletions

View File

@ -32,8 +32,10 @@ M.rust_analyzer = {
M.ltex = { M.ltex = {
on_attach = on_attach, on_attach = on_attach,
capabilities = capabilities, capabilities = capabilities,
use_spellfile = false,
settings = { settings = {
ltex = { ltex = {
checkFrequency = "save", -- shut up while i'm just editing, see <https://github.com/folke/noice.nvim/issues/166>
-- specific language (such as en-GB or de-DE is recommended, but I -- specific language (such as en-GB or de-DE is recommended, but I
-- want multilingual) -- want multilingual)
language = "auto", language = "auto",
@ -52,7 +54,11 @@ M.ltex = {
"html", "html",
"xhtml", "xhtml",
}, },
-- load token and additional languagetool items later additionalRules = {
enablePickyRules = true,
motherTongue = "de",
},
-- load token and additional languagetool items later
}, },
}, },
} }

View File

@ -1,7 +1,7 @@
local opt = vim.opt local opt = vim.opt
local g = vim.g local g = vim.g
g.maplocalleader = ";" g.maplocalleader = ";"
g.python3_host_prog = '/usr/bin/python3' g.python3_host_prog = "/usr/bin/python3"
opt.mouse = "a" -- mouse does annoying things for me if it's not 'a' opt.mouse = "a" -- mouse does annoying things for me if it's not 'a'
opt.signcolumn = "yes" opt.signcolumn = "yes"
@ -169,12 +169,14 @@ vim.api.nvim_create_autocmd("VimResized", {
}) })
-- Wrap and enable spell-checker in text filetypes -- Wrap and enable spell-checker in text filetypes
-- also enable wrap on these text filetypes
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
group = augroup "spell_conceal", group = augroup "spell_conceal",
pattern = { "gitcommit", "markdown", "tex", "latex", "norg" }, pattern = { "gitcommit", "markdown", "tex", "latex", "norg" },
callback = function() callback = function()
vim.opt_local.spell = true vim.opt_local.spell = true
vim.opt_local.conceallevel = 0 vim.opt_local.conceallevel = 0
vim.opt.wrap = true
end, end,
}) })

View File

@ -364,6 +364,17 @@ local plugins = {
-- produce a conflict -- produce a conflict
signature = { enabled = false }, signature = { enabled = false },
hover = { enabled = false }, hover = { enabled = false },
progress = {
enabled = true,
-- Lsp Progress is formatted using the builtins for lsp_progress. See config.format.builtin
-- See the section on formatting for more details on how to customize.
--- @type NoiceFormat|string
format = "lsp_progress",
--- @type NoiceFormat|string
format_done = "lsp_progress_done",
throttle = 1000 / 30, -- frequency to update lsp progress message
view = "mini", -- default: mini
},
}, },
-- you can enable a preset for easier configuration -- you can enable a preset for easier configuration
presets = { presets = {
@ -949,8 +960,8 @@ local plugins = {
"NvChad/ui", -- load after nvchad ui "NvChad/ui", -- load after nvchad ui
}, },
config = function() config = function()
-- TODO: add lsp module for lualine -- TODO: add lsp module for lualine
-- Maybe we can steal modules from the nvchad ui -- Maybe we can steal modules from the nvchad ui
require("lualine").setup() require("lualine").setup()
end, end,
}, },

View File

@ -336,3 +336,4 @@ Leininger
Dockerfile Dockerfile
yml yml
CMD CMD
UDPP

Binary file not shown.