[fix] nvim: update noice.nvim and inlay_hints

Both were broken by a nightly change.
This commit is contained in:
Jalil David Salamé Messina 2024-05-10 21:20:16 +02:00
parent 61a5d8371c
commit a8596bd19f
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 19 additions and 1 deletions

View file

@ -125,6 +125,24 @@
neovim-nightly = neovim-flake.overlay; neovim-nightly = neovim-flake.overlay;
jpassmenu = jpassmenu.overlays.default; jpassmenu = jpassmenu.overlays.default;
audiomenu = audiomenu.overlays.default; audiomenu = audiomenu.overlays.default;
# FIXME: remove once merged in nixpkgs
fix-noice-nvim = final: prev: {
vimPlugins =
prev.vimPlugins
// {
noice-nvim = prev.vimUtils.buildVimPlugin {
pname = "noice.nvim";
version = "2024-05-09";
src = final.fetchFromGitHub {
owner = "folke";
repo = "noice.nvim";
rev = "v2.0.2";
sha256 = "sha256-YWqphpaxr/729/6NTDEWKOi2FnY/8xgjdsDQ9ePj7b8=";
};
meta.homepage = "https://github.com/folke/noice.nvim/";
};
};
};
}; };
# Nix files formatter (run `nix fmt`) # Nix files formatter (run `nix fmt`)

View file

@ -56,7 +56,7 @@
end end
-- Some Lsp servers do not advertise inlay hints properly so enable this keybinding regardless -- Some Lsp servers do not advertise inlay hints properly so enable this keybinding regardless
vim.keymap.set('n', '<space>ht', function() vim.keymap.set('n', '<space>ht', function()
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled(0), { bufnr = 0 }) vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({bufnr = 0}), { bufnr = 0 })
end, end,
{ desc = '[H]ints [T]oggle', ${opts} } { desc = '[H]ints [T]oggle', ${opts} }
) )