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]] })