clean stuff | map new tab

This commit is contained in:
siduck76 2021-07-21 11:26:25 +05:30
parent f72c36f4ab
commit 08dfe17678
2 changed files with 2 additions and 11 deletions

View file

@ -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

View file

@ -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]])