1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-01 23:19:25 +00:00

[neovim] Add python goodies

This commit is contained in:
2024-02-10 16:15:03 +01:00
parent 81e4ec11d8
commit 64cf03dcac
4 changed files with 23 additions and 2 deletions

View File

@ -1,7 +1,9 @@
local dap = require("dap")
local dapui = require("dapui")
require("dap-install").config("python", {})
local debugpyPythonPath = require("mason-registry").get_package("debugpy"):get_install_path() .. "/venv/bin/python3"
require("dap-python").setup(debugpyPythonPath, {})
dapui.setup({
layouts = {
{

View File

@ -41,6 +41,11 @@ local venv = function()
return string.format(" %s", string.match(venv, "[^/]+$"))
end
venv = require("venv-selector").get_active_venv()
if venv then
return string.format(" %s", string.match(venv, "[^/]+$"))
end
return ""
end