mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 20:05:23 +00:00
lsp/presets/markdown-oxide: init
This commit is contained in:
parent
37f81afb1e
commit
b9c3338d01
2 changed files with 25 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
./harper.nix
|
./harper.nix
|
||||||
./intelephense.nix
|
./intelephense.nix
|
||||||
./lemminx.nix
|
./lemminx.nix
|
||||||
|
./markdown-oxide.nix
|
||||||
./marksman.nix
|
./marksman.nix
|
||||||
./nil.nix
|
./nil.nix
|
||||||
./nimlsp.nix
|
./nimlsp.nix
|
||||||
|
|
|
||||||
24
modules/plugins/lsp/presets/markdown-oxide.nix
Normal file
24
modules/plugins/lsp/presets/markdown-oxide.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.markdown-oxide;
|
||||||
|
in {
|
||||||
|
options.vim.lsp.presets.markdown-oxide = {
|
||||||
|
enable = mkEnableOption "the Markdown-Oxide Language Server";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
vim.lsp.servers.markdown-oxide = {
|
||||||
|
enable = true;
|
||||||
|
cmd = [(getExe pkgs.markdown-oxide)];
|
||||||
|
root_markers = [".git" ".moxide.toml" ".obsidian"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue