mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-26 05:11:45 +00:00
disable tabpages by closing and switching to buffer
This commit is contained in:
parent
cafa3b1b80
commit
2c46e4dd46
@ -96,6 +96,16 @@ vim.opt.guicursor = 'n-v-i-c:block-Cursor'
|
|||||||
vim.o.laststatus = 3
|
vim.o.laststatus = 3
|
||||||
vim.api.nvim_set_hl(0, 'WinSeparator', { bg = nil })
|
vim.api.nvim_set_hl(0, 'WinSeparator', { bg = nil })
|
||||||
|
|
||||||
|
-- Disable tabpages
|
||||||
|
vim.api.nvim_create_autocmd('TabNew', {
|
||||||
|
group = vim.api.nvim_create_augroup('TabGroup', { clear = true }),
|
||||||
|
callback = function()
|
||||||
|
local buf = vim.api.nvim_get_current_buf()
|
||||||
|
vim.cmd 'tabclose'
|
||||||
|
vim.api.nvim_set_current_buf(buf)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('UIEnter', {
|
vim.api.nvim_create_autocmd('UIEnter', {
|
||||||
group = vim.api.nvim_create_augroup('SetGUISettings', { clear = true }),
|
group = vim.api.nvim_create_augroup('SetGUISettings', { clear = true }),
|
||||||
callback = function()
|
callback = function()
|
||||||
|
Loading…
Reference in New Issue
Block a user