robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
fd02e91319
master
1vim . wo [ 0 ][ 0 ]. wrap =true 2vim . wo [ 0 ][ 0 ]. breakindent =true 3vim . wo [ 0 ][ 0 ]. linebreak =true 4vim . wo [ 0 ][ 0 ]. list =false 5vim . wo [ 0 ][ 0 ]. conceallevel =2 6vim . wo [ 0 ][ 0 ]. concealcursor ='nc' 7vim . bo . iskeyword ='!-~,^*,^|,^",192-255' 8 9vim . keymap . set ( 'n' , 'gO' , function () 10require ( 'vim.treesitter._headings' ). show_toc ( 6 ) 11end , { buf =0 , silent =true , desc ='Show an Outline of the current buffer' } ) 12 13vim . keymap . set ( 'n' , ']]' , function () 14require ( 'vim.treesitter._headings' ). jump ( { count =1 , level =1 } ) 15end , { buf =0 , silent =false , desc ='Jump to next section' } ) 16vim . keymap . set ( 'n' , '[[' , function () 17require ( 'vim.treesitter._headings' ). jump ( { count =- 1 , level =1 } ) 18end , { buf =0 , silent =false , desc ='Jump to previous section' } ) 19 20-- Look for tags in help tags files 21vim . bo . tags =vim 22. iter ( vim . api . nvim_get_runtime_file ( 'doc/tags doc/tags-??' , true )) 23: map ( vim . fn . fnameescape ) 24: map ( function ( path ) 25return vim . fn . escape ( path , ',' ) 26end ) 27: join ( ',' ) 28 29vim . b . undo_ftplugin =( vim . b . undo_ftplugin or '' ) 30.. '\n sil! exe "nunmap <buffer> gO"' 31.. '\n sil! exe "nunmap <buffer> ]]" | sil! exe "nunmap <buffer> [["' 32.. '\n setlocal wrap< breakindent< linebreak< list< conceallevel< concealcursor< iskeyword< tags<'