From 74fcc9452cd99680a9f4aad255e90204966f74c3 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 19 Mar 2025 04:17:00 -0700 Subject: fix(runtime): gO always says "Help TOC" #32971 Problem: gO always says "Help TOC". Solution: Use a generic title instead. --- runtime/ftplugin/checkhealth.lua | 2 +- runtime/ftplugin/help.lua | 2 +- runtime/ftplugin/markdown.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/checkhealth.lua b/runtime/ftplugin/checkhealth.lua index d0f8cec074..1ceee7cfc3 100644 --- a/runtime/ftplugin/checkhealth.lua +++ b/runtime/ftplugin/checkhealth.lua @@ -1,6 +1,6 @@ vim.keymap.set('n', 'gO', function() require('vim.treesitter._headings').show_toc() -end, { buffer = 0, silent = true, desc = 'Show table of contents for current buffer' }) +end, { buffer = 0, silent = true, desc = 'Show an Outline of the current buffer' }) vim.keymap.set('n', ']]', function() require('vim.treesitter._headings').jump({ count = 1, level = 1 }) diff --git a/runtime/ftplugin/help.lua b/runtime/ftplugin/help.lua index 1833e70ff9..14255fa0fc 100644 --- a/runtime/ftplugin/help.lua +++ b/runtime/ftplugin/help.lua @@ -57,7 +57,7 @@ end vim.keymap.set('n', 'gO', function() require('vim.treesitter._headings').show_toc() -end, { buffer = 0, silent = true, desc = 'Show table of contents for current buffer' }) +end, { buffer = 0, silent = true, desc = 'Show an Outline of the current buffer' }) vim.keymap.set('n', ']]', function() require('vim.treesitter._headings').jump({ count = 1 }) diff --git a/runtime/ftplugin/markdown.lua b/runtime/ftplugin/markdown.lua index d9958706c8..33b047c237 100644 --- a/runtime/ftplugin/markdown.lua +++ b/runtime/ftplugin/markdown.lua @@ -1,6 +1,6 @@ vim.keymap.set('n', 'gO', function() require('vim.treesitter._headings').show_toc() -end, { buffer = 0, silent = true, desc = 'Show table of contents for current buffer' }) +end, { buffer = 0, silent = true, desc = 'Show an Outline of the current buffer' }) vim.keymap.set('n', ']]', function() require('vim.treesitter._headings').jump({ count = 1 }) -- cgit