feat(plugins): Utilisation de la collection de plugins communautaire

This commit is contained in:
Xavier Logerais 2023-11-02 12:30:56 +01:00
parent 4c58f4a4c8
commit dfe5665d96
5 changed files with 72 additions and 49 deletions

View File

@ -1,5 +1,5 @@
return {
colorscheme = "vscode",
colorscheme = "astrodark",
-- This function is run last and is a good place to configuring
-- augroups/autocommands and custom filetypes also this just pure lua so
-- anything that doesn't fit in the normal config locations above can go here
@ -42,10 +42,5 @@ return {
Jenkinsfile = "groovy",
},
}
-- Copilot
-- TODO: find a better way
vim.g.copilot_no_tab_map = true
vim.cmd("imap <silent><script><expr> <C-a> copilot#Accept(\"\\<CR>\")")
end,
}

View File

@ -1,20 +1,7 @@
return {
{ 'arcticicestudio/nord-vim', lazy = false },
{ 'shaunsingh/nord.nvim', lazy = false },
{ 'andersevenrud/nordic.nvim', lazy = false },
{ 'cocopon/iceberg.vim', lazy = false },
{ 'jacoborus/tender.vim', lazy = false },
{ 'altercation/vim-colors-solarized', lazy = false },
{ 'bluz71/vim-moonfly-colors', lazy = false },
{ 'joshdick/onedark.vim', lazy = false },
{ 'ray-x/aurora', lazy = false },
{
'projekt0n/github-nvim-theme',
version = 'v0.0.7',
lazy = false
},
-- Default theme
{ 'Mofiqul/vscode.nvim', lazy = false },
}

View File

@ -0,0 +1,33 @@
return {
-- Add the community repository of plugin specifications
"AstroNvim/astrocommunity",
-- example of importing a plugin, comment out to use it or add your own
-- available plugins can be found at https://github.com/AstroNvim/astrocommunity
-- { import = "astrocommunity.colorscheme.catppuccin" },
-- { import = "astrocommunity.pack.rust" },
-- { import = "astrocommunity.pack.python" },
--
-- Personal config
{ import = "astrocommunity.pack.bash" },
{ import = "astrocommunity.pack.json" },
{ import = "astrocommunity.pack.yaml" },
{ import = "astrocommunity.pack.toml" },
{ import = "astrocommunity.pack.markdown" },
{ import = "astrocommunity.pack.ansible" },
{ import = "astrocommunity.pack.docker" },
{ import = "astrocommunity.pack.helm" },
{ import = "astrocommunity.pack.terraform" },
{ import = "astrocommunity.bars-and-lines.smartcolumn-nvim" },
{ import = "astrocommunity.bars-and-lines.vim-illuminate" },
{ import = "astrocommunity.editing-support.todo-comments-nvim" },
{ import = "astrocommunity.programming-language-support.rest-nvim" },
{ import = "astrocommunity.completion.copilot-lua-cmp" },
{ import = "astrocommunity.diagnostics.trouble-nvim" },
{ import = "astrocommunity.colorscheme.vscode-nvim" },
{ import = "astrocommunity.colorscheme.github-nvim-theme" },
{ import = "astrocommunity.colorscheme.nord-nvim" },
{ import = "astrocommunity.colorscheme.nordic-nvim" },
{ import = "astrocommunity.colorscheme.iceberg-vim" },
}

View File

@ -1,36 +1,41 @@
-- Github Copilot
-- Désactivé en faveur de la version communautaire (définie dans plugins/community.lua)
return {}
-- Official plugin
-- https://docs.github.com/fr/copilot/getting-started-with-github-copilot?tool=neovim
return {
{
"github/copilot.vim",
event = "InsertEnter",
keys = {
{ "<F12>", "<cmd>Copilot panel<CR>", mode = { "n", "i", "v" }, desc = "Display Copilot panel" },
-- { "<C-a>", "<cmd>copilot#Accept()<CR>", mode = "i", desc = "Accept Copilot solution", { silent = true, expr = true } },
},
}
-- return {
-- {
-- "github/copilot.vim",
-- event = "InsertEnter",
-- keys = {
-- { "<F12>", "<cmd>Copilot panel<CR>", mode = { "n", "i", "v" }, desc = "Display Copilot panel" },
-- { "<C-a>", "<cmd>copilot#Accept()<CR>", mode = "i", desc = "Accept Copilot solution", { silent = true, expr = true } },
-- },
-- }
-- }
-- Exemple de configuration des touches
-- imap <silent><script><expr> <C-J> copilot#Accept("\<CR>")
-- let g:copilot_no_tab_map = v:true
-- imap <silent><script><expr> <C-J> copilot#Accept("\<CR>")
-- let g:copilot_no_tab_map = v:true
-- Alternative plugin in pure lua
-- Alternative plugin in pure lua
-- https://github.com/zbirenbaum/copilot.lua
-- return {
-- {
-- "zbirenbaum/copilot.lua",
-- config = function()
-- require("copilot").setup()
-- end,
-- cmd = "Copilot",
-- event = "InsertEnter",
-- }
-- ,
-- -- {
-- -- "zbirenbaum/copilot-cmp",
-- -- config = function()
-- -- require("copilot_cmp").setup()
-- -- end
-- -- }
}
-- https://github.com/zbirenbaum/copilot.lua
-- return {
-- {
-- "zbirenbaum/copilot.lua",
-- config = function()
-- require("copilot").setup()
-- end,
-- cmd = "Copilot",
-- event = "InsertEnter",
-- }
-- ,
-- -- {
-- -- "zbirenbaum/copilot-cmp",
-- -- config = function()
-- -- require("copilot_cmp").setup()
-- -- end
-- -- }

View File

@ -0,0 +1,3 @@
return {
{ "modille/groovy.vim", lazy = false },
}