aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-03-03 14:46:23 +0200
committersrdusr <trevorgray@srdusr.com>2023-03-03 14:46:23 +0200
commitc6ccab7f680f4a873d996cd9e535752e9a82c8ac (patch)
tree05a202158386d5eeb011253204e742164343066d /lua
parentfcc4a111f55e6ee14cd0b4e25fd8f851172f96b9 (diff)
downloaddotfiles-c6ccab7f680f4a873d996cd9e535752e9a82c8ac.tar.gz
dotfiles-c6ccab7f680f4a873d996cd9e535752e9a82c8ac.zip
Re-enabled auto command to return to same line when reopening
Diffstat (limited to 'lua')
-rw-r--r--lua/user/opts.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/lua/user/opts.lua b/lua/user/opts.lua
index c1b5027..2bbf776 100644
--- a/lua/user/opts.lua
+++ b/lua/user/opts.lua
@@ -248,12 +248,12 @@ vim.cmd([[ " Only show in insert mode
]])
-- Line Return
---vim.cmd([[ " Return to the same line when we reopen a file
--- augroup line_return
--- au!
--- au BufReadPost *
--- \ if line("'\"") > 0 && line("'\"") <= line("$") |
--- \ execute 'normal! g`"zvzz' |
--- \ endif
--- augroup END
---]])
+vim.cmd([[ " Return to the same line when we reopen a file
+ augroup line_return
+ au!
+ au BufReadPost *
+ \ if line("'\"") > 0 && line("'\"") <= line("$") |
+ \ execute 'normal! g`"zvzz' |
+ \ endif
+ augroup END
+]])