diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-01-11 21:10:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-11 21:10:42 +0100 |
| commit | 5592d709c62a48041d1b6e66d3bf09293f2f176e (patch) | |
| tree | d951c1d552465a2091e61a76bc95eb454d06a75a /lua/telescope/previewers/utils.lua | |
| parent | 07f8f3d34033a806728d6b12833c7bc8ae172e7b (diff) | |
refactor file_maker signature and fix scrolling (#412)
Diffstat (limited to 'lua/telescope/previewers/utils.lua')
| -rw-r--r-- | lua/telescope/previewers/utils.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/previewers/utils.lua b/lua/telescope/previewers/utils.lua index 29ef1c0..67fded8 100644 --- a/lua/telescope/previewers/utils.lua +++ b/lua/telescope/previewers/utils.lua @@ -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 |
