Add Copilot plugin.
This commit is contained in:
parent
9301595e2b
commit
bb1316e1fb
10
init.lua
10
init.lua
|
@ -134,10 +134,7 @@ require('lazy').setup({
|
||||||
main = "ibl",
|
main = "ibl",
|
||||||
-- Enable `lukas-reineke/indent-blankline.nvim`
|
-- Enable `lukas-reineke/indent-blankline.nvim`
|
||||||
-- See `:help indent_blankline.txt`
|
-- See `:help indent_blankline.txt`
|
||||||
opts = {
|
opts = {},
|
||||||
char = '┊',
|
|
||||||
show_trailing_blankline_indent = false,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- "gc" to comment visual regions/lines
|
-- "gc" to comment visual regions/lines
|
||||||
|
@ -386,6 +383,11 @@ vim.keymap.set('n', 'N', 'Nzzzv')
|
||||||
-- Real paste
|
-- Real paste
|
||||||
vim.keymap.set('x', '<leader>p', '"_dP')
|
vim.keymap.set('x', '<leader>p', '"_dP')
|
||||||
|
|
||||||
|
-- Copilot configs
|
||||||
|
vim.g.copilot_assume_mapped = true
|
||||||
|
vim.g.copilot_no_tab_map = true
|
||||||
|
vim.api.nvim_set_keymap("i", "<C-J>", 'copilot#Accept("<CR>")', { silent = true, expr = true })
|
||||||
|
|
||||||
-- LSP settings.
|
-- LSP settings.
|
||||||
-- This function gets run when an LSP connects to a particular buffer.
|
-- This function gets run when an LSP connects to a particular buffer.
|
||||||
local on_attach = function(_, bufnr)
|
local on_attach = function(_, bufnr)
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
return {
|
||||||
|
"github/copilot.vim"
|
||||||
|
}
|
Loading…
Reference in New Issue