Skip to content

Commit dd8ae2c

Browse files
authored
Merge pull request #45 from alichtman/master
Fix typo (local-highligh -> local-highlight)
2 parents bdf0e15 + 3677cca commit dd8ae2c

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Set to false to stop highlighting words that only appear once.
120120
## `animate`
121121

122122
If you have [snacks.nvim](https://github.com/folke/snacks.nvim) installed and
123-
are using at least `nvim-0.10`, `local-highligh` will use `Snacks.animate` by default. In this case, only the
123+
are using at least `nvim-0.10`, `local-highlight` will use `Snacks.animate` by default. In this case, only the
124124
**background** specified in `hlgroup` will be used.
125125

126126
To disable animation regardless of `snacks`, just set `enabled = false`. All

doc/local-highlight.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Set to false to stop highlighting words that only appear once.
178178
ANIMATE *local-highlight-setup-animate*
179179

180180
If you have snacks.nvim <https://github.com/folke/snacks.nvim> installed andare
181-
using at least `nvim-0.10`, `local-highligh` will use `Snacks.animate` by
181+
using at least `nvim-0.10`, `local-highlight` will use `Snacks.animate` by
182182
default. In this case, only the**background** specified in `hlgroup` will be
183183
used.
184184

lua/local-highlight.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,11 @@ function M.setup(config)
411411
if M.config.animate and M.config.animate.enabled then
412412
local err = {}
413413
if not vim.fn.has('nvim-0.10') == 1 then
414-
table.insert(err, 'local-highligh.nvim only supports animation on nvim-0.10 onwards')
414+
table.insert(err, 'local-highlight.nvim only supports animation on nvim-0.10 onwards')
415415
end
416416

417417
if not pcall(require, 'snacks.animate') then
418-
table.insert(err, 'local-highligh.nvim only supports animation if snacks.nvim is installed')
418+
table.insert(err, 'local-highlight.nvim only supports animation if snacks.nvim is installed')
419419
end
420420
if not vim.tbl_isempty(err) then
421421
M.config.animate = nil
@@ -453,18 +453,18 @@ function M.setup(config)
453453
--- add togglecommands
454454
api.nvim_create_user_command('LocalHighlightOff', function()
455455
M.detach(vim.fn.bufnr('%'))
456-
end, { desc = 'Turn local-highligh.nvim off' })
456+
end, { desc = 'Turn local-highlight.nvim off' })
457457
api.nvim_create_user_command('LocalHighlightOn', function()
458458
M.attach(vim.fn.bufnr('%'))
459-
end, { desc = 'Turn local-highligh.nvim on' })
459+
end, { desc = 'Turn local-highlight.nvim on' })
460460
api.nvim_create_user_command('LocalHighlightToggle', function()
461461
local bufnr = vim.fn.bufnr('%')
462462
if M.is_attached(bufnr) then
463463
M.detach(bufnr)
464464
else
465465
M.attach(bufnr)
466466
end
467-
end, { desc = 'Toggle local-highligh.nvim' })
467+
end, { desc = 'Toggle local-highlight.nvim' })
468468

469469
api.nvim_create_user_command('LocalHighlightStats', function()
470470
api.nvim_echo({ { M.stats() } }, false, {})

0 commit comments

Comments
 (0)