Skip to content

Commit af34813

Browse files
committed
fix: get current bufnr in ftplugin instead of relying on 0
1 parent b349b7e commit af34813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/quarto.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ vim.b.slime_cell_delimiter = "```"
33
local quarto = require'quarto'
44

55
local function set_keymaps()
6-
local b = 0
6+
local b = vim.api.nvim_get_current_buf()
77
local function set(lhs, rhs)
88
vim.api.nvim_buf_set_keymap(b, 'n', lhs, rhs, { silent = true, noremap = true })
99
end

0 commit comments

Comments
 (0)