1
0
Fork 0

nvim: don't autosplit everything

it clashes with dap-ui
This commit is contained in:
tastytea 2022-08-28 20:30:30 +02:00
parent 330909bdf1
commit 0d4551a2d4
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 5 additions and 8 deletions

View File

@ -36,14 +36,11 @@ vim.api.nvim_create_user_command('Ht', 'tab help <args>', {
nargs = 1, complete = 'help'
})
-- always split vertically if there is enough space
vim.g.autosplit_bt = nil -- not needed, since we use it on every split
vim.g.autosplit_ft = nil
vim.api.nvim_create_augroup('config_settings', { clear = true })
vim.api.nvim_create_autocmd({ 'WinNew' }, {
group = 'config_settings',
callback = require('autosplit')
})
-- split these vertically if there is enough space
vim.g.autosplit_bt = { 'help', 'terminal' }
vim.g.autosplit_ft = {
'man', 'fugitive', 'gitcommit', 'gitrebase', 'NeogitCommitMessage'
}
-- theme
vim.o.termguicolors = true -- 24 bit colours