We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nvim_{buf,win}_get_option()
vim.{bo,wo}
1 parent ff757d3 commit 8d3e1e0Copy full SHA for 8d3e1e0
doc/mini-cursorword.txt
@@ -61,7 +61,7 @@ Module-specific disabling:
61
>
62
_G.cursorword_blocklist = function()
63
local curword = vim.fn.expand('<cword>')
64
- local filetype = vim.api.nvim_buf_get_option(0, 'filetype')
+ local filetype = vim.bo.filetype
65
66
-- Add any disabling global or filetype-specific logic here
67
local blocklist = {}
lua/mini/cursorword.lua
@@ -61,7 +61,7 @@
--- >
--- _G.cursorword_blocklist = function()
--- local curword = vim.fn.expand('<cword>')
---- local filetype = vim.api.nvim_buf_get_option(0, 'filetype')
+--- local filetype = vim.bo.filetype
---
--- -- Add any disabling global or filetype-specific logic here
--- local blocklist = {}
0 commit comments