mirror of https://github.com/LazyVim/starter
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 setuppull/128/head
parent
315f9f753b
commit
0d968fd283
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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>",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue