Skip to content

Commit

Permalink
fix(nvim): Run cd autocmd on BufRead
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed May 30, 2024
1 parent 95c3791 commit c1e5b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvim/lua/my/legendary/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function M.default_autocmds()
},
{
-- if I'm editing my nvim config, make sure I'm `cd`d into `nvim`
'BufReadPre',
'BufRead',
function()
local bufname = vim.api.nvim_buf_get_name(0)
if
Expand Down

0 comments on commit c1e5b35

Please sign in to comment.