Change copilot & dap config

Move them to plugin
1. dap need to be loaded before it is configured
2. Copilot command is missing, so we use canonical setup
This commit is contained in:
flin16 2025-06-14 21:42:47 -05:00
parent 315f9f753b
commit 0d968fd283
2 changed files with 26 additions and 19 deletions

View file

@ -6,24 +6,5 @@ if vim.fn.has("gui_running") == 1 then
vim.o.clipboard = ""
end
vim.g.copilot_no_tab_map = true
vim.api.nvim_set_keymap("i", "<C-Tab>", 'copilot#Accept("<CR>")', { silent = true, expr = true })
vim.o.guifont = "Monaco:h16"
vim.cmd("set wrap")
local dap = require("dap")
dap.adapters.python = {
type = "executable",
command = "python",
args = { "-m", "debugpy.adapter" },
}
dap.configurations.python = {
{
type = "python",
request = "launch",
name = "Launch file",
program = "${file}",
pythonPath = function()
return "python"
end,
},
}

View file

@ -14,6 +14,29 @@ return {
kind_filter = { tex = true },
},
},
{
"mfussenegger/nvim-dap",
config = function()
local dap = require("dap")
dap.adapters.python = {
type = "executable",
command = "python",
args = { "-m", "debugpy.adapter" },
}
dap.configurations.python = {
{
type = "python",
request = "launch",
name = "Launch file",
program = "${file}",
pythonPath = function()
return "python"
end,
},
}
end,
},
{
"tomasr/molokai", -- colorscheme
-- config = function()
@ -225,6 +248,9 @@ return {
markdown = true,
help = true,
},
keymap = {
accept = "<C-Tab>",
},
},
},
{