mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-18 13:08:15 +00:00
lsp/presets/just-lsp: init
This commit is contained in:
parent
32cf03986b
commit
57d50b5638
2 changed files with 25 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
./deno.nix
|
./deno.nix
|
||||||
./harper.nix
|
./harper.nix
|
||||||
./intelephense.nix
|
./intelephense.nix
|
||||||
|
./just-lsp.nix
|
||||||
./kotlin-language-server.nix
|
./kotlin-language-server.nix
|
||||||
./lemminx.nix
|
./lemminx.nix
|
||||||
./lua-language-server.nix
|
./lua-language-server.nix
|
||||||
|
|
|
||||||
24
modules/plugins/lsp/presets/just-lsp.nix
Normal file
24
modules/plugins/lsp/presets/just-lsp.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.just-lsp;
|
||||||
|
in {
|
||||||
|
options.vim.lsp.presets.just-lsp = {
|
||||||
|
enable = mkEnableOption "the Just Language Server";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
vim.lsp.servers.just-lsp = {
|
||||||
|
enable = true;
|
||||||
|
cmd = [(getExe pkgs.just-lsp)];
|
||||||
|
root_markers = [".git" "Justfile" "justfile"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue