Skip to content

Commit

Permalink
Small corrections accidentally didnt load overrides..
Browse files Browse the repository at this point in the history
  • Loading branch information
atropos112 committed Jul 13, 2024
1 parent 45ea7e0 commit 879018f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/atro/configs/user_configs/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local defaults = require("atro.configs.user_configs.defaults")
-- No assumption is made as to if there are overrides or not, the file might be missing.
local overrides = {}
if require("atro.utils.generic").file_exists(vim.fn.getcwd() .. "/lua/atro/configs/user_configs/overrides.lua") then
if require("atro.utils.generic").file_exists(vim.fn.stdpath("config") .. "/lua/atro/configs/user_configs/overrides.lua") then
overrides = require("atro.configs.user_configs.overrides")
end

Expand Down
7 changes: 6 additions & 1 deletion lua/atro/plugins/lang_specific/python.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ if require("atro.utils.config").IsLangSupported("python") then
config = function()
require("atro.utils.load").install("debugpy")
local dappy = require("dap-python")
dappy.setup(_G.user_conf.SupportedLanguages.python.DAP.path)
local dap_path = _G.user_conf.SupportedLanguages.python.DAP.path
if dap_path then
dappy.setup(dap_path)
else
dappy.setup()
end
dappy.test_runner = "pytest"
end,
},
Expand Down

0 comments on commit 879018f

Please sign in to comment.