1

Refresh generated neovim config

This commit is contained in:
2024-08-15 13:01:03 +02:00
parent 64b51cf53a
commit f5af8e2b28
1836 changed files with 38979 additions and 31094 deletions

View File

@ -46,9 +46,10 @@ function M.match(str, patterns)
for _, pattern in pairs(patterns) do
local m = vim.fn.matchlist(str, [[\v\C]] .. pattern)
if #m > 1 and m[2] then
local kw = m[2]
local start = str:find(kw)
return start, start + #kw, kw
local match = m[2]
local kw = m[3] ~= "" and m[3] or m[2]
local start = str:find(match, 1, true)
return start, start + #match, kw
end
end
end
@ -387,7 +388,6 @@ function M.start()
[[augroup Todo
autocmd!
autocmd BufWinEnter,WinNew * lua require("todo-comments.highlight").attach()
autocmd BufWritePost * silent! lua require'trouble'.refresh({auto = true, provider = "todo"})
autocmd WinScrolled * lua require("todo-comments.highlight").highlight_win()
autocmd ColorScheme * lua vim.defer_fn(require("todo-comments.config").colors, 10)
augroup end]],

View File

@ -1,5 +1,5 @@
local highlight = require("todo-comments.highlight")
local config = require("todo-comments.config")
local highlight = require("todo-comments.highlight")
local util = require("todo-comments.util")
local M = {}