We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5465dd3 commit 49fe37fCopy full SHA for 49fe37f
lua/hlchunk/mods/line_num/init.lua
@@ -47,10 +47,16 @@ end
47
function LineNumMod:createAutocmd()
48
BaseMod.createAutocmd(self)
49
50
+ local bufnr = api.nvim_get_current_buf()
51
+ local exclude_filetypes = self.conf.exclude_filetypes
52
+ if exclude_filetypes[vim.bo[bufnr].buftype] then
53
+ return
54
+ end
55
+
56
api.nvim_create_autocmd({ "CursorMoved", "CursorMovedI" }, {
57
group = self.meta.augroup_name,
58
callback = function(event)
- local bufnr = event.buf
59
+ bufnr = event.buf
60
local winnr = api.nvim_get_current_win()
61
local pos = api.nvim_win_get_cursor(winnr)
62
local retcode, cur_chunk_range = chunkHelper.get_chunk_range({
0 commit comments