I needed a way for VIRTUAL_ENV to be set to the one set by Poetry. Mainly to get LSP stuff to work.
Other plugins (see alternatives) existed but they did not do what I expected. That is probably explained by me being lazy and being curious on how to write a Neovim plugin with Lua.
Install this plugin with your favorite package manager:
use({
"karloskar/poetry-nvim",
config = function()
require("poetry-nvim").setup()
end
})
Plug "karloskar/poetry-nvim"
lua << EOF
require("poetry-nvim").setup()
EOF
Before making this plugin I looked at: