diff --git a/runtime/ftplugin/checkhealth.lua b/runtime/ftplugin/checkhealth.lua index 74ee47b5f1..22c403a031 100644 --- a/runtime/ftplugin/checkhealth.lua +++ b/runtime/ftplugin/checkhealth.lua @@ -1,3 +1,11 @@ +vim.wo[0][0].wrap = true +vim.wo[0][0].breakindent = true +vim.wo[0][0].linebreak = true +vim.wo[0][0].list = false +vim.wo[0][0].conceallevel = 2 +vim.wo[0][0].concealcursor = 'nc' +vim.bo.iskeyword = '!-~,^*,^|,^",192-255' + vim.keymap.set('n', 'gO', function() require('vim.treesitter._headings').show_toc(6) end, { buf = 0, silent = true, desc = 'Show an Outline of the current buffer' }) @@ -21,4 +29,4 @@ vim.bo.tags = vim vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '') .. '\n sil! exe "nunmap gO"' .. '\n sil! exe "nunmap ]]" | sil! exe "nunmap [["' - .. '\n setlocal tags<' + .. '\n setlocal wrap< breakindent< linebreak< list< conceallevel< concealcursor< iskeyword< tags<' diff --git a/runtime/ftplugin/checkhealth.vim b/runtime/ftplugin/checkhealth.vim deleted file mode 100644 index cc53d723c2..0000000000 --- a/runtime/ftplugin/checkhealth.vim +++ /dev/null @@ -1,17 +0,0 @@ -" Vim filetype plugin -" Language: Nvim :checkhealth buffer - -if exists("b:did_ftplugin") - finish -endif - -runtime! ftplugin/help.vim - -setlocal wrap breakindent linebreak nolist -let &l:iskeyword='!-~,^*,^|,^",192-255' - -if exists("b:undo_ftplugin") - let b:undo_ftplugin .= "|setl wrap< bri< lbr< kp< isk< list<" -else - let b:undo_ftplugin = "setl wrap< bri< lbr< kp< isk< list<" -endif