Reopen at last cursor position
This commit is contained in:
parent
6baad6a90a
commit
e91ce78e7e
7
init.lua
7
init.lua
|
@ -63,6 +63,13 @@ augroup packer_user_config
|
|||
augroup end
|
||||
]])
|
||||
|
||||
-- Reopen file to last cursor position, if possible
|
||||
cmd([[
|
||||
if has("autocmd")
|
||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
||||
endif
|
||||
]])
|
||||
|
||||
cmd [[command! WhatHighlight :call util#syntax_stack()]]
|
||||
cmd [[command! PackerInstall packadd packer.nvim | lua require('plugins').install()]]
|
||||
cmd [[command! PackerUpdate packadd packer.nvim | lua require('plugins').update()]]
|
||||
|
|
Loading…
Reference in New Issue
Block a user