Skip to content

Commit

Permalink
fix: get current bufnr in ftplugin instead of relying on 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Oct 6, 2023
1 parent b349b7e commit af34813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/quarto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ vim.b.slime_cell_delimiter = "```"
local quarto = require'quarto'

local function set_keymaps()
local b = 0
local b = vim.api.nvim_get_current_buf()
local function set(lhs, rhs)
vim.api.nvim_buf_set_keymap(b, 'n', lhs, rhs, { silent = true, noremap = true })
end
Expand Down

0 comments on commit af34813

Please sign in to comment.