Add own LSP in a concise way? #2011
Replies: 3 comments 1 reply
-
I think if we exposed our But I don't think you can easily do this currently. That said, for a one-off language server, do you really need a nixvim/plugins/lsp/language-servers/_mk-lsp.nix Lines 114 to 133 in f13bdef |
Beta Was this translation helpful? Give feedback.
-
I also kind of want this for LSP development. |
Beta Was this translation helpful? Give feedback.
-
This seems to work: mkLsp = lsp: {
options.programs.nixvim = lib.mkOption {
type = lib.types.submoduleWith {
shorthandOnlyDefinesConfig = true;
modules = [
((import "${inputs.nixvim}/plugins/lsp/language-servers/_mk-lsp.nix" { inherit lib config pkgs; }) lsp)
];
};
};
}; |
Beta Was this translation helpful? Give feedback.
-
Hi,
is it possible to add own LSP which is not supported by nixvim (and isn't even in
nixpkgs
) to the generated configuration? I can write a module from scratch, but is it possible to do something like this? :without copying and adapting
_mk-lsp.nix
or ugly hacks?Beta Was this translation helpful? Give feedback.
All reactions