feat: add gh copilot
todo: keymap to toggle gh copilot
This commit is contained in:
parent
0f27149fab
commit
5cadf14de5
11
init.lua
11
init.lua
@ -90,7 +90,6 @@ I hope you enjoy your Neovim journey,
|
|||||||
|
|
||||||
P.S. You can delete this when you're done too. It's your config now! :)
|
P.S. You can delete this when you're done too. It's your config now! :)
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
-- Set <space> as the leader key
|
-- Set <space> as the leader key
|
||||||
-- See `:help mapleader`
|
-- See `:help mapleader`
|
||||||
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
|
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
|
||||||
@ -245,6 +244,16 @@ vim.opt.rtp:prepend(lazypath)
|
|||||||
--
|
--
|
||||||
-- NOTE: Here is where you install your plugins.
|
-- NOTE: Here is where you install your plugins.
|
||||||
require('lazy').setup({
|
require('lazy').setup({
|
||||||
|
{
|
||||||
|
|
||||||
|
'github/copilot.vim',
|
||||||
|
config = function()
|
||||||
|
vim.g.copilot_enabled = true
|
||||||
|
vim.g.copilot_no_tab_map = false
|
||||||
|
vim.g.copilot_tab_fallback = ''
|
||||||
|
vim.g.copilot_no_status_bar = true
|
||||||
|
end,
|
||||||
|
},
|
||||||
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
||||||
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user