feat(home:git): add gh tool
This commit is contained in:
parent
33e7a6f7f9
commit
e743691d94
12 changed files with 225 additions and 47 deletions
|
|
@ -3,5 +3,10 @@
|
|||
./indent.nix
|
||||
./telescope.nix
|
||||
./lualine.nix
|
||||
./lsp.nix
|
||||
./noice.nix
|
||||
./nvim-autopairs.nix
|
||||
./vim-nix.nix
|
||||
./treesitter.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
38
home/modules/console/editor/nvim/plugins/lsp.nix
Normal file
38
home/modules/console/editor/nvim/plugins/lsp.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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"];
|
||||
|
|
|
|||
19
home/modules/console/editor/nvim/plugins/noice.nix
Normal file
19
home/modules/console/editor/nvim/plugins/noice.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
15
home/modules/console/editor/nvim/plugins/nvim-autopairs.nix
Normal file
15
home/modules/console/editor/nvim/plugins/nvim-autopairs.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
15
home/modules/console/editor/nvim/plugins/treesitter.nix
Normal file
15
home/modules/console/editor/nvim/plugins/treesitter.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
15
home/modules/console/editor/nvim/plugins/vim-nix.nix
Normal file
15
home/modules/console/editor/nvim/plugins/vim-nix.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue