From 8bffcf8d5cdf9550c66a1d9f4f36d12e906d5ef9 Mon Sep 17 00:00:00 2001 From: Ben Fiedler Date: Wed, 12 May 2021 12:55:59 +0200 Subject: [PATCH] Update minor usability improvements * auto-wrap sledgehammer window * fix symbol replacement by using a sensible font --- README.md | 13 +++++++++---- plugin/isabelle.vim | 4 ++-- syntax/isabelle.vim | 22 +++++++++------------- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 119a356..a313bf4 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,13 @@ Plug 'ThreeFx/isabelle.vim' |`g:isabelle_output_height`|10|Height of the Isabelle output window| |`g:isabelle_process_width`|40|Height of the Isabelle process window| +## Font + +I am currently using the [JuliaMono font](https://juliamono.netlify.app/) with +this, mainly because all it's unicode symbols are actually monospaced as well. + +Note that this is not the font shown in the screenshots below. + ## Screenshots/Features #### Overview @@ -35,10 +42,8 @@ configurable. ![](screenshots/overview.png) To use the progress window, you have to use [Mathias' Isabelle -fork](https://github.com/m-fleury/isabelle-release), used for the `emacs-lsp` -implementation. (Currently, you even have to use [my fork of his -fork](https://github.com/ThreeFx/isabelle-release), since the emacs -version deals with HTML output natively). +fork](https://github.com/m-fleury/isabelle-emacs), used for the `emacs-lsp` +implementation. #### Sledgehammer + Code Action diff --git a/plugin/isabelle.vim b/plugin/isabelle.vim index 6806065..f50dbf8 100644 --- a/plugin/isabelle.vim +++ b/plugin/isabelle.vim @@ -19,7 +19,7 @@ function! s:open_isa_output_window() setlocal bufhidden=hide setlocal filetype=isabelle setlocal noswapfile nobuflisted textwidth=0 - setlocal nolist winfixheight nospell nowrap nonumber nocursorline + setlocal nolist winfixheight nospell wrap nonumber nocursorline wincmd p endif endfunction @@ -38,7 +38,7 @@ function! s:open_isa_progress_window() setlocal buftype=nofile setlocal bufhidden=hide setlocal noswapfile nobuflisted textwidth=0 - setlocal nolist winfixwidth nospell nowrap nonumber nocursorline + setlocal nolist winfixwidth nospell wrap nonumber nocursorline wincmd p endif endfunction diff --git a/syntax/isabelle.vim b/syntax/isabelle.vim index 11291a4..49685d2 100644 --- a/syntax/isabelle.vim +++ b/syntax/isabelle.vim @@ -289,10 +289,6 @@ syn match IsabelleSpecial /\\\|\/ syn match IsabelleSpecial /\/ syn match IsabelleSpecial /\./ -" Special handling for \long*arrow, \Long*arrow and \longmapsto -syn match IsabelleSpecial /arrow>/ conceal cchar= -syn match IsabelleSpecial /sto>/ conceal cchar= - " Collapse Isabelle escape sequences. syn match IsabelleSpecial /\\/ conceal cchar=βŠ‡ syn match IsabelleSpecial /\\/ conceal cchar=π”Ž @@ -331,7 +327,7 @@ syn match IsabelleSpecial /\\/ conceal cchar=𝖾 syn match IsabelleSpecial /\\/ conceal cchar=β—Š syn match IsabelleSpecial /\\/ conceal cchar=π—Ž syn match IsabelleSpecial /\\/ conceal cchar=β™― -syn match IsabelleSpecial /\\/ conceal cchar=⟺ syn match IsabelleSpecial /\\/ conceal cchar=⨂ syn match IsabelleSpecial /\\/ conceal cchar=π”ˆ syn match IsabelleSpecial /\\/ conceal cchar=ℐ @@ -400,7 +396,7 @@ syn match IsabelleSpecial /\\/ conceal cchar=Γ— syn match IsabelleSpecial /\\/ conceal cchar=β‰  syn match IsabelleSpecial /\\/ conceal cchar=⟩ syn match IsabelleSpecial /\\
/ conceal cchar=Γ· -syn match IsabelleSpecial /\\/ conceal cchar=⟹ syn match IsabelleSpecial /\\/ conceal cchar=𝔅 syn match IsabelleSpecial /\\/ conceal cchar=⊐ syn match IsabelleSpecial /\\/ conceal cchar=β†’ @@ -413,7 +409,7 @@ syn match IsabelleSpecial /\\/ conceal cchar=€ syn match IsabelleSpecial /\\/ conceal cchar=𝔡 syn match IsabelleSpecial /\\/ conceal cchar=𝒴 syn match IsabelleSpecial /\\/ conceal cchar=ΞΆ -syn match IsabelleSpecial /\\/ conceal cchar=⟡ syn match IsabelleSpecial /\\/ conceal cchar=𝖺 syn match IsabelleSpecial /\\/ conceal cchar=ΒΌ syn match IsabelleSpecial /\\/ conceal cchar=β‹€ @@ -468,7 +464,7 @@ syn match IsabelleSpecial /\\/ conceal cchar=⋆ syn match IsabelleSpecial /\\/ conceal cchar=β‡Œ syn match IsabelleSpecial /\\/ conceal cchar=≑ syn match IsabelleSpecial /\\/ conceal cchar=⟨ -syn match IsabelleSpecial /\\/ conceal cchar=⟸ syn match IsabelleSpecial /\\/ conceal cchar=βˆ„ syn match IsabelleSpecial /\\/ conceal cchar=⨀ syn match IsabelleSpecial /\\/ conceal cchar=⌊ @@ -534,7 +530,7 @@ syn match IsabelleSpecial /\\/ conceal cchar=⇓ syn match IsabelleSpecial /\\/ conceal cchar=β™’ syn match IsabelleSpecial /\\/ conceal cchar=⟧ syn match IsabelleSpecial /\\/ conceal cchar=β‰ͺ -syn match IsabelleSpecial /\\/ conceal cchar=⟷ syn match IsabelleSpecial /\\/ conceal cchar=β‰Ί syn match IsabelleSpecial /\\/ conceal cchar=βˆ… syn match IsabelleSpecial /\\/ conceal cchar=⦈ @@ -555,7 +551,7 @@ syn match IsabelleSpecial /\\/ conceal cchar=β‰₯ syn match IsabelleSpecial /\\/ conceal cchar=β™­ syn match IsabelleSpecial /\\/ conceal cchar=𝟬 syn match IsabelleSpecial /\\/ conceal cchar=⨄ -syn match IsabelleSpecial /\\/ conceal cchar=⟼ syn match IsabelleSpecial /\\/ conceal cchar=βŠƒ syn match IsabelleSpecial /\\/ conceal cchar=∈ syn match IsabelleSpecial /\\/ conceal cchar=βŠ“ @@ -603,7 +599,7 @@ syn match IsabelleSpecial /\\/ conceal cchar=𝗒 syn match IsabelleSpecial /\\/ conceal cchar=⟦ syn match IsabelleSpecial /\\/ conceal cchar=≳ syn match IsabelleSpecial /\\/ conceal cchar=βͺ† -syn match IsabelleSpecial /\\/ conceal cchar=⟢ syn match IsabelleSpecial /\\/ conceal cchar=⌈ syn match IsabelleSpecial /\\/ conceal cchar=Ξ“ syn match IsabelleSpecial /\\/ conceal cchar=βŠ™ @@ -661,7 +657,7 @@ syn region IsabelleLocaleFold \ end="\" \ fold keepend transparent -syn match IsabelleComment "--.*$" +"syn match IsabelleComment "--.*$" hi def link IsabelleComment Comment hi def link IsabelleCommentStart Comment hi def link IsabelleCommentContent Comment @@ -788,7 +784,6 @@ if exists('g:isabelle_abbreviations') iab ? exists> iab EX exists> iab ~? nexists> - iab ~ not> iab - turnstile> iab = Turnstile> iab - tturnstile> @@ -813,6 +808,7 @@ if exists('g:isabelle_abbreviations') iab SUP Squnion> iab INF Sqinter> iab ~= noteq> + iab ~ not> iab .= doteq> iab == equiv> iab parallel>