fixed addon path

This commit is contained in:
Radu Macocian (admac)
2026-01-07 13:13:16 +01:00
parent cec3a9c81f
commit 4ccadac7fe
4 changed files with 26 additions and 21 deletions

View File

@@ -114,11 +114,14 @@ dap.configurations.python = {
pythonPath = function()
return "/home/admac/projects/odoo/venv/bin/python3"
end,
args = {
"--addons-path", "/home/admac/projects/odoo/enterprise/,/home/admac/projects/odoo/odoo/addons/",
"--dev", "all",
"-d", "viva-integration"
}
args = function()
local db_name = vim.fn.input('Odoo DB: ', 'master')
return {
"--addons-path", "/home/admac/projects/odoo/enterprise/,/home/admac/projects/odoo/odoo/addons/",
"--dev", "all",
"-d", db_name
}
end
}
}

View File

@@ -11,8 +11,7 @@ vim.lsp.config("lua_ls", {})
vim.lsp.config("odoo_ls", {
cmd = {
vim.fn.expand('$HOME/.local/share/nvim/odoo/odoo_ls_server'),
'--config-path',
vim.fn.expand('$HOME/projects/odoo/odools.toml'),
'--config-path', vim.fn.expand('$HOME/projects/odoo/odools.toml'),
}
})
vim.lsp.config("lemminx", {})

View File

@@ -1,7 +1,7 @@
require("oil").setup({
float = {
padding = 2,
max_width = 60,
max_width = 120,
max_height = 0,
border = "rounded",
win_options = {
@@ -13,4 +13,7 @@ require("oil").setup({
["q"] = "actions.close",
["<Esc>"] = "actions.close",
},
view_options = {
show_hidden = true
}
})