From a8596bd19f3b60e36f2b8beee16a8afc136fc7c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Fri, 10 May 2024 21:20:16 +0200 Subject: [PATCH] [fix] nvim: update noice.nvim and inlay_hints Both were broken by a nightly change. --- flake.nix | 18 ++++++++++++++++++ nvim/augroups.nix | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) 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} } )