feat: add basf to typos lsp allowlist
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
25262c7a9c
commit
e6de7136ce
1 changed files with 18 additions and 2 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
inherit (config.myvim.mkKey) mkKeymap;
|
inherit (config.myvim.mkKey) mkKeymap;
|
||||||
in
|
in
|
||||||
|
|
@ -36,7 +41,18 @@ in
|
||||||
servers = {
|
servers = {
|
||||||
typos_lsp = {
|
typos_lsp = {
|
||||||
enable = true;
|
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"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue