feat(copilot): add leader key cmd for copilot chat
This commit is contained in:
parent
0963e7ca28
commit
59a4c29d3f
|
|
@ -15,9 +15,13 @@ return {
|
||||||
mapping = '<leader>apwa',
|
mapping = '<leader>apwa',
|
||||||
description = 'Copilot: Write Atomic Note',
|
description = 'Copilot: Write Atomic Note',
|
||||||
},
|
},
|
||||||
|
-- You can add more prompts here
|
||||||
},
|
},
|
||||||
-- You can add more prompts here
|
|
||||||
},
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
require('CopilotChat').setup(opts)
|
||||||
|
vim.api.nvim_set_keymap('n', '<leader>ac', ':CopilotChat<CR>', { noremap = true, silent = true })
|
||||||
|
end,
|
||||||
-- See Commands section for default commands if you want to lazy load on them
|
-- See Commands section for default commands if you want to lazy load on them
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue