feat(core): resize mappings and autoresize autocmd
This commit is contained in:
parent
1d09e75d0f
commit
d6befbeb79
2 changed files with 14 additions and 3 deletions
|
@ -2,4 +2,9 @@ vim.cmd([[
|
|||
command! CosmicUpdate lua require('cosmic.utils').update()
|
||||
command! CosmicReload lua require('cosmic.utils').reload_user_config(true)
|
||||
command! CosmicReloadSync lua require('cosmic.utils').reload_user_config_sync()
|
||||
|
||||
augroup Cosmic_Auto_Resize
|
||||
autocmd!
|
||||
autocmd VimResized * tabdo wincmd =
|
||||
augroup end
|
||||
]])
|
||||
|
|
|
@ -6,6 +6,12 @@ map('n', '<leader>cc', ':cclose <cr>')
|
|||
map('n', '<leader>co', ':copen <cr>')
|
||||
map('n', '<leader>cf', ':cfdo %s/')
|
||||
|
||||
-- Resize with arrows
|
||||
map('n', '<C-Up>', ':resize -2<CR>')
|
||||
map('n', '<C-Down>', ':resize +2<CR>')
|
||||
map('n', '<C-Left>', ':vertical resize -2<CR>')
|
||||
map('n', '<C-Right>', ':vertical resize +2<CR>')
|
||||
|
||||
require('cosmic.plugins.auto-session.mappings')
|
||||
require('cosmic.plugins.telescope.mappings').init()
|
||||
require('cosmic.plugins.nvim-tree.mappings')
|
||||
|
|
Loading…
Add table
Reference in a new issue