Update plugins.lua

This commit is contained in:
Benjamin Kyd
2024-08-02 10:53:28 +01:00
committed by GitHub
parent da81802bb4
commit 6da4ce3f41

View File

@@ -14,7 +14,21 @@ return {
{
'tzachar/local-highlight.nvim',
config = function()
require('local-highlight').setup()
require('local-highlight').setup(
hlgroup = 'Search',
cw_hlgroup = nil,
-- Whether to display highlights in INSERT mode or not
insert_mode = true,
min_match_len = 1,
max_match_len = math.huge,
highlight_single_match = true,
})
vim.api.nvim_create_autocmd('BufRead', {
pattern = {'*.*'},
callback = function(data)
require('local-highlight').attach(data.buf)
end
})
end
},
{