]> src.twobees.de Git - dotfiles.git/blobdiff - stow/nvim/.config/nvim/lua/set.lua
nvim add telescope and jump to last pos
[dotfiles.git] / stow / nvim / .config / nvim / lua / set.lua
index e2142bd5b1cd9f595ccf5768843e3b674ffb1e84..06abbd458878cf1671eb63b886da9c91aa31988d 100644 (file)
@@ -50,3 +50,12 @@ augroup qs_colors
     autocmd ColorScheme * highlight QuickScopeSecondary guifg='#5fffff' gui=underline ctermfg=81 cterm=underline
 augroup END
 ]]
+
+vim.cmd [[
+augroup jumplast
+    autocmd BufReadPost *
+          \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
+          \ |   exe "normal! g`\""
+          \ | endif
+augroup END
+]]