Browse Source

Reopen at last cursor position

master
blallo 8 months ago
parent
commit
e91ce78e7e
Signed by: blallo GPG Key ID: 0CBE577C9B72DC3F
  1. 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…
Cancel
Save