We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6eb5449 commit d245c0aCopy full SHA for d245c0a
1 file changed
after/plugin/options.lua
@@ -57,6 +57,13 @@ vim.api.nvim_create_autocmd('FileType', {
57
end,
58
})
59
60
+-- Match fold column markers to line number colour.
61
+local function link_foldcolumn()
62
+ vim.api.nvim_set_hl(0, 'FoldColumn', { link = 'LineNr' })
63
+end
64
+link_foldcolumn()
65
+vim.api.nvim_create_autocmd('ColorScheme', { callback = link_foldcolumn })
66
+
67
-- When nvim is invoked with +N (e.g. nvim file.txt +1234), open the fold at
68
-- the cursor so the target line is immediately visible. VimEnter fires after
69
-- the +line command has positioned the cursor, so zv ("view cursor line")
0 commit comments