mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 03:47:37 +00:00
lsp/presets/neocmakelsp: init
This commit is contained in:
parent
aca58cd0d9
commit
94f434b38c
2 changed files with 28 additions and 0 deletions
|
|
@ -28,6 +28,7 @@
|
|||
./lua-language-server.nix
|
||||
./markdown-oxide.nix
|
||||
./marksman.nix
|
||||
./neocmakelsp.nix
|
||||
./nil.nix
|
||||
./nimlsp.nix
|
||||
./nixd.nix
|
||||
|
|
|
|||
27
modules/plugins/lsp/presets/neocmakelsp.nix
Normal file
27
modules/plugins/lsp/presets/neocmakelsp.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
cfg = config.vim.lsp.presets.neocmakelsp;
|
||||
in {
|
||||
options.vim.lsp.presets.neocmakelsp = {
|
||||
enable = mkEnableOption "the Neo CMake Language Server";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
vim.lsp.servers.neocmakelsp = {
|
||||
enable = true;
|
||||
cmd = [(getExe pkgs.neocmakelsp) "stdio"];
|
||||
root_markers = [".git" ".gersemirc"];
|
||||
capabilities = {
|
||||
textDocument.completion.completionItem.snippetSupport = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue