Questions tagged [neovim-python-client]
For questions about scripting neovim with the python-client
8
questions
0
votes
1
answer
38
views
Have Neovim automagically invoke external program on the Neovim-saved file while exiting
I have the following python code stored in my $HOME/bin/email-process
#!/usr/bin/python3
from sys import argv
# open up the email contents file
infile = open(argv[1], 'r')
# read it into an array ...
0
votes
0
answers
24
views
Debugging remote plugin (Invalid channel)
I wrote a neovim remote plugin.
I get this message after the command finished ( when I try another).
Error detected while processing function remote#define#request:
line 2:
Error invoking 'C:/Users/...
1
vote
1
answer
151
views
Remote neovim command that changes the selected range (python)
I want a simple command that changes the range that the user selected to a constant string I set (with possibly differently number of lines) - effectively adding lines if the constant string has more. ...
0
votes
0
answers
448
views
How to debug python programs in Neovim [Astrovim distro]?
I have install neovim 0.8.3. I am using Astrovim distribution.
I have installed all the necessary plugin. I have executed
:TSInstall python
:LspInstall pyright
:DapInstall python
But still when I ...
0
votes
2
answers
375
views
Write to current cursor cursor position using a neovim Python plugin
I'd like to insert uuids into my tests when I need them without having to leave vim. I've tried to create a python3 plugin to do this:
import neovim
import uuid
@neovim.plugin
class GenerateUuid(...
3
votes
2
answers
3k
views
Getting an RGB color from highlight group
In putting together and addon for blender to integrate neovim.
Where I'm at with it, github colo imported to blender text editor from nvim_gtk
One component is grabbing the current colorscheme of a ...
2
votes
0
answers
347
views
getting coordinates of a visual block via Neovim python API
(This is a copy of my original question on stackoverflow)
Hi!
I am browsing through the list of available functions in Neovim Python Client API in search of a way to get coordinates of a current ...
3
votes
2
answers
284
views
Print neovim api-info using python 3
I get a human readable list of api functions using
:new|put =map(api_info().functions, 'v:val.name')
in neovim as suggested on https://neovim.io/doc/user/msgpack_rpc.html.
Problem is, this doesn't ...