This commit is contained in:
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
|
||||
|
||||
@@ -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; });
|
||||
|
||||
@@ -47,6 +47,7 @@ in
|
||||
categories = {
|
||||
colorscheme = config.nvim.colorscheme;
|
||||
github = config.git.github.enable;
|
||||
gitlab = config.git.gitlab.enable;
|
||||
inherit (config.nvim) languages typescriptServer;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user