DEVELOPMENT ENVIRONMENT

~liljamo/nvim-flake

ref: d49d8c3103c6a456290dfd99818a55f6fd956fd0 nvim-flake/config/plugins/hover.nix -rw-r--r-- 671 bytes
d49d8c31Jonni Liljamo feat(lsp): enable additional Rust inlay hints 3 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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";
    }
  ];
}