mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 03:47:37 +00:00
lsp/presets/marksman: init
This commit is contained in:
parent
c091ae1cbb
commit
37f81afb1e
2 changed files with 25 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
./harper.nix
|
||||
./intelephense.nix
|
||||
./lemminx.nix
|
||||
./marksman.nix
|
||||
./nil.nix
|
||||
./nimlsp.nix
|
||||
./nixd.nix
|
||||
|
|
|
|||
24
modules/plugins/lsp/presets/marksman.nix
Normal file
24
modules/plugins/lsp/presets/marksman.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
cfg = config.vim.lsp.presets.marksman;
|
||||
in {
|
||||
options.vim.lsp.presets.marksman = {
|
||||
enable = mkEnableOption "the Marksman Language Server";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
vim.lsp.servers.marksman = {
|
||||
enable = true;
|
||||
cmd = [(getExe pkgs.marksman) "server"];
|
||||
root_markers = [".git" ".marksman.toml"];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue