mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 11:55:22 +00:00
chore: preset enable docs
This commit is contained in:
parent
c5a83d3a6a
commit
a3aa4e49d1
75 changed files with 252 additions and 228 deletions
|
|
@ -6,12 +6,41 @@
|
|||
}: let
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.nvim.types) mkLspPresetEnableOption;
|
||||
|
||||
cfg = config.vim.lsp.presets.harper;
|
||||
filetypes = [
|
||||
# <https://writewithharper.com/docs/integrations/language-server#Supported-Languages>
|
||||
"asciidoc"
|
||||
"c"
|
||||
"clojure"
|
||||
"cmake"
|
||||
"cpp"
|
||||
"cs"
|
||||
"daml"
|
||||
"dart"
|
||||
"gitcommit"
|
||||
"go"
|
||||
"haskell"
|
||||
"html"
|
||||
"ink"
|
||||
"java"
|
||||
"javascript"
|
||||
"javascriptreact"
|
||||
"kotlin"
|
||||
"lhaskell"
|
||||
"lua"
|
||||
"mail"
|
||||
"markdown"
|
||||
"nix"
|
||||
"php"
|
||||
"python"
|
||||
"ruby"
|
||||
"rust"
|
||||
];
|
||||
in {
|
||||
options.vim.lsp.presets.harper = {
|
||||
enable = mkEnableOption "the Harper grammar checking LSP";
|
||||
enable = mkLspPresetEnableOption "harper" "Harper" filetypes;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
@ -19,35 +48,7 @@ in {
|
|||
enable = true;
|
||||
cmd = [(getExe pkgs.harper) "--stdio"];
|
||||
root_markers = [".git" ".harper-dictionary.txt"];
|
||||
filetypes = [
|
||||
# <https://writewithharper.com/docs/integrations/language-server#Supported-Languages>
|
||||
"asciidoc"
|
||||
"c"
|
||||
"clojure"
|
||||
"cmake"
|
||||
"cpp"
|
||||
"cs"
|
||||
"daml"
|
||||
"dart"
|
||||
"gitcommit"
|
||||
"go"
|
||||
"haskell"
|
||||
"html"
|
||||
"ink"
|
||||
"java"
|
||||
"javascript"
|
||||
"javascriptreact"
|
||||
"kotlin"
|
||||
"lhaskell"
|
||||
"lua"
|
||||
"mail"
|
||||
"markdown"
|
||||
"nix"
|
||||
"php"
|
||||
"python"
|
||||
"ruby"
|
||||
"rust"
|
||||
];
|
||||
inherit filetypes;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue