mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-08 00:04:33 +02:00
plugins/lsp: use package option
This commit is contained in:
parent
873d7b51a7
commit
9c476a0948
1 changed files with 6 additions and 1 deletions
|
@ -16,6 +16,11 @@ in
|
|||
plugins.lsp = {
|
||||
enable = mkEnableOption "neovim's built-in LSP";
|
||||
|
||||
package = lib.mkPackageOption pkgs [
|
||||
"vimPlugins"
|
||||
"nvim-lspconfig"
|
||||
] { };
|
||||
|
||||
keymaps = {
|
||||
silent = mkOption {
|
||||
type = types.bool;
|
||||
|
@ -182,7 +187,7 @@ in
|
|||
) servers;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = [ pkgs.vimPlugins.nvim-lspconfig ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
keymapsOnEvents.LspAttach =
|
||||
let
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue