mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(words): incorrect enabled check. Fixes #247
This commit is contained in:
parent
6284a765b6
commit
9c8f3d5318
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ function M.is_enabled(buf)
|
|||
clients = vim.tbl_filter(function(client)
|
||||
return client.supports_method("textDocument/documentHighlight", { bufnr = buf })
|
||||
end, clients)
|
||||
return config.enabled and vim.tbl_contains(config.modes, mode) and #clients > 0
|
||||
return M.enabled and vim.tbl_contains(config.modes, mode) and #clients > 0
|
||||
end
|
||||
|
||||
---@private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue