plugins: add nlsp-settings plugin
This commit is contained in:
parent
a26b0bd7c3
commit
a6b4b729ba
3 changed files with 27 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
./modules/plugins/interface/colorizer.nix
|
||||
./modules/plugins/interface/lualine.nix
|
||||
./modules/plugins/language-server/lspconfig.nix
|
||||
./modules/plugins/language-server/nlsp-settings.nix
|
||||
./modules/plugins/navigation/hop-nvim.nix
|
||||
./modules/plugins/navigation/telescope.nix
|
||||
./modules/plugins/navigation/nvim-tree.nix
|
||||
|
|
22
modules/plugins/language-server/nlsp-settings.nix
Normal file
22
modules/plugins/language-server/nlsp-settings.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.plugins.language-server.nlsp-settings;
|
||||
in
|
||||
{
|
||||
options.plugins.language-server.nlsp-settings = with lib; {
|
||||
enable = lib.mkEnableOption "nlsp-settings";
|
||||
|
||||
package = mkPackageOption pkgs.vimPlugins "nlsp-settings-nvim" { };
|
||||
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
plugin.nlsp-settings-nvim = {
|
||||
enable = true;
|
||||
name = "nlspsettings";
|
||||
package = cfg.package;
|
||||
setupSettings = { };
|
||||
};
|
||||
};
|
||||
}
|
|
@ -40,7 +40,10 @@ let inherit (lib.nix2lua) nf; in
|
|||
};
|
||||
};
|
||||
|
||||
language-server.lspconfig.enable = lib.mkDefault true;
|
||||
language-server = {
|
||||
lspconfig.enable = lib.mkDefault true;
|
||||
nlsp-settings.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
navigation = {
|
||||
hop-nvim.enable = lib.mkDefault true;
|
||||
|
|
Loading…
Reference in a new issue