mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 11:55:22 +00:00
lsp/presets/clojure-lsp: init
This commit is contained in:
parent
94f434b38c
commit
e439bf45b9
2 changed files with 26 additions and 1 deletions
24
modules/plugins/lsp/presets/clojure-lsp.nix
Normal file
24
modules/plugins/lsp/presets/clojure-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.clojure-lsp;
|
||||||
|
in {
|
||||||
|
options.vim.lsp.presets.clojure-lsp = {
|
||||||
|
enable = mkEnableOption "the Clojure Language Server";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
vim.lsp.servers.clojure-lsp = {
|
||||||
|
enable = true;
|
||||||
|
cmd = [(getExe pkgs.clojure-lsp)];
|
||||||
|
root_markers = [".git" "project.clj"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -5,9 +5,10 @@
|
||||||
./astro-language-server.nix
|
./astro-language-server.nix
|
||||||
./basedpyright.nix
|
./basedpyright.nix
|
||||||
./bash-language-server.nix
|
./bash-language-server.nix
|
||||||
|
./clojure-lsp.nix
|
||||||
|
./cue.nix
|
||||||
./dart.nix
|
./dart.nix
|
||||||
./deno.nix
|
./deno.nix
|
||||||
./cue.nix
|
|
||||||
./elixir-ls.nix
|
./elixir-ls.nix
|
||||||
./elm-language-server.nix
|
./elm-language-server.nix
|
||||||
./emmet-ls.nix
|
./emmet-ls.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue