From e6de7136ce2a4f26886bf1f08813d0b60e6481fe Mon Sep 17 00:00:00 2001 From: Lander Van den Bulcke Date: Wed, 22 Oct 2025 15:22:47 +0200 Subject: [PATCH] feat: add basf to typos lsp allowlist Signed-off-by: Lander Van den Bulcke --- plugins/lsp/default.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/plugins/lsp/default.nix b/plugins/lsp/default.nix index d9f7bf1..6338af1 100644 --- a/plugins/lsp/default.nix +++ b/plugins/lsp/default.nix @@ -1,4 +1,9 @@ -{ config, lib, ... }: +{ + config, + lib, + pkgs, + ... +}: let inherit (config.myvim.mkKey) mkKeymap; in @@ -36,7 +41,18 @@ in servers = { typos_lsp = { enable = true; - extraOptions.init_options.diagnosticSeverity = "Hint"; + extraOptions.init_options = { + diagnosticSeverity = "Hint"; + config = pkgs.writeTextFile { + name = "typos-config.toml"; + text = # toml + '' + [default.extend-words] + basf = "basf" + BASF = "BASF" + ''; + }; + }; }; };