mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
lsp/harper-ls: init
This commit is contained in:
parent
f1a309082e
commit
c752aaa24f
6 changed files with 68 additions and 0 deletions
35
modules/plugins/lsp/harper-ls/harper-ls.nix
Normal file
35
modules/plugins/lsp/harper-ls/harper-ls.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.types) anything attrsOf;
|
||||
in {
|
||||
options.vim.lsp.harper-ls = {
|
||||
enable = mkEnableOption "Harper grammar checking LSP";
|
||||
settings = mkOption {
|
||||
type = attrsOf anything;
|
||||
default = {};
|
||||
example = {
|
||||
userDictPath = "";
|
||||
workspaceDictPath = "";
|
||||
fileDictPath = "";
|
||||
linters = {
|
||||
BoringWords = true;
|
||||
PossessiveNoun = true;
|
||||
SentenceCapitalization = false;
|
||||
SpellCheck = false;
|
||||
};
|
||||
codeActions = {
|
||||
ForceStable = false;
|
||||
};
|
||||
markdown = {
|
||||
IgnoreLinkTitle = false;
|
||||
};
|
||||
diagnosticSeverity = "hint";
|
||||
isolateEnglish = false;
|
||||
dialect = "American";
|
||||
maxFileLength = 120000;
|
||||
ignoredLintsPath = {};
|
||||
};
|
||||
description = "Settings to pass to harper-ls";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue