From 5eb5c48b734f7aa08206d0bd094da12bcfd108d9 Mon Sep 17 00:00:00 2001 From: demenik Date: Tue, 16 Dec 2025 15:04:04 +0100 Subject: [PATCH] feat: Update ltex dictionary --- home/editors/nvim/plugins/lsp/ltex.nix | 12 ++++++++++++ home/editors/nvim/plugins/lsp/servers.nix | 6 ++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/home/editors/nvim/plugins/lsp/ltex.nix b/home/editors/nvim/plugins/lsp/ltex.nix index 0cd410f..b04f3ff 100644 --- a/home/editors/nvim/plugins/lsp/ltex.nix +++ b/home/editors/nvim/plugins/lsp/ltex.nix @@ -1,4 +1,16 @@ { + # lsp.servers.ltex_plus.config.settings.ltex.dictionary = { + dictionary = { + en-US = [ + "ags" + "fzf" + "Gitsigns" + "Vimtex" + "dap" + "neotest" + ]; + }; + # lsp.servers.ltex_plus.config.filetypes = [ filetypes = [ # Default values (https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#ltex_plus) diff --git a/home/editors/nvim/plugins/lsp/servers.nix b/home/editors/nvim/plugins/lsp/servers.nix index 467ccd7..e932582 100644 --- a/home/editors/nvim/plugins/lsp/servers.nix +++ b/home/editors/nvim/plugins/lsp/servers.nix @@ -61,7 +61,7 @@ ltex_plus = { enable = true; config = let - inherit (import ./ltex.nix) filetypes enabled; + inherit (import ./ltex.nix) filetypes enabled dictionary; in { inherit filetypes; settings.ltex = { @@ -69,9 +69,7 @@ languageToolHttpServerUri = "https://languagetool.demenik.dev"; language = "en-US"; additionalRules.motherTongue = "de-DE"; - dictionary.en-US = [ - "ags" - ]; + inherit dictionary; }; }; };