Skip to content

Commit 197a15b

Browse files
authored
fix: post_set_venv not getting set in config (#33)
* fix: post_set_venv not getting set in config Because post_set_venv was nil is wasn't getting set in the config setup table * test(init): fix initalization of luasnip in testing
1 parent 1186ad4 commit 197a15b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lua/python/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ PythonConfig.defaults = {
1717
-- Path for venvs picker
1818
venvs_path = vim.fn.expand("~/.virtualenvs"),
1919
-- Something to do after setting an environment
20-
post_set_venv = nil,
20+
post_set_venv = false,
2121
-- base path for creating new venvs
2222
auto_create_venv_path = function(parent_dir)
2323
return vim.fs.joinpath(parent_dir, ".venv")

scripts/minimal_init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ local runtime_path = vim.fn.join(runtime_dependencies, ",")
1515
vim.cmd("set rtp+=" .. runtime_path)
1616

1717
-- Set up 'mini.test'
18+
require("luasnip").setup()
1819
require("luasnip.extras.fmt")
1920
require("luasnip.nodes.absolute_indexer")
2021
require("nvim-treesitter.locals")

0 commit comments

Comments
 (0)