feat(home:git): add gh tool

This commit is contained in:
ooks-io 2024-07-01 21:28:47 +12:00
parent 33e7a6f7f9
commit e743691d94
12 changed files with 225 additions and 47 deletions

View file

@ -3,5 +3,10 @@
./indent.nix
./telescope.nix
./lualine.nix
./lsp.nix
./noice.nix
./nvim-autopairs.nix
./vim-nix.nix
./treesitter.nix
];
}

View file

@ -0,0 +1,38 @@
{ config, lib, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.editor.nvim;
console = config.ooknet.console;
in
{
config = mkIf (cfg.enable || console.editor == "nvim") {
programs.nixvim.plugins = {
lsp-lines.enable = true;
lsp = {
enable = true;
capabilities = "offsetEncoding = 'utf-16'";
servers = {
# nix
nil-ls = {
enable = true;
};
# markdown
marksman = {
enable = true;
};
# css
cssls = {
enable = true;
};
# c/c++
clangd = {
enable = true;
};
};
};
};
};
}

View file

@ -10,7 +10,6 @@ in
config = mkIf (cfg.enable || console.editor == "nvim") {
programs.nixvim.plugins.lualine = {
enable = true;
theme = "base16";
globalstatus = true;
sections = {
lualine_a = ["mode"];

View file

@ -0,0 +1,19 @@
{ config, lib, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.editor.nvim;
console = config.ooknet.console;
in
{
config = mkIf (cfg.enable || console.editor == "nvim") {
programs.nixvim.plugins.noice = {
enable = true;
presets = {
bottom_search = true;
command_palette = true;
};
};
};
}

View file

@ -0,0 +1,15 @@
{ config, lib, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.editor.nvim;
console = config.ooknet.console;
in
{
config = mkIf (cfg.enable || console.editor == "nvim") {
programs.nixvim.plugins.nvim-autopairs = {
enable = true;
};
};
}

View file

@ -0,0 +1,15 @@
{ config, lib, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.editor.nvim;
console = config.ooknet.console;
in
{
config = mkIf (cfg.enable || console.editor == "nvim") {
programs.nixvim.plugins.treesitter = {
enable = true;
};
};
}

View file

@ -0,0 +1,15 @@
{ config, lib, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.editor.nvim;
console = config.ooknet.console;
in
{
config = mkIf (cfg.enable || console.editor == "nvim") {
programs.nixvim.plugins.nix = {
enable = true;
};
};
}