nvim: Drop vim Haskell file type plugin
Those movement shortcuts are something we never really used.
This commit is contained in:
parent
9d7dd34877
commit
10bc8ef6c3
1 changed files with 0 additions and 29 deletions
|
@ -1,29 +0,0 @@
|
|||
" Taken from https://github.com/danidiaz/miscellany/blob/master/linux/.vim/ftplugin/haskell/movements.vim
|
||||
" Next top-level type signature
|
||||
nnoremap <script> <silent> ]f /^\w[^:=$]*\(::\\|\n\s*::\)<CR>
|
||||
" Previous top-level type signature
|
||||
nnoremap <script> <silent> [f ?^\w[^:=$]*::\(::\\|\n\s*::\)<CR>
|
||||
" Next type signature
|
||||
nnoremap <script> <silent> ]l /^\s*\w[^:=$]*\(::\\|\n\s*::\)<CR>
|
||||
" Previous type signature
|
||||
nnoremap <script> <silent> [l ?^\s*\w[^:=$]*\(::\\|\n\s*::\)<CR>
|
||||
" Next data declaration
|
||||
nnoremap <script> <silent> ]t /^\(data \\|newtype \\|type \\|class\)<CR>
|
||||
" Previous data declaration
|
||||
nnoremap <script> <silent> [t ?^\(data \\|newtype \\|type \\|class\)<CR>
|
||||
" Beginning of imports
|
||||
nnoremap <script> <silent> [i gg/^import <CR>z<CR>
|
||||
" End of imports
|
||||
nnoremap <script> <silent> [I G?^import <CR>zb
|
||||
" Beginning of module exports
|
||||
nnoremap <script> <silent> [m gg/^module <CR>z<CR>
|
||||
" End of module exports (wonky)
|
||||
nnoremap <script> <silent> [M gg/^\s*)\s*where\s*$<CR>zb<CR>
|
||||
" Next named chunk of documentation
|
||||
" https://www.haskell.org/haddock/doc/html/ch03s05.html
|
||||
nnoremap <script> <silent> ]n /^-- \$\w\+<CR>z<CR>
|
||||
" Previous named chunk of documentation
|
||||
nnoremap <script> <silent> [n ?^-- \$\w\+<CR>z<CR>
|
||||
|
||||
" Disable vim-matchup
|
||||
autocmd! BufEnter <buffer> :NoMatchParen
|
Loading…
Reference in a new issue