refactor file_maker signature and fix scrolling (#412)

This commit is contained in:
Simon Hauser
2021-01-11 21:10:42 +01:00
committed by GitHub
parent 07f8f3d340
commit 5592d709c6
2 changed files with 85 additions and 102 deletions

View File

@@ -62,9 +62,9 @@ utils.highlighter = function(bufnr, ft)
end
--- Attach regex highlighter
utils.regex_highlighter = function(_, ft)
utils.regex_highlighter = function(bufnr, ft)
if has_filetype(ft) then
vim.cmd(':ownsyntax ' .. ft)
vim.api.nvim_buf_set_option(bufnr, "syntax", ft)
return true
end
return false