clean stuff | map new tab
This commit is contained in:
parent
f72c36f4ab
commit
08dfe17678
|
@ -133,7 +133,8 @@ map("n", "<Leader>fh", [[<Cmd>Telescope help_tags<CR>]], opt)
|
||||||
map("n", "<Leader>fo", [[<Cmd>Telescope oldfiles<CR>]], opt)
|
map("n", "<Leader>fo", [[<Cmd>Telescope oldfiles<CR>]], opt)
|
||||||
|
|
||||||
-- bufferline tab stuff
|
-- bufferline tab stuff
|
||||||
map("n", "<S-t>", ":enew<CR>", opt) -- new tab
|
map("n", "<S-t>", ":enew<CR>", opt) -- new buffer
|
||||||
|
map("n", "<C-t>b", ":tabnew<CR>", opt) -- new tab
|
||||||
map("n", "<S-x>", ":bd!<CR>", opt) -- close tab
|
map("n", "<S-x>", ":bd!<CR>", opt) -- close tab
|
||||||
|
|
||||||
-- move between tabs
|
-- move between tabs
|
||||||
|
|
|
@ -59,16 +59,6 @@ g.loaded_spec = 0
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
function M.is_buffer_empty()
|
|
||||||
-- Check whether the current buffer is empty
|
|
||||||
return vim.fn.empty(vim.fn.expand("%:t")) == 1
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.has_width_gt(cols)
|
|
||||||
-- Check if the windows width is greater than a given number of columns
|
|
||||||
return vim.fn.winwidth(0) / 2 > cols
|
|
||||||
end
|
|
||||||
|
|
||||||
-- file extension specific tabbing
|
-- file extension specific tabbing
|
||||||
-- vim.cmd([[autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4]])
|
-- vim.cmd([[autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4]])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue