Skip to content

Commit

Permalink
feat!: removed noautocmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuyuanp committed Jan 23, 2025
1 parent 6061963 commit e4be5e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/yanil/canvas.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ local function create_buf(name)
end

local function create_win(bufnr)
api.nvim_command('noautocmd topleft vertical 30 new')
api.nvim_command('noautocmd setlocal bufhidden=wipe')
vim.cmd('topleft vertical 30 new')
vim.cmd('setlocal bufhidden=wipe')

api.nvim_win_set_buf(0, bufnr)

for _, win_opt in ipairs(win_options) do
api.nvim_command('noautocmd setlocal ' .. win_opt)
vim.cmd('setlocal ' .. win_opt)
end
end

Expand Down

0 comments on commit e4be5e7

Please sign in to comment.