Refresh generated neovim config
This commit is contained in:
@ -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]],
|
||||
|
||||
@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user