Coder Social home page Coder Social logo

Comments (4)

phmarek avatar phmarek commented on July 23, 2024

When I open any file with NeoVim, (not just .lisp files), the automated tests
run, and I am notified that '.../vim/test/test_autoload_vlime_ui.vim' failed.

:help vlime-tests says that loading that file would run the tests - but I don't see anything that would do that.

Which vim-script loader do you use? Is it possible that it loads all files in the hierarchy?

The tests haven't been maintained for some time, so it's easily possible that they don't work cleanly.

Upon opening a .lisp file, \cc does not work. By default, "" anything does
not work. I do not have any other plugins installed. I did notice though that
,c does work to connect to a server.

Yes, , is the default leader for slimv compatibility.

I tried to set the following in my
init.vim as per the documentation and neither worked: let maplocalleader
= '' let g:vlime_leader = ''

There's this snippet in vim/autoload/vlime/overlay/slimv.vim:41:

if exists('mapleader') && len(mapleader) > 0
    let s:slimv_leader = '<Leader>'
else
    let s:slimv_leader = ','
endif

So setting let mapleader='\' (perhaps only for .lisp files?) should work, if you want the slimv keybindings.

I was able to force the local leader to backslash with: "let mapleader = ''

The quote character should mean that (n)vim sees that line as a comment and ignores it, so I don't see how that would change anything?!

The bindings however are still the slimv bindings, not the vlime binding
referenced in the documentation, even when I tried the below: let
g:vlime_force_default_keys = v:true

Do you have let g:vlime_overlay = "slimv" set up somewhere?

I'm finally at the point where I can actually try using vlime to see how it
works (and hopefully the failing test doesn't mean something else is broken).
I'm not sure if something was misconfigured somewhere, or if the
documentation is just out of date.

Yeah, the documentation might be severly out of date.

I thought I would let you know so that you
could fix whichever is wrong, so that others are not as frustrated trying to
get this working as I was.

Yeah -- thank you, your feedback is really appreciated!

Looking forward to trying to get some coding in
this weekend, and will update if I discover anything else not working while
I'm testing things out using the slimv bindings.

Please do.

Edit/Note: I'm using single backslashes in my files, which works, but had to
edit the markdown here using double backslashes so that they are not treated
as escape characters. The way it displays when read is the way it looks in my
init.vim file.

Yeah, I was really confused as the HTML mail that was sent out didn't include
the backslashes either.

Thanks a lot!

from vlime.

phmarek avatar phmarek commented on July 23, 2024

A small note: I'm using a modified swank (see the slime repository beneath) and the direct-json branch, where nvim and the target lisp directly talk JSON to each other (instead of using a second TCP port and a lisp thread to convert to/from JSON from/to S-expressions).

That setup might conform even less to the documentation, but at least it is used regularly. JFI.

from vlime.

Shivaekul avatar Shivaekul commented on July 23, 2024

Hello,

Yes, this was my first post on github so I wasn't familiar with how it formatted things. My bad for the confusion. The local leader lines lines in my files all evaluate to the right expression (I did end up changing it back to "," for convenience), and the quote was from me defaulting into quote marks like I was typing a string when I was writing my post, and does not exist in the file (the expression loads.

I do not have any plugin manager installed, nor do I have any other plugins installed. My init file is also pretty minimal (I do not have let g:vlime_overlay = "slimv" set at all. From what you have said, I'm guessing that plugin managers adjust which files are loaded somehow, whereas with a manual installation every file is loaded, which is what is causing the issues. I think the slimv file being loaded is eating the bindings that are in the documentation and its using those instead. So I guess the way to fix this and the test issue would be to just remove the test and slimv files? (Or just the test folder and use the slimv bindings, which I actually kind of like.)

And that is good to know regarding the JSON branch. Thanks for the response and sorry I took so long to get back to you!

from vlime.

phmarek avatar phmarek commented on July 23, 2024

Well, right now I don't understand why the wrong bindings are loaded for you. If you run vim -V20/tmp/startup.log/tmp/some-file.lisp you get a trace file, perhaps you (or me, if you send me the file privately) can figure out what goes wrong.

from vlime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.