summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-08-28 15:23:57 +0530
committersinanmohd <sinan@firemail.cc>2023-08-28 15:43:33 +0530
commit6b535e0634d3b96b5af04a3c3e107c69f285c669 (patch)
treed3aa9f94d55c8dd92a221804a5039897858a8e28
parent2aaf9d91dd8255857eb315396c1ced6c17ebfee4 (diff)
config/nvim: update keybindings
-rw-r--r--.config/nvim/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index 3963e93..6b992d7 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -31,8 +31,8 @@ local mapnl = function(lhs, rhs, opts)
end
-- [[ keybindings ]]
--- close and bd
-map("n", "<C-x>", ":bd<CR>")
+-- generic
+map("n", "<C-x>", ":bd!<CR>")
map("t", "<C-x>", "<C-\\><C-n>:bd!<CR>")
map("n", "<C-s>", ":close<CR>")
map("t", "<C-s>", "<C-\\><C-n>")