M config/plugins/default.nix => config/plugins/default.nix +1 -0
@@ 2,6 2,7 @@
imports = [
./cmp.nix
./gitsigns.nix
+ ./hover.nix
./illuminate.nix
./indent-blankline.nix
./lsp.nix
A config/plugins/hover.nix => config/plugins/hover.nix +33 -0
@@ 0,0 1,33 @@
+{pkgs, ...}: {
+ extraPlugins = [
+ (pkgs.vimUtils.buildVimPlugin {
+ name = "hover";
+ src = pkgs.fetchFromGitHub {
+ owner = "lewis6991";
+ repo = "hover.nvim";
+ rev = "1a8282f";
+ hash = "sha256-P63RQFFJhabGSeSmaMz4YirNUgbuu01aWRHbTp1qjTY=";
+ };
+ nvimSkipModules = [
+ "hover.providers.fold_preview"
+ ];
+ })
+ ];
+
+ extraConfigLua = ''
+ require('hover').setup({
+ init = function()
+ require('hover.providers.lsp')
+ end,
+ title = false,
+ mouse_providers = nil,
+ })
+ '';
+
+ keymaps = [
+ {
+ action = "<cmd>lua require('hover').hover()<CR>";
+ key = "K";
+ }
+ ];
+}