chore: disable gh copilot keymap
This commit is contained in:
parent
ba13fa9114
commit
3532a4fe54
21
init.lua
21
init.lua
@ -588,16 +588,17 @@ require('lazy').setup({
|
|||||||
-- or a suggestion from your LSP for this to activate.
|
-- or a suggestion from your LSP for this to activate.
|
||||||
map('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' })
|
map('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' })
|
||||||
|
|
||||||
map('<leader>cp', function()
|
-- GitHub Copilot keymap
|
||||||
local is_enabled = vim.g.copilot_enabled == 1
|
-- map('<leader>cp', function()
|
||||||
if is_enabled then
|
-- local is_enabled = vim.g.copilot_enabled == 1
|
||||||
vim.cmd 'Copilot disable'
|
-- if is_enabled then
|
||||||
vim.notify('Copilot disabled', vim.log.levels.INFO)
|
-- vim.cmd 'Copilot disable'
|
||||||
else
|
-- vim.notify('Copilot disabled', vim.log.levels.INFO)
|
||||||
vim.cmd 'Copilot enable'
|
-- else
|
||||||
vim.notify('Copilot enabled', vim.log.levels.INFO)
|
-- vim.cmd 'Copilot enable'
|
||||||
end
|
-- vim.notify('Copilot enabled', vim.log.levels.INFO)
|
||||||
end, 'GitHub Copilot: Toggle')
|
-- end
|
||||||
|
-- end, 'GitHub Copilot: Toggle')
|
||||||
|
|
||||||
-- WARN: This is not Goto Definition, this is Goto Declaration.
|
-- WARN: This is not Goto Definition, this is Goto Declaration.
|
||||||
-- For example, in C this would take you to the header.
|
-- For example, in C this would take you to the header.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user