fix: Adding a better python virtualenv loading for LSP completion in a

project's directory and installed dependencies.
Removing render-markdown from being default enabled, but leaving it in
for now.
This commit is contained in:
2025-08-05 07:23:13 -05:00
parent dd4fbaea0a
commit a660ae40b5
4 changed files with 10 additions and 3 deletions

View File

@@ -130,6 +130,13 @@ return {
name = 'Launch current file',
request = 'launch',
program = '${file}',
pythonPath = function ()
if vim.env.VIRTUAL_ENV then
return vim.env.VIRTUAL_ENV .. '/bin/python'
end
return vim.fn.exepath('python3') or vim.fn.exepath('python') or 'python'
end
}
}
}

View File

@@ -4,7 +4,7 @@ return {
vim.treesitter.language.register('markdown', 'telekasten')
require('render-markdown').setup({
enabled = true,
enabled = false,
-- render_modes = { 'n', 'c', 't' },
max_file_size = 10.0,
debounce = 100,