We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 319edf0 commit 63e9017Copy full SHA for 63e9017
lua/debugprint/setup.lua
@@ -3,7 +3,10 @@ local M = {}
3
local debugprint = require("debugprint")
4
5
local map_key = function(mode, lhs, buffer, opts)
6
- if lhs ~= nil and vim.api.nvim_buf_get_option(buffer, "modifiable") then
+ if
7
+ lhs ~= nil
8
+ and vim.api.nvim_get_option_value("modifiable", { buf = buffer })
9
+ then
10
opts = vim.tbl_extend("force", { expr = true }, opts)
11
12
vim.api.nvim_buf_set_keymap(buffer, mode, lhs, "", opts)
0 commit comments