new: Make nvim work nicely with python venvs

This commit is contained in:
Sayantan Santra 2024-04-01 22:35:57 -05:00
parent df5ac44769
commit da9612a94b
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -1,6 +1,7 @@
-- This file defines all the global config -- This file defines all the global config
local set = vim.opt local set = vim.opt
local g = vim.g local g = vim.g
local fn = vim.fn
-- Turn on numbers -- Turn on numbers
set.number = true set.number = true
@ -29,3 +30,6 @@ set.spelllang = { "en", "programming" }
g.loaded_perl_provider = 0 g.loaded_perl_provider = 0
g.loaded_node_provider = 0 g.loaded_node_provider = 0
g.loaded_ruby_provider = 0 g.loaded_ruby_provider = 0
-- Make nvim work nicely with python venvs
g.python3_host_prog = fn.system("which -a python3 | head -n2 | tail -n1 | tr -d '[:space:]'")