lsp/harper-ls: add config option for filetypes

This commit is contained in:
Snoweuph 2026-02-01 08:59:16 +01:00
commit 9834eb3324
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
3 changed files with 47 additions and 2 deletions

View file

@ -11,9 +11,10 @@
in {
config = mkIf (cfg.enable && cfg.harper-ls.enable) {
vim.lsp.servers.harper-ls = {
root_markers = [".git"];
root_markers = [".git" ".harper-dictionary.txt"];
cmd = [(getExe pkgs.harper) "--stdio"];
settings = {harper-ls = cfg.harper-ls.settings;};
filetypes = cfg.harper-ls.filetypes;
};
};
}