mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
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:
parent
315f9f753b
commit
0d968fd283
2 changed files with 26 additions and 19 deletions
|
|
@ -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…
Add table
Reference in a new issue