tree-wide: Format files | Reformat chadrc | Misc (#268)

chadrc: looks cleaner this way

move close buffer to misc as it is not dependent on buffer plugin
This commit is contained in:
Aki
2021-08-17 23:21:10 +05:30
committed by GitHub
parent 29f3259c42
commit 98086892a7
11 changed files with 148 additions and 135 deletions

View File

@@ -45,6 +45,10 @@ map("n", miscMap.toggle_linenr, ":set nu!<CR>", opt)
-- get out of terminal with jk
map("t", miscMap.esc_Termmode, "<C-\\><C-n>", opt)
-- close current focused buffer, terminal or normal
-- todo: don't close if non-terminal buffer is saved
map("n", miscMap.close_buffer, ":bd!<CR>", opt)
M.toggleterm = function()
local m = user_map.toggleterm
@@ -131,7 +135,6 @@ M.bufferline = function()
map("n", m.new_buffer, ":enew<CR>", opt) -- new buffer
map("n", m.newtab, ":tabnew<CR>", opt) -- new tab
map("n", m.close, ":bd!<CR>", opt) -- close buffer
-- move between tabs