summaryrefslogtreecommitdiff
path: root/lua/lvim
diff options
context:
space:
mode:
authorDaniel Rodríguez Rivero <[email protected]>2022-12-01 11:39:53 +0100
committerGitHub <[email protected]>2022-12-01 11:39:53 +0100
commit6fc015565fa9b50a9e05f2048ee789cd595eb6ca (patch)
treecb8fac26c0748319be8b750b4c4a061dc3e8f7bd /lua/lvim
parent02de1b1e0b67c3e267c068d0e359a4b40a40b9a5 (diff)
feat(wich-key): binding to save without formatting (#3165)
use `<leader>bW` to save without triggering the autocmd for formatting
Diffstat (limited to 'lua/lvim')
-rw-r--r--lua/lvim/core/which-key.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/lvim/core/which-key.lua b/lua/lvim/core/which-key.lua
index 875edbf5..d0ad77a1 100644
--- a/lua/lvim/core/which-key.lua
+++ b/lua/lvim/core/which-key.lua
@@ -93,6 +93,7 @@ M.config = function()
f = { "<cmd>Telescope buffers<cr>", "Find" },
b = { "<cmd>BufferLineCyclePrev<cr>", "Previous" },
n = { "<cmd>BufferLineCycleNext<cr>", "Next" },
+ W = { "<cmd>noautocmd w<cr>", "Save without formatting (noautocmd)" },
-- w = { "<cmd>BufferWipeout<cr>", "Wipeout" }, -- TODO: implement this for bufferline
e = {
"<cmd>BufferLinePickClose<cr>",