feat(nvim): set up 'atlas.nvim' for Gitlab
check / lint (push) Successful in 15s

This commit is contained in:
hektor committed 2026-11-06 12:21:25 +01:00
1 parent 00769b0251
commit 1947ee0c9f
3 files changed
+19 -3

No files matched your search

@@ -1,11 +1,25 @@
local nixCatsUtils = require("nixCatsUtils")
local atlas = require("atlas")
local githubEnabled = nixCatsUtils.enableForCategory("github")
local providers = {}
if nixCatsUtils.enableForCategory("github") then
providers.github = {}
end
if nixCatsUtils.enableForCategory("gitlab") then
providers.gitlab = { base_url = "https://gitlab.com", token = vim.env.GITLAB_API_ACCESS_TOKEN }
end
atlas.setup({
providers = githubEnabled and { github = {} } or {},
pulls = { diff = { open_cmd = "AtlasDiff" } },
providers = providers,
pulls = {
diff = {
open_cmd = "AtlasDiff",
layout = "side-by-side",
lsp = { enabled = true, link = { "node_modules" } },
},
},
})
local map = vim.keymap.set
+1
View File
@@ -172,6 +172,7 @@
categories = {
general = true;
github = false;
gitlab = false;
colorscheme = "zenwritten";
typescriptServer = "ts_ls";
languages = lib.mapAttrs (_: language: language.enable) (import ./languages.nix { inherit pkgs; });