use nvim_get_option_value instead of nvim{,_buf,_win}_get_option
This commit is contained in:
@@ -9,7 +9,7 @@ return function()
|
||||
local config = {
|
||||
enabled = function()
|
||||
local disabled = false
|
||||
disabled = disabled or (vim.api.nvim_buf_get_option(0, 'buftype') == 'prompt')
|
||||
disabled = disabled or (vim.api.nvim_get_option_value('buftype', { buf = 0 }) == 'prompt')
|
||||
disabled = disabled or (vim.fn.reg_recording() ~= '')
|
||||
disabled = disabled or (vim.fn.reg_executing() ~= '')
|
||||
return not disabled
|
||||
|
||||
Reference in New Issue
Block a user