refactor(nvim): extract copilot config
This commit is contained in:
parent
8df0c3b325
commit
d26f2af5e5
19
nvimrc
19
nvimrc
|
@ -346,23 +346,8 @@ let g:vimsyn_embed= 'lPr'
|
||||||
" packadd! nvim-treesitter-context " https://github.com/nvim-treesitter/nvim-treesitter-context.git
|
" packadd! nvim-treesitter-context " https://github.com/nvim-treesitter/nvim-treesitter-context.git
|
||||||
" packadd! playground " https://github.com/nvim-treesitter/playground.git
|
" packadd! playground " https://github.com/nvim-treesitter/playground.git
|
||||||
|
|
||||||
" copilot:
|
" copilot: see lua/copilot_config.lua
|
||||||
|
" packadd! copilot.lua " https://github.com/zbirenbaum/copilot.lua.git
|
||||||
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
|
|
||||||
|
|
||||||
" nvim-cmp:
|
" nvim-cmp:
|
||||||
|
|
||||||
|
|
|
@ -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)
|
|
@ -3,3 +3,4 @@ require "commands"
|
||||||
require "test_runner"
|
require "test_runner"
|
||||||
require "formatter_config"
|
require "formatter_config"
|
||||||
require "treesitter_config"
|
require "treesitter_config"
|
||||||
|
require "copilot_config"
|
||||||
|
|
Loading…
Reference in New Issue