plugins: add nlsp-settings plugin

This commit is contained in:
Dmitriy Pleshevskiy 2024-07-12 20:55:31 +03:00
parent a26b0bd7c3
commit a6b4b729ba
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
3 changed files with 27 additions and 1 deletions

View file

@ -16,6 +16,7 @@
./modules/plugins/interface/colorizer.nix ./modules/plugins/interface/colorizer.nix
./modules/plugins/interface/lualine.nix ./modules/plugins/interface/lualine.nix
./modules/plugins/language-server/lspconfig.nix ./modules/plugins/language-server/lspconfig.nix
./modules/plugins/language-server/nlsp-settings.nix
./modules/plugins/navigation/hop-nvim.nix ./modules/plugins/navigation/hop-nvim.nix
./modules/plugins/navigation/telescope.nix ./modules/plugins/navigation/telescope.nix
./modules/plugins/navigation/nvim-tree.nix ./modules/plugins/navigation/nvim-tree.nix

View 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 = { };
};
};
}

View file

@ -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 = { navigation = {
hop-nvim.enable = lib.mkDefault true; hop-nvim.enable = lib.mkDefault true;