mirror of
https://github.com/neovim/neovim.git
synced 2026-07-15 13:50:33 +00:00
fix(ftplugin): port checkhealth ftplugin to Lua
This commit is contained in:
committed by
Christian Clason
parent
eb94149a29
commit
fd02e91319
@@ -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 <buffer> gO"'
|
||||
.. '\n sil! exe "nunmap <buffer> ]]" | sil! exe "nunmap <buffer> [["'
|
||||
.. '\n setlocal tags<'
|
||||
.. '\n setlocal wrap< breakindent< linebreak< list< conceallevel< concealcursor< iskeyword< tags<'
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user