thanks much! I’m so excited about getting this to work. It seems, though, that I have to tease apart why nixos’ file structure is sabotaging the help files here, and fix that. that’s my priority for now, I think. I’ll keep y’all updated. <3
Hi! I wonder if someone tried to map the mac
command
key for kitty + NeoVim + SCNvim?
This seems like something that kitty should be able to do, albeit not in the most elegant way - I imagine you’d have to define a mapping in kitty that maps cmd + enter to [whatever] and then another one in nvim that maps [whatever] to the scnvim command.
I wonder if there is a way to start sclang with the -d flag set ? I’d like to use SCNvim but have a specific class library folder compile rather than the default!
There’s a config field for that here:
There’s an example of using it for windows here:
I added a new telescope plugin for scnvim
Mainly useful for finding class/function definitions at the moment, but it will probably grow. Hope to port of all fzf-sc to this plugin
Excited to try! Thanks for this!
Hello,
I am new to SCNVim and nvim.
How could I do the following?
Add this line to your
init.vim
if you are using vim-plug.
Plug 'davidgranstrom/scnvim', { 'do': {-> scnvim#install() } }
I tried to install vim-plug, but there seems not to be install instruction for macOS. Should I follow the instruction for Neovim: unix, linux?
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
try:
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
…I’d also have a look at GitHub - folke/lazy.nvim: 💤 A modern plugin manager for Neovim if I were starting fresh with NeoVim!
also Rainers instructions are a little old! NeoVim is now at 0.9.2!
macOS is a Unix system
+1 for lazy.nvim. Really excellent package manager.
I had a little problem running scnvim from wsl controlling sclang in windows and opend a issue on the scnvim repo.
I saw @madskjeldgaard you had a similar issue and I did not really understand the part about how to set up tags.
Any chance for some help on that ?
This thread is somewhat old, but I succeded getting % sign with this line :
stat = stat:gsub(“%%”, “%%%%”)
Is it possible to install SCNVim with lazy.nvim
?
{'davidgranstrom/scnvim', name = "scnvim", priority = 1000 }
works properly?
I have simply "davidgranstrom/scnvim"
in my config.lua currently working fine with Lazy.nvim
Hi again! Is it possible to display the post window info on different windows (and not on the scratch buffer)?
I am playing around with ascii art on the post window and I would like to create several of them and overlay/tile it over the screen.
Otherwise, is it possible to create multiple scratch buffers (different colors, transparency, position, etc) for showing the output of different code chunks?
this is not exactly what you are asking but… one of the great features of SCNvim is that sclang can interact directly with Neovim via the Lua api
for example evaluating SCNvim.luaeval("vim.cmd('vsplit')")
will split the current window vertically. another one that I use is "vim.fn.setreg('d',{\"%\"})".format(object)
to put something into a register in vim for later pasting.
[edit someones nice NVim
class (can’t remember where I found it!) -which will do what you want I think]
Nvim {
*send{|code|
// Wrap like this to avoid problems when not using SCNvim
if(\SCNvim.asClass.notNil, {
\SCNvim.asClass.luaeval(code)
});
}
*paste{|text|
var code = "vim.api.nvim_paste('%', true, 1)".format(text);
this.send(code)
}
*tabnew{|file|
var code = "vim.cmd[[tabnew " ++ file ++ "]]";
this.send(code.postln)
}
*create_buf{|listed=true, scratch=false|
var code = "vim.api.nvim_create_buf(%, %)".format(listed, scratch);
this.send(code)
}
}
]
So you can create windows and insert (or grab) whatever text you like (once you find all the relevant Lua commands in the api - mostly they look like vim.fn or vim.cmd or vim.api.nvim***
i was trying to run this line on SCNVim:
j = GreenScope()
and got this strange error:
[using IDE works ok]
ERROR: Class not defined.
in interpreted text
line 1 char 14:
j = GreenScope()
-----------------------------------
-> nil
maybe some QT error??
thx in advance
are you sure that the Quark including the GreenScope Class is loaded?
its path is included in sclang_conf.yaml and works with IDE.
maybe because i’m using wayland? (Hyprland)
tried GUICVKnob and it isnt woking here also. common dependencies: QTGUI.
how can i know if QTGui is loaded when using scnvim? because it isnt in includepaths.
the QtGUI
is in the core library. you should be able to type QtGUI.filenameSymbol
to see where it is installed. SCnvim should load all the same same classes as ScIDE except for ScIDE
and Document