nvim: prefer command abbreviations to user-defined commands
This commit is contained in:
parent
95a3ef6463
commit
080ecf0cd9
3 changed files with 29 additions and 23 deletions
|
@ -180,7 +180,7 @@ end
|
|||
-- ZenMode >>>
|
||||
M.zenmode = function()
|
||||
-- map :ZM to :ZenMode
|
||||
vim.cmd 'command! ZM ZenMode'
|
||||
vim.cmd 'cab ZM ZenMode'
|
||||
require("zen-mode").setup {
|
||||
window = {
|
||||
backdrop = 1, -- shade the backdrop of the Zen window. Set to 1 to keep the same as Normal
|
||||
|
@ -233,9 +233,9 @@ M.autosession = function()
|
|||
-- save some more things. notably options, resize, winpos, and terminal
|
||||
vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,resize,winpos,terminal"
|
||||
-- So I don't forget which one it is
|
||||
vim.cmd 'command! SessionSave SaveSession'
|
||||
vim.cmd 'command! SessionDelete DeleteSession'
|
||||
vim.cmd 'command! SessionRestore RestoreSession'
|
||||
vim.cmd 'cab SessionSave SaveSession'
|
||||
vim.cmd 'cab SessionDelete DeleteSession'
|
||||
vim.cmd 'cab SessionRestore RestoreSession'
|
||||
end -- <<<
|
||||
|
||||
-- Lualine >>>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue