From da6cd8635e4962c4a255681e724e7f69c991404a Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 17 Aug 2022 20:44:48 +1000 Subject: [PATCH 1/2] fix: non-silent toggle keybind --- lua/nvim-biscuits/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-biscuits/init.lua b/lua/nvim-biscuits/init.lua index 6b52b84..2ed8f9c 100644 --- a/lua/nvim-biscuits/init.lua +++ b/lua/nvim-biscuits/init.lua @@ -170,7 +170,7 @@ nvim_biscuits.BufferAttach = function(bufnr) if toggle_keybind ~= nil and not config.get_language_config(final_config, lang, "disabled") then vim.api.nvim_set_keymap("n", toggle_keybind, - ":lua require('nvim-biscuits').toggle_biscuits()", + "lua require('nvim-biscuits').toggle_biscuits()", {noremap = false}) end From 26c98522a169676d143dfc7ff0a1cc355b624e1f Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 17 Aug 2022 20:48:20 +1000 Subject: [PATCH 2/2] feat: keymap description --- lua/nvim-biscuits/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-biscuits/init.lua b/lua/nvim-biscuits/init.lua index 2ed8f9c..84bc976 100644 --- a/lua/nvim-biscuits/init.lua +++ b/lua/nvim-biscuits/init.lua @@ -171,7 +171,7 @@ nvim_biscuits.BufferAttach = function(bufnr) not config.get_language_config(final_config, lang, "disabled") then vim.api.nvim_set_keymap("n", toggle_keybind, "lua require('nvim-biscuits').toggle_biscuits()", - {noremap = false}) + { noremap = false, desc = "toggle biscuits" }) end local on_lines = function() nvim_biscuits.decorate_nodes(bufnr, lang) end