diff --git a/flake.nix b/flake.nix index 000db46..36a1ac0 100644 --- a/flake.nix +++ b/flake.nix @@ -125,6 +125,24 @@ neovim-nightly = neovim-flake.overlay; jpassmenu = jpassmenu.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`) diff --git a/nvim/augroups.nix b/nvim/augroups.nix index 56f0462..1f8b4ca 100644 --- a/nvim/augroups.nix +++ b/nvim/augroups.nix @@ -56,7 +56,7 @@ end -- Some Lsp servers do not advertise inlay hints properly so enable this keybinding regardless vim.keymap.set('n', '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, { desc = '[H]ints [T]oggle', ${opts} } )