mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
Added nixvim
This commit is contained in:
10
home/nvim/plugins/comment.nix
Normal file
10
home/nvim/plugins/comment.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.nixvim.plugins.comment = {
|
||||
enable = true;
|
||||
settings.toggler = {
|
||||
block = "<C-x>";
|
||||
line = "<C-c>";
|
||||
};
|
||||
};
|
||||
}
|
||||
20
home/nvim/plugins/dashboard.nix
Normal file
20
home/nvim/plugins/dashboard.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.nixvim.plugins.dashboard = {
|
||||
enable = true;
|
||||
settings.config = {
|
||||
header = [
|
||||
" ███▄ █ ▓█████ ▒█████ ██▒ █▓ ██▓ ███▄ ▄███▓"
|
||||
" ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒▓██░ █▒▓██▒▓██▒▀█▀ ██▒"
|
||||
"▓██ ▀█ ██▒▒███ ▒██░ ██▒ ▓██ █▒░▒██▒▓██ ▓██░"
|
||||
"▓██▒ ▐▌██▒▒▓█ ▄ ▒██ ██░ ▒██ █░░░██░▒██ ▒██ "
|
||||
"▒██░ ▓██░░▒████▒░ ████▓▒░ ▒▀█░ ░██░▒██▒ ░██▒"
|
||||
"░ ▒░ ▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▐░ ░▓ ░ ▒░ ░ ░"
|
||||
"░ ░░ ░ ▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ▒ ░░ ░ ░"
|
||||
" ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ▒ ░░ ░ "
|
||||
" ░ ░ ░ ░ ░ ░ ░ ░ "
|
||||
];
|
||||
footer = [ "Made with ❤️" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
22
home/nvim/plugins/default.nix
Normal file
22
home/nvim/plugins/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./telescope.nix
|
||||
./treesitter.nix
|
||||
./comment.nix
|
||||
./lualine.nix
|
||||
./dashboard.nix
|
||||
./neotree.nix
|
||||
];
|
||||
|
||||
programs.nixvim.plugins = {
|
||||
web-devicons.enable = true;
|
||||
bufferline.enable = true;
|
||||
toggleterm.enable = true;
|
||||
gitsigns.enable = true;
|
||||
which-key.enable = true;
|
||||
autoclose.enable = true;
|
||||
markview.enable = true;
|
||||
nvim-surround.enable = true;
|
||||
};
|
||||
}
|
||||
6
home/nvim/plugins/lualine.nix
Normal file
6
home/nvim/plugins/lualine.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.nixvim.plugins.lualine = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
10
home/nvim/plugins/neotree.nix
Normal file
10
home/nvim/plugins/neotree.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ ... }:
|
||||
{
|
||||
|
||||
programs.nixvim.plugins.neo-tree = {
|
||||
enable = true;
|
||||
window = {
|
||||
width = 30;
|
||||
};
|
||||
};
|
||||
}
|
||||
10
home/nvim/plugins/telescope.nix
Normal file
10
home/nvim/plugins/telescope.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.nixvim.plugins.telescope = {
|
||||
enable = true;
|
||||
keymaps = {
|
||||
"<Space>f" = "find_files";
|
||||
"<Space>g" = "live_grep";
|
||||
};
|
||||
};
|
||||
}
|
||||
11
home/nvim/plugins/treesitter.nix
Normal file
11
home/nvim/plugins/treesitter.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.nixvim.plugins.treesitter = {
|
||||
enable = true;
|
||||
settings = {
|
||||
highlight = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user