There was an error while loading. Please reload this page.
1 parent 652e95b commit ad997f9Copy full SHA for ad997f9
1 file changed
lua/globals.lua
@@ -1,5 +1,16 @@
1
local utils = require("utils")
2
3
+local config_path = vim.fn.stdpath("config")
4
+local python3_path = vim.fs.joinpath(config_path, ".venv/bin/python3")
5
+if not vim.uv.fs_stat(python3_path) then
6
+ local msg = string.format(
7
+ "Python provider missing:\n create a virtual env under nvim config and install pynvim!"
8
+ )
9
+ vim.api.nvim_echo({ { msg } }, true, { err = true })
10
+else
11
+ vim.g.python3_host_prog = python3_path
12
+end
13
+
14
------------------------------------------------------------------------
15
-- custom variables --
16
0 commit comments