Questions tagged [neovim-python-client]

For questions about scripting neovim with the python-client

Filter by
Sorted by
Tagged with
0 votes
1 answer
55 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 ...
user3236841's user avatar
0 votes
0 answers
32 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/...
eyal karni's user avatar
  • 1,096
1 vote
1 answer
177 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. ...
eyal karni's user avatar
  • 1,096
1 vote
0 answers
523 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 ...
Samselvaprabu's user avatar
0 votes
2 answers
415 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(...
vamsiampolu's user avatar
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 ...
batFINGER's user avatar
  • 133
2 votes
0 answers
350 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 ...
ambushed's user avatar
  • 193
3 votes
2 answers
288 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 ...
Markus's user avatar
  • 175