nvim: enable inlay hints + toggling

This commit is contained in:
Daniel Lundin 2024-12-02 09:42:24 +01:00
parent 5c319ac288
commit aed9af6f45
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
6 changed files with 110 additions and 31 deletions
home/common/nvim

View file

@ -50,7 +50,6 @@
plugins = with pkgs.vimPlugins; [
friendly-snippets
go-nvim
rustaceanvim
targets-vim
ts-comments-nvim
@ -116,6 +115,23 @@
'';
}
{
plugin = pkgs.vimUtils.buildVimPlugin {
name = "inlay-hints";
src = pkgs.fetchFromGitHub {
owner = "MysticalDevil";
repo = "inlay-hints.nvim";
rev = "af84dee42cd118af6d592b06c1c0e45d6432a6c0"; # 2024-08-23
hash = "sha256-DZVtFAUK9c8GInp+JdCQ1BKe0dkAheHKI67oxdMmA24=";
};
};
type = "lua";
config = ''
require('inlay-hints').setup()
require("inlay-hints.utils").enable_inlay_hints()
'';
}
{
plugin = codeium-nvim;
type = "lua";
@ -185,6 +201,12 @@
type = "lua";
config = lib.fileContents ./mini.lua;
}
{
plugin = rustaceanvim;
type = "lua";
config = lib.fileContents ./rust.lua;
}
];
};
}