Skip to content

Commit

Permalink
(all) Update help to highlight code inside lists with tree-sitter on.
Browse files Browse the repository at this point in the history
  • Loading branch information
echasnovski committed Jan 29, 2024
1 parent 5347181 commit 6ac2023
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/mini-cursorword.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ highlighting update.
Module-specific disabling:
- Don't show highlighting if cursor is on the word that is in a blocklist
of current filetype. In this example, blocklist for "lua" is "local" and
"require" words, for "javascript" - "import":
>
"require" words, for "javascript" - "import": >
_G.cursorword_blocklist = function()
local curword = vim.fn.expand('<cword>')
local filetype = vim.bo.filetype
Expand Down
4 changes: 2 additions & 2 deletions lua/mini/cursorword.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
--- Module-specific disabling:
--- - Don't show highlighting if cursor is on the word that is in a blocklist
--- of current filetype. In this example, blocklist for "lua" is "local" and
--- "require" words, for "javascript" - "import":
--- >
--- "require" words, for "javascript" - "import": >
---
--- _G.cursorword_blocklist = function()
--- local curword = vim.fn.expand('<cword>')
--- local filetype = vim.bo.filetype
Expand Down

0 comments on commit 6ac2023

Please sign in to comment.