From d6f71c8ab2d5c36bf38810ce17511756c51b6d9c Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Fri, 1 Jul 2022 21:14:12 +0200 Subject: [PATCH] disbable get to location after file load --- lua/my_autocommands.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/my_autocommands.lua b/lua/my_autocommands.lua index 8f01159..3c8b63a 100644 --- a/lua/my_autocommands.lua +++ b/lua/my_autocommands.lua @@ -57,10 +57,10 @@ api.nvim_create_autocmd({ 'FocusLost' }, { command = [[wshada]] }) api.nvim_create_autocmd({ 'FocusGained' }, { command = [[rshada]] }) -- go to last loc when opening a buffer -api.nvim_create_autocmd( - 'BufReadPost', - { command = [[if line("'\"") > 1 && line("'\"") <= line("$") | execute "normal! g`\"" | endif]] } -) +-- api.nvim_create_autocmd( +-- 'BufReadPost', +-- { command = [[if line("'\"") > 1 && line("'\"") <= line("$") | execute "normal! g`\"" | endif]] } +-- ) -- Check if we need to reload the file when it changed api.nvim_create_autocmd({ 'FocusGained', 'BufEnter' }, { command = [[:checktime]] })