feat: add gitlab plugin

This commit is contained in:
Mikolaj_Bien 2025-05-09 14:35:28 +02:00
parent 3d6b0934b0
commit 3f6943207a
1 changed files with 19 additions and 0 deletions

19
lua/plugins/gitlab.lua Normal file
View File

@ -0,0 +1,19 @@
return {
'https://gitlab.com/gitlab-org/editor-extensions/gitlab.vim.git',
-- Activate when a file is created/opened
event = { 'BufReadPre', 'BufNewFile' },
-- Activate when a supported filetype is open
ft = { 'go', 'javascript', 'python', 'ruby' },
cond = function()
-- Only activate if token is present in environment variable.
-- Remove this line to use the interactive workflow.
return vim.env.GITLAB_TOKEN ~= nil and vim.env.GITLAB_TOKEN ~= ''
end,
opts = {
statusline = {
-- Hook into the built-in statusline to indicate the status
-- of the GitLab Duo Code Suggestions integration
enabled = true,
},
},
}