Skip to content

Commit 63e9017

Browse files
committed
fix: Use non-deprecated API
1 parent 319edf0 commit 63e9017

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lua/debugprint/setup.lua

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ local M = {}
33
local debugprint = require("debugprint")
44

55
local map_key = function(mode, lhs, buffer, opts)
6-
if lhs ~= nil and vim.api.nvim_buf_get_option(buffer, "modifiable") then
6+
if
7+
lhs ~= nil
8+
and vim.api.nvim_get_option_value("modifiable", { buf = buffer })
9+
then
710
opts = vim.tbl_extend("force", { expr = true }, opts)
811

912
vim.api.nvim_buf_set_keymap(buffer, mode, lhs, "", opts)

0 commit comments

Comments
 (0)