Comments (2)
I believe that it should be sufficient to set the filetype=lisp
in the preview window -- then the same keybindings should be available.
Well, the package should be set -- there's some buffer-specific variable for that, ISTR.
from vlime.
Yeah, that is a good starting point indeed (the following patch might not cleanly apply, as I had other local changes in the same file):
diff --git a/vim/autoload/vlime/ui.vim b/vim/autoload/vlime/ui.vim
index 01838df..0f3aa97 100644
--- a/vim/autoload/vlime/ui.vim
+++ b/vim/autoload/vlime/ui.vim
@@ -902,6 +943,7 @@ function! vlime#ui#ShowTransientWindow(
\ conn, content, append, buf_name, win_name, ...)
let file_type = get(a:000, 0, v:null)
let old_win_id = win_getid()
+ let old_cur_package = a:conn.GetCurrentPackage()
try
let buf = vlime#ui#OpenBufferWithWinSettings(
\ a:buf_name, v:true, a:win_name)
@@ -919,6 +961,8 @@ function! vlime#ui#ShowTransientWindow(
call setbufvar(buf, 'vlime_conn', a:conn)
endif
+ call a:conn.SetCurrentPackage(old_cur_package)
+
setlocal modifiable
if a:append
call vlime#ui#AppendString(a:content)
@@ -942,7 +986,7 @@ endfunction
function! vlime#ui#ShowPreview(conn, content, append)
return vlime#ui#ShowTransientWindow(
\ a:conn, a:content, a:append,
- \ vlime#ui#PreviewBufName(), 'preview', 'vlime_preview')
+ \ vlime#ui#PreviewBufName(), 'preview', 'vlime_preview.lisp')
endfunction
""
Unfortunately though, subsequent macroexpand operations will completely replace the content of the preview window, rather than expanding inline. I could live with that if that preview window had history support (so I could go back to the previous expansion); but it doesn't, and since I need to hack a few things anyways, I might as well try to implement the inline macroexpansion (or die trying!).
from vlime.
Related Issues (20)
- Skip shebang line when loading file with <localleader>l
- Clojure Support
- loading start-vlime.lisp says quicklisp isn't installed but it is HOT 2
- Perf improvement wanted for vlime#ui#CurArgPos() HOT 5
- Sized vertical repl does not work in neovim
- JSON communication working HOT 15
- Connecting to running Swank server? HOT 25
- Installation issues on MacOS with Pathogen HOT 3
- Implement the Parinfer algorithm HOT 2
- Request consideration to "rename" the project HOT 1
- How to get autocomplete? HOT 3
- Don't escape ANSI escape sequences
- `sldb` buffer doesn't work on OpenBSD HOT 7
- Weird highlight behavior inside the REPL buffer HOT 1
- SBCL warnings seem to break the REPL connection HOT 22
- can't press `d` to inspect frame in debugger HOT 4
- Rebind your leaders for weird outcome HOT 1
- Fix this bug introduced by upstream: thread waiting HOT 2
- Slynk support...? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vlime.