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:
@ -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 = {
|
||||
{
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user