File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ local config = require('orgmode.config')
2
2
local namespace = vim .api .nvim_create_namespace (' org_custom_highlighter' )
3
3
local HideLeadingStars = nil
4
4
local MarkupHighlighter = nil
5
- local valid_bufnrs = {}
6
5
7
6
--- @param bufnr number
8
7
local function apply_highlights (bufnr , line )
@@ -22,14 +21,6 @@ local function setup()
22
21
MarkupHighlighter .setup ()
23
22
24
23
vim .api .nvim_set_decoration_provider (namespace , {
25
- on_start = function (_ , tick )
26
- local bufnr = vim .api .nvim_get_current_buf ()
27
- if valid_bufnrs [bufnr ] == tick or vim .bo [bufnr ].filetype ~= ' org' then
28
- return false
29
- end
30
- valid_bufnrs [bufnr ] = tick
31
- return true
32
- end ,
33
24
on_win = function (_ , _ , bufnr )
34
25
return vim .bo [bufnr ].filetype == ' org'
35
26
end ,
You can’t perform that action at this time.
0 commit comments