Skip to content

Commit 8d3e1e0

Browse files
committed
(all) Don't use nvim_{buf,win}_get_option() in code in favor of vim.{bo,wo}.
Details: - They have been soft deprecated for a long time.
1 parent ff757d3 commit 8d3e1e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/mini-cursorword.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Module-specific disabling:
6161
>
6262
_G.cursorword_blocklist = function()
6363
local curword = vim.fn.expand('<cword>')
64-
local filetype = vim.api.nvim_buf_get_option(0, 'filetype')
64+
local filetype = vim.bo.filetype
6565
6666
-- Add any disabling global or filetype-specific logic here
6767
local blocklist = {}

lua/mini/cursorword.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
--- >
6262
--- _G.cursorword_blocklist = function()
6363
--- local curword = vim.fn.expand('<cword>')
64-
--- local filetype = vim.api.nvim_buf_get_option(0, 'filetype')
64+
--- local filetype = vim.bo.filetype
6565
---
6666
--- -- Add any disabling global or filetype-specific logic here
6767
--- local blocklist = {}

0 commit comments

Comments
 (0)