File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 145
145
(run-command
146
146
plugin
147
147
(fn [msg]
148
- (let [buffer (api/get-current-buf nvim)
149
- filename (api.buffer/get-name nvim buffer)]
150
- (if (.exists (io/as-file filename))
151
- (do
152
- ; ; Not sure if saving the file is really always what we want,
153
- ; ; but if we don't, stale data will be loaded.
154
- (api/command nvim " :w" )
155
- (async/>!! code-channel (format " (load-file \" %s\" )" filename)))
156
- (let [code (string/join " \n " (api.buffer-ext/get-lines
157
- nvim buffer 0 -1 ))]
158
- (async/>!! code-channel (format " (eval '(do %s))" code))))))))
148
+ (let [buffer (api/get-current-buf nvim)]
149
+ (let [code (string/join " \n " (api.buffer-ext/get-lines
150
+ nvim buffer 0 -1 ))]
151
+ (async/>!! code-channel (format " (eval '(do %s))" code)))))))
159
152
160
153
(nvim/register-method!
161
154
nvim
You can’t perform that action at this time.
0 commit comments