mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix(outline): use 2-space indent instead of 1-space
2 spaces is more visually distinct at very little cost.
This commit is contained in:
		| @@ -95,7 +95,7 @@ function M.show_toc(qf_height) | ||||
|   -- add indentation for nicer list formatting | ||||
|   for _, heading in pairs(headings) do | ||||
|     -- Quickfix trims whitespace, so use non-breaking space instead | ||||
|     heading.text = ('\194\160'):rep(heading.level - 1) .. heading.text | ||||
|     heading.text = ('\194\160'):rep((heading.level - 1) * 2) .. heading.text | ||||
|   end | ||||
|   vim.fn.setloclist(0, headings, ' ') | ||||
|   vim.fn.setloclist(0, {}, 'a', { title = 'Table of contents' }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Justin M. Keyes
					Justin M. Keyes