non-nixos configs.
This commit is contained in:
parent
5d77bb8b35
commit
bf200e93e6
37 changed files with 4361 additions and 0 deletions
28
terminal/nvim/treesitter/arial.nix
Normal file
28
terminal/nvim/treesitter/arial.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
config =
|
||||
lib.mkIf config.host.nvim.enable-treesitter
|
||||
{
|
||||
programs.nixvim = {
|
||||
keymaps = [
|
||||
{
|
||||
action = ":AerialToggle!<CR>";
|
||||
key = "<leader>o";
|
||||
mode = "n";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "toggle outline";
|
||||
};
|
||||
}
|
||||
];
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
aerial-nvim
|
||||
];
|
||||
extraConfigLua = ''require("aerial").setup({})'';
|
||||
};
|
||||
};
|
||||
}
|
25
terminal/nvim/treesitter/rainbow-delimiters.nix
Normal file
25
terminal/nvim/treesitter/rainbow-delimiters.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
config =
|
||||
lib.mkIf config.host.nvim.enable-treesitter
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.rainbow-delimiters = {
|
||||
enable = true;
|
||||
highlight = [
|
||||
"RainbowDelimiterYellow"
|
||||
"RainbowDelimiterBlue"
|
||||
"RainbowDelimiterOrange"
|
||||
"RainbowDelimiterGreen"
|
||||
"RainbowDelimiterViolet"
|
||||
"RainbowDelimiterCyan"
|
||||
# "RainbowDelimiterRed"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
39
terminal/nvim/treesitter/treesitter.nix
Normal file
39
terminal/nvim/treesitter/treesitter.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
host.nvim.enable-treesitter = lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
description = ''
|
||||
enable nvim treesitter
|
||||
'';
|
||||
};
|
||||
};
|
||||
config =
|
||||
lib.mkIf config.host.nvim.enable-treesitter
|
||||
{
|
||||
host.nvim.enable-completions = true;
|
||||
programs.nixvim = {
|
||||
plugins.treesitter = {
|
||||
enable = true;
|
||||
folding = true;
|
||||
indent = true;
|
||||
nixvimInjections = true;
|
||||
};
|
||||
plugins.treesitter-context.enable = true;
|
||||
plugins.indent-blankline.enable = true;
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
treesj
|
||||
];
|
||||
extraConfigLua = ''require("treesj").setup({})'';
|
||||
};
|
||||
};
|
||||
imports = [
|
||||
./rainbow-delimiters.nix
|
||||
./arial.nix
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue