refactor(nvim): extract copilot config

This commit is contained in:
Rob Watson 2023-09-17 22:50:50 +02:00
parent 8df0c3b325
commit d26f2af5e5
3 changed files with 16 additions and 17 deletions

19
nvimrc
View File

@ -346,23 +346,8 @@ let g:vimsyn_embed= 'lPr'
" packadd! nvim-treesitter-context " https://github.com/nvim-treesitter/nvim-treesitter-context.git
" packadd! playground " https://github.com/nvim-treesitter/playground.git
" copilot:
packadd! copilot.lua " https://github.com/zbirenbaum/copilot.lua.git
lua <<EOF
vim.defer_fn(function()
require('copilot').setup({
panel = {
enabled = false,
auto_refresh = true,
},
suggestion = {
enabled = false,
},
})
end, 100)
EOF
" copilot: see lua/copilot_config.lua
" packadd! copilot.lua " https://github.com/zbirenbaum/copilot.lua.git
" nvim-cmp:

View File

@ -0,0 +1,13 @@
vim.api.nvim_command("packadd copilot.lua")
vim.defer_fn(function()
require('copilot').setup({
panel = {
enabled = false,
auto_refresh = true,
},
suggestion = {
enabled = false,
},
})
end, 100)

View File

@ -3,3 +3,4 @@ require "commands"
require "test_runner"
require "formatter_config"
require "treesitter_config"
require "copilot_config"