From ed73a2664447d0cf037942f15cc551171e4f5837 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Wed, 28 Aug 2024 15:16:45 +0200 Subject: [PATCH] core: add a python provider configuration Co-Authored-by: iGor milhit --- lua/core/init.lua | 1 + lua/core/python-provider.lua | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 lua/core/python-provider.lua diff --git a/lua/core/init.lua b/lua/core/init.lua index 794a20b..f873c36 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -1,3 +1,4 @@ -- Load all module files +require("core.python-provider") require("core.keymaps") require("core.options") diff --git a/lua/core/python-provider.lua b/lua/core/python-provider.lua new file mode 100644 index 0000000..8b953b8 --- /dev/null +++ b/lua/core/python-provider.lua @@ -0,0 +1,4 @@ +-- Set a virtualenv as python provider +-- https://neovim.io/doc/user/provider.html#python-virtualenv + +vim.g.python3_host_prog = "/home/igor/.pyenv/versions/py-nvim3.10/bin/python"