From ff8c1d76741f148d5f6efb9a57119dcf11afaec6 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 9 Jun 2021 09:50:19 +0200 Subject: Update --- ftplugin/smt2.vim | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) (limited to 'ftplugin/smt2.vim') diff --git a/ftplugin/smt2.vim b/ftplugin/smt2.vim index d6cfa5ec..b8e8c46c 100644 --- a/ftplugin/smt2.vim +++ b/ftplugin/smt2.vim @@ -3,27 +3,13 @@ if polyglot#init#is_disabled(expand(':p'), 'smt2', 'ftplugin/smt2.vim') endif setlocal iskeyword+=-,:,#,',$ +setlocal commentstring=;%s -" If no command for invoking a solver is specified in ~/.vimrc, test if either -" 'z3' or 'boolector' is accessible through $PATH (in that order) -if !exists("g:smt2_solver_command") - if executable("z3") - let g:smt2_solver_command = "z3" - elseif executable("boolector") - let g:smt2_solver_command = "boolector" - endif -endif - -" If no command line switch for printing the solver's version is specified in -" ~/.vimrc, use '--version' -if !exists("g:smt2_solver_version_switch") - let g:smt2_solver_version_switch = "--version" -endif - -" Mappings -nnoremap r :call smt2#RunSolver() -nnoremap R :call smt2#RunSolverAndShowResult() -nnoremap v :call smt2#PrintSolverVersion() +" Mappings for solver functionality +nnoremap r :call smt2#solver#Run() +nnoremap R :call smt2#solver#RunAndShowResult() +nnoremap v :call smt2#solver#PrintVersion() -" Comment String -setlocal commentstring=;%s +" Mappings for formatting functionality +nnoremap f :call smt2#formatter#FormatCurrentParagraph() +nnoremap F :call smt2#formatter#FormatAllParagraphs() -- cgit v1.2.3