From e102335f6e1f006d9cb7a6eb8d3bf27452d57174 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 20 Apr 2024 17:18:13 +0200 Subject: [PATCH] make ltex shut up --- lua/custom/configs/lspsettings.lua | 8 +++++++- lua/custom/init.lua | 4 +++- lua/custom/plugins.lua | 15 +++++++++++++-- spell/en.utf-8.add | 1 + spell/en.utf-8.add.spl | Bin 4352 -> 4361 bytes 5 files changed, 24 insertions(+), 4 deletions(-) diff --git a/lua/custom/configs/lspsettings.lua b/lua/custom/configs/lspsettings.lua index 0a26aee..6490918 100644 --- a/lua/custom/configs/lspsettings.lua +++ b/lua/custom/configs/lspsettings.lua @@ -32,8 +32,10 @@ M.rust_analyzer = { M.ltex = { on_attach = on_attach, capabilities = capabilities, + use_spellfile = false, settings = { ltex = { + checkFrequency = "save", -- shut up while i'm just editing, see -- specific language (such as en-GB or de-DE is recommended, but I -- want multilingual) language = "auto", @@ -52,7 +54,11 @@ M.ltex = { "html", "xhtml", }, - -- load token and additional languagetool items later + additionalRules = { + enablePickyRules = true, + motherTongue = "de", + }, + -- load token and additional languagetool items later }, }, } diff --git a/lua/custom/init.lua b/lua/custom/init.lua index 6731ad5..d0117d8 100644 --- a/lua/custom/init.lua +++ b/lua/custom/init.lua @@ -1,7 +1,7 @@ local opt = vim.opt local g = vim.g 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.signcolumn = "yes" @@ -169,12 +169,14 @@ vim.api.nvim_create_autocmd("VimResized", { }) -- Wrap and enable spell-checker in text filetypes +-- also enable wrap on these text filetypes vim.api.nvim_create_autocmd("FileType", { group = augroup "spell_conceal", pattern = { "gitcommit", "markdown", "tex", "latex", "norg" }, callback = function() vim.opt_local.spell = true vim.opt_local.conceallevel = 0 + vim.opt.wrap = true end, }) diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index 1b66546..aade18d 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -364,6 +364,17 @@ local plugins = { -- produce a conflict signature = { 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 presets = { @@ -949,8 +960,8 @@ local plugins = { "NvChad/ui", -- load after nvchad ui }, config = function() - -- TODO: add lsp module for lualine - -- Maybe we can steal modules from the nvchad ui + -- TODO: add lsp module for lualine + -- Maybe we can steal modules from the nvchad ui require("lualine").setup() end, }, diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index c27c6fb..74464ec 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -336,3 +336,4 @@ Leininger Dockerfile yml CMD +UDPP diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index 4c84b89be4768cc03b913a67ba3b4936708d65f7..36739aa116af20dd2223bc4413426d066046689a 100644 GIT binary patch delta 41 wcmZor>Qv$j^Ykq)NX^MH`p>|?mA;UVmzO0aEw7ldfRT}bQM6#Q5brx?0Q?{eJ^%m! delta 32 ncmeBFYEa?}^Ykq)NX^MH`p>|?m9&tLmxVbkuXwXG?>lAyq@@Yl