summaryrefslogtreecommitdiffstats
path: root/ftplugin/smt2.vim
blob: b8e8c46cad24b71ce46f307ed4b9d5e531e3a945 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if polyglot#init#is_disabled(expand('<sfile>:p'), 'smt2', 'ftplugin/smt2.vim')
  finish
endif

setlocal iskeyword+=-,:,#,',$
setlocal commentstring=;%s

" Mappings for solver functionality
nnoremap <silent> <buffer> <localleader>r :call smt2#solver#Run()<cr>
nnoremap <silent> <buffer> <localleader>R :call smt2#solver#RunAndShowResult()<cr>
nnoremap <silent> <buffer> <localleader>v :call smt2#solver#PrintVersion()<cr>

" Mappings for formatting functionality
nnoremap <silent> <buffer> <localleader>f :call smt2#formatter#FormatCurrentParagraph()<cr>
nnoremap <silent> <buffer> <localleader>F :call smt2#formatter#FormatAllParagraphs()<cr>