new formatting, nixvim is working
This commit is contained in:
parent
6513d61fa3
commit
0e22544a8a
88 changed files with 1994 additions and 1845 deletions
|
@ -1,93 +1,93 @@
|
|||
{
|
||||
programs.nixvim = {
|
||||
plugins.alpha = let
|
||||
nixFlake = [
|
||||
"⠄⠄⠄⢰⣧⣼⣯⠄⣸⣠⣶⣶⣦⣾⠄⠄⠄⠄⡀⠄⢀⣿⣿⠄⠄⠄⢸⡇⠄⠄"
|
||||
"⠄⠄⠄⣾⣿⠿⠿⠶⠿⢿⣿⣿⣿⣿⣦⣤⣄⢀⡅⢠⣾⣛⡉⠄⠄⠄⠸⢀⣿⠄"
|
||||
"⠄⠄⢀⡋⣡⣴⣶⣶⡀⠄⠄⠙⢿⣿⣿⣿⣿⣿⣴⣿⣿⣿⢃⣤⣄⣀⣥⣿⣿⠄"
|
||||
"⠄⠄⢸⣇⠻⣿⣿⣿⣧⣀⢀⣠⡌⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⠿⣿⣿⣿⠄"
|
||||
"⠄⢀⢸⣿⣷⣤⣤⣤⣬⣙⣛⢿⣿⣿⣿⣿⣿⣿⡿⣿⣿⡍⠄⠄⢀⣤⣄⠉⠋⣰"
|
||||
"⠄⣼⣖⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⣿⣿⣿⣿⣿⢇⣿⣿⡷⠶⠶⢿⣿⣿⠇⢀⣤"
|
||||
"⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣽⣿⣿⣿⡇⣿⣿⣿⣿⣿⣿⣷⣶⣥⣴⣿⡗"
|
||||
"⢀⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠄"
|
||||
"⢸⣿⣦⣌⣛⣻⣿⣿⣧⠙⠛⠛⡭⠅⠒⠦⠭⣭⡻⣿⣿⣿⣿⣿⣿⣿⣿⡿⠃⠄"
|
||||
"⠘⣿⣿⣿⣿⣿⣿⣿⣿⡆⠄⠄⠄⠄⠄⠄⠄⠄⠹⠈⢋⣽⣿⣿⣿⣿⣵⣾⠃⠄"
|
||||
"⠄⠘⣿⣿⣿⣿⣿⣿⣿⣿⠄⣴⣿⣶⣄⠄⣴⣶⠄⢀⣾⣿⣿⣿⣿⣿⣿⠃⠄⠄"
|
||||
"⠄⠄⠈⠻⣿⣿⣿⣿⣿⣿⡄⢻⣿⣿⣿⠄⣿⣿⡀⣾⣿⣿⣿⣿⣛⠛⠁⠄⠄⠄"
|
||||
"⠄⠄⠄⠄⠈⠛⢿⣿⣿⣿⠁⠞⢿⣿⣿⡄⢿⣿⡇⣸⣿⣿⠿⠛⠁⠄⠄⠄⠄⠄"
|
||||
"⠄⠄⠄⠄⠄⠄⠄⠉⠻⣿⣿⣾⣦⡙⠻⣷⣾⣿⠃⠿⠋⠁⠄⠄⠄⠄⠄⢀⣠⣴"
|
||||
"⣿⣿⣿⣶⣶⣮⣥⣒⠲⢮⣝⡿⣿⣿⡆⣿⡿⠃⠄⠄⠄⠄⠄⠄⠄⣠⣴⣿⣿⣿"
|
||||
];
|
||||
in {
|
||||
enable = true;
|
||||
layout = [
|
||||
{
|
||||
type = "padding";
|
||||
val = 4;
|
||||
}
|
||||
{
|
||||
opts = {
|
||||
hl = "AlphaHeader";
|
||||
position = "center";
|
||||
};
|
||||
type = "text";
|
||||
val = nixFlake;
|
||||
}
|
||||
{
|
||||
type = "padding";
|
||||
val = 2;
|
||||
}
|
||||
{
|
||||
type = "group";
|
||||
val = let
|
||||
mkButton = shortcut: cmd: val: hl: {
|
||||
type = "button";
|
||||
inherit val;
|
||||
opts = {
|
||||
inherit hl shortcut;
|
||||
keymap = [
|
||||
"n"
|
||||
shortcut
|
||||
cmd
|
||||
{}
|
||||
];
|
||||
position = "center";
|
||||
cursor = 0;
|
||||
width = 40;
|
||||
align_shortcut = "right";
|
||||
hl_shortcut = "Keyword";
|
||||
};
|
||||
programs.nixvim = {
|
||||
plugins.alpha = let
|
||||
nixFlake = [
|
||||
"⠄⠄⠄⢰⣧⣼⣯⠄⣸⣠⣶⣶⣦⣾⠄⠄⠄⠄⡀⠄⢀⣿⣿⠄⠄⠄⢸⡇⠄⠄"
|
||||
"⠄⠄⠄⣾⣿⠿⠿⠶⠿⢿⣿⣿⣿⣿⣦⣤⣄⢀⡅⢠⣾⣛⡉⠄⠄⠄⠸⢀⣿⠄"
|
||||
"⠄⠄⢀⡋⣡⣴⣶⣶⡀⠄⠄⠙⢿⣿⣿⣿⣿⣿⣴⣿⣿⣿⢃⣤⣄⣀⣥⣿⣿⠄"
|
||||
"⠄⠄⢸⣇⠻⣿⣿⣿⣧⣀⢀⣠⡌⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⠿⣿⣿⣿⠄"
|
||||
"⠄⢀⢸⣿⣷⣤⣤⣤⣬⣙⣛⢿⣿⣿⣿⣿⣿⣿⡿⣿⣿⡍⠄⠄⢀⣤⣄⠉⠋⣰"
|
||||
"⠄⣼⣖⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⣿⣿⣿⣿⣿⢇⣿⣿⡷⠶⠶⢿⣿⣿⠇⢀⣤"
|
||||
"⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣽⣿⣿⣿⡇⣿⣿⣿⣿⣿⣿⣷⣶⣥⣴⣿⡗"
|
||||
"⢀⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠄"
|
||||
"⢸⣿⣦⣌⣛⣻⣿⣿⣧⠙⠛⠛⡭⠅⠒⠦⠭⣭⡻⣿⣿⣿⣿⣿⣿⣿⣿⡿⠃⠄"
|
||||
"⠘⣿⣿⣿⣿⣿⣿⣿⣿⡆⠄⠄⠄⠄⠄⠄⠄⠄⠹⠈⢋⣽⣿⣿⣿⣿⣵⣾⠃⠄"
|
||||
"⠄⠘⣿⣿⣿⣿⣿⣿⣿⣿⠄⣴⣿⣶⣄⠄⣴⣶⠄⢀⣾⣿⣿⣿⣿⣿⣿⠃⠄⠄"
|
||||
"⠄⠄⠈⠻⣿⣿⣿⣿⣿⣿⡄⢻⣿⣿⣿⠄⣿⣿⡀⣾⣿⣿⣿⣿⣛⠛⠁⠄⠄⠄"
|
||||
"⠄⠄⠄⠄⠈⠛⢿⣿⣿⣿⠁⠞⢿⣿⣿⡄⢿⣿⡇⣸⣿⣿⠿⠛⠁⠄⠄⠄⠄⠄"
|
||||
"⠄⠄⠄⠄⠄⠄⠄⠉⠻⣿⣿⣾⣦⡙⠻⣷⣾⣿⠃⠿⠋⠁⠄⠄⠄⠄⠄⢀⣠⣴"
|
||||
"⣿⣿⣿⣶⣶⣮⣥⣒⠲⢮⣝⡿⣿⣿⡆⣿⡿⠃⠄⠄⠄⠄⠄⠄⠄⣠⣴⣿⣿⣿"
|
||||
];
|
||||
in {
|
||||
enable = true;
|
||||
layout = [
|
||||
{
|
||||
type = "padding";
|
||||
val = 4;
|
||||
}
|
||||
{
|
||||
opts = {
|
||||
hl = "AlphaHeader";
|
||||
position = "center";
|
||||
};
|
||||
in [
|
||||
(
|
||||
mkButton
|
||||
"f"
|
||||
"<CMD>lua require('telescope.builtin').find_files({hidden = true})<CR>"
|
||||
"🔍 Find File"
|
||||
"Operator"
|
||||
)
|
||||
(
|
||||
mkButton
|
||||
"q"
|
||||
"<CMD>qa<CR>"
|
||||
"💣 Quit Neovim"
|
||||
"String"
|
||||
)
|
||||
];
|
||||
}
|
||||
{
|
||||
type = "padding";
|
||||
val = 2;
|
||||
}
|
||||
{
|
||||
opts = {
|
||||
hl = "GruvboxBlue";
|
||||
position = "center";
|
||||
};
|
||||
type = "text";
|
||||
val = "https://github.com/elythh/nixvim";
|
||||
}
|
||||
];
|
||||
type = "text";
|
||||
val = nixFlake;
|
||||
}
|
||||
{
|
||||
type = "padding";
|
||||
val = 2;
|
||||
}
|
||||
{
|
||||
type = "group";
|
||||
val = let
|
||||
mkButton = shortcut: cmd: val: hl: {
|
||||
type = "button";
|
||||
inherit val;
|
||||
opts = {
|
||||
inherit hl shortcut;
|
||||
keymap = [
|
||||
"n"
|
||||
shortcut
|
||||
cmd
|
||||
{}
|
||||
];
|
||||
position = "center";
|
||||
cursor = 0;
|
||||
width = 40;
|
||||
align_shortcut = "right";
|
||||
hl_shortcut = "Keyword";
|
||||
};
|
||||
};
|
||||
in [
|
||||
(
|
||||
mkButton
|
||||
"f"
|
||||
"<CMD>lua require('telescope.builtin').find_files({hidden = true})<CR>"
|
||||
"🔍 Find File"
|
||||
"Operator"
|
||||
)
|
||||
(
|
||||
mkButton
|
||||
"q"
|
||||
"<CMD>qa<CR>"
|
||||
"💣 Quit Neovim"
|
||||
"String"
|
||||
)
|
||||
];
|
||||
}
|
||||
{
|
||||
type = "padding";
|
||||
val = 2;
|
||||
}
|
||||
{
|
||||
opts = {
|
||||
hl = "Gruvbox";
|
||||
position = "center";
|
||||
};
|
||||
type = "text";
|
||||
val = "https://github.com/bloxx12/nichts";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
{pkgs, ...}: {
|
||||
programs.nixvim = {
|
||||
extraPlugins = with pkgs.vimUtils; [
|
||||
(buildVimPlugin {
|
||||
pname = "btw.nvim";
|
||||
version = "2024-04-36";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "letieu";
|
||||
repo = "btw.nvim";
|
||||
rev = "47f6419e90d3383987fd06e8f3e06a4bc032ac83";
|
||||
hash = "sha256-91DZUfa4FBvXnkcNHdllr82Dr1Ie+MGVD3ibwkqo04c=";
|
||||
};
|
||||
})
|
||||
];
|
||||
extraPlugins = with pkgs.vimUtils; [
|
||||
(buildVimPlugin {
|
||||
pname = "btw.nvim";
|
||||
version = "2024-04-36";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "letieu";
|
||||
repo = "btw.nvim";
|
||||
rev = "47f6419e90d3383987fd06e8f3e06a4bc032ac83";
|
||||
hash = "sha256-91DZUfa4FBvXnkcNHdllr82Dr1Ie+MGVD3ibwkqo04c=";
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
extraConfigLua = ''
|
||||
require('btw').setup({
|
||||
text = "I use Neovim (and NixOS, BTW)",
|
||||
})
|
||||
'';
|
||||
};
|
||||
extraConfigLua = ''
|
||||
require('btw').setup({
|
||||
text = "I use Neovim (and NixOS, BTW)",
|
||||
})
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,172 +6,172 @@
|
|||
colors = import ../../colors/${config.theme}.nix {};
|
||||
in {
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
bufferline = {
|
||||
enable = true;
|
||||
separatorStyle = "thick"; # “slant”, “padded_slant”, “slope”, “padded_slope”, “thick”, “thin”
|
||||
highlights = {
|
||||
fill = {
|
||||
fg = colors.base00;
|
||||
bg = colors.base00;
|
||||
};
|
||||
background = {
|
||||
fg = colors.base03;
|
||||
bg = colors.base00;
|
||||
};
|
||||
bufferSelected = {
|
||||
fg = colors.base05;
|
||||
bg = colors.base00;
|
||||
italic = false;
|
||||
};
|
||||
bufferVisible = {
|
||||
fg = colors.base03;
|
||||
bg = colors.base00;
|
||||
};
|
||||
closeButton = {
|
||||
fg = colors.base03;
|
||||
bg = colors.base00;
|
||||
};
|
||||
closeButtonVisible = {
|
||||
fg = colors.base03;
|
||||
bg = colors.base00;
|
||||
};
|
||||
closeButtonSelected = {
|
||||
fg = colors.base08;
|
||||
bg = colors.base00;
|
||||
};
|
||||
plugins = {
|
||||
bufferline = {
|
||||
enable = true;
|
||||
separatorStyle = "thick"; # “slant”, “padded_slant”, “slope”, “padded_slope”, “thick”, “thin”
|
||||
highlights = {
|
||||
fill = {
|
||||
fg = colors.base00;
|
||||
bg = colors.base00;
|
||||
};
|
||||
background = {
|
||||
fg = colors.base03;
|
||||
bg = colors.base00;
|
||||
};
|
||||
bufferSelected = {
|
||||
fg = colors.base05;
|
||||
bg = colors.base00;
|
||||
italic = false;
|
||||
};
|
||||
bufferVisible = {
|
||||
fg = colors.base03;
|
||||
bg = colors.base00;
|
||||
};
|
||||
closeButton = {
|
||||
fg = colors.base03;
|
||||
bg = colors.base00;
|
||||
};
|
||||
closeButtonVisible = {
|
||||
fg = colors.base03;
|
||||
bg = colors.base00;
|
||||
};
|
||||
closeButtonSelected = {
|
||||
fg = colors.base08;
|
||||
bg = colors.base00;
|
||||
};
|
||||
|
||||
indicatorSelected = {
|
||||
fg = colors.base00;
|
||||
bg = colors.base00;
|
||||
};
|
||||
modified = {
|
||||
fg = colors.base03;
|
||||
bg = colors.base00;
|
||||
};
|
||||
modifiedVisible = {
|
||||
fg = colors.base00;
|
||||
bg = colors.base00;
|
||||
};
|
||||
modifiedSelected = {
|
||||
fg = colors.base0B;
|
||||
bg = colors.base00;
|
||||
};
|
||||
tabClose = {
|
||||
fg = colors.base00;
|
||||
bg = colors.base00;
|
||||
indicatorSelected = {
|
||||
fg = colors.base00;
|
||||
bg = colors.base00;
|
||||
};
|
||||
modified = {
|
||||
fg = colors.base03;
|
||||
bg = colors.base00;
|
||||
};
|
||||
modifiedVisible = {
|
||||
fg = colors.base00;
|
||||
bg = colors.base00;
|
||||
};
|
||||
modifiedSelected = {
|
||||
fg = colors.base0B;
|
||||
bg = colors.base00;
|
||||
};
|
||||
tabClose = {
|
||||
fg = colors.base00;
|
||||
bg = colors.base00;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<Tab>";
|
||||
action = "<cmd>BufferLineCycleNext<cr>";
|
||||
options = {
|
||||
desc = "Cycle to next buffer";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<S-Tab>";
|
||||
action = "<cmd>BufferLineCyclePrev<cr>";
|
||||
options = {
|
||||
desc = "Cycle to previous buffer";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<S-l>";
|
||||
action = "<cmd>BufferLineCycleNext<cr>";
|
||||
options = {
|
||||
desc = "Cycle to next buffer";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<S-h>";
|
||||
action = "<cmd>BufferLineCyclePrev<cr>";
|
||||
options = {
|
||||
desc = "Cycle to previous buffer";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bd";
|
||||
action = "<cmd>bdelete<cr>";
|
||||
options = {
|
||||
desc = "Delete buffer";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bb";
|
||||
action = "<cmd>e #<cr>";
|
||||
options = {
|
||||
desc = "Switch to Other Buffer";
|
||||
};
|
||||
}
|
||||
|
||||
# {
|
||||
# mode = "n";
|
||||
# key = "<leader>`";
|
||||
# action = "<cmd>e #<cr>";
|
||||
# options = {
|
||||
# desc = "Switch to Other Buffer";
|
||||
# };
|
||||
# }
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>br";
|
||||
action = "<cmd>BufferLineCloseRight<cr>";
|
||||
options = {
|
||||
desc = "Delete buffers to the right";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bl";
|
||||
action = "<cmd>BufferLineCloseLeft<cr>";
|
||||
options = {
|
||||
desc = "Delete buffers to the left";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bo";
|
||||
action = "<cmd>BufferLineCloseOthers<cr>";
|
||||
options = {
|
||||
desc = "Delete other buffers";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bp";
|
||||
action = "<cmd>BufferLineTogglePin<cr>";
|
||||
options = {
|
||||
desc = "Toggle pin";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bP";
|
||||
action = "<Cmd>BufferLineGroupClose ungrouped<CR>";
|
||||
options = {
|
||||
desc = "Delete non-pinned buffers";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<Tab>";
|
||||
action = "<cmd>BufferLineCycleNext<cr>";
|
||||
options = {
|
||||
desc = "Cycle to next buffer";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<S-Tab>";
|
||||
action = "<cmd>BufferLineCyclePrev<cr>";
|
||||
options = {
|
||||
desc = "Cycle to previous buffer";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<S-l>";
|
||||
action = "<cmd>BufferLineCycleNext<cr>";
|
||||
options = {
|
||||
desc = "Cycle to next buffer";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<S-h>";
|
||||
action = "<cmd>BufferLineCyclePrev<cr>";
|
||||
options = {
|
||||
desc = "Cycle to previous buffer";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bd";
|
||||
action = "<cmd>bdelete<cr>";
|
||||
options = {
|
||||
desc = "Delete buffer";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bb";
|
||||
action = "<cmd>e #<cr>";
|
||||
options = {
|
||||
desc = "Switch to Other Buffer";
|
||||
};
|
||||
}
|
||||
|
||||
# {
|
||||
# mode = "n";
|
||||
# key = "<leader>`";
|
||||
# action = "<cmd>e #<cr>";
|
||||
# options = {
|
||||
# desc = "Switch to Other Buffer";
|
||||
# };
|
||||
# }
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>br";
|
||||
action = "<cmd>BufferLineCloseRight<cr>";
|
||||
options = {
|
||||
desc = "Delete buffers to the right";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bl";
|
||||
action = "<cmd>BufferLineCloseLeft<cr>";
|
||||
options = {
|
||||
desc = "Delete buffers to the left";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bo";
|
||||
action = "<cmd>BufferLineCloseOthers<cr>";
|
||||
options = {
|
||||
desc = "Delete other buffers";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bp";
|
||||
action = "<cmd>BufferLineTogglePin<cr>";
|
||||
options = {
|
||||
desc = "Toggle pin";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>bP";
|
||||
action = "<Cmd>BufferLineGroupClose ungrouped<CR>";
|
||||
options = {
|
||||
desc = "Delete non-pinned buffers";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,47 +1,47 @@
|
|||
{
|
||||
programs.nixvim = {
|
||||
plugins.notify = {
|
||||
enable = true;
|
||||
backgroundColour = "#000000";
|
||||
fps = 60;
|
||||
render = "default";
|
||||
timeout = 1000;
|
||||
topDown = true;
|
||||
plugins.notify = {
|
||||
enable = true;
|
||||
backgroundColour = "#000000";
|
||||
fps = 60;
|
||||
render = "default";
|
||||
timeout = 1000;
|
||||
topDown = true;
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>un";
|
||||
action = ''
|
||||
<cmd>lua require("notify").dismiss({ silent = true, pending = true })<cr>
|
||||
'';
|
||||
options = {
|
||||
desc = "Dismiss All Notifications";
|
||||
};
|
||||
}
|
||||
];
|
||||
extraConfigLua = ''
|
||||
local notify = require("notify")
|
||||
|
||||
local filtered_message = { "No information available" }
|
||||
|
||||
-- Override notify function to filter out messages
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
vim.notify = function(message, level, opts)
|
||||
local merged_opts = vim.tbl_extend("force", {
|
||||
on_open = function(win)
|
||||
local buf = vim.api.nvim_win_get_buf(win)
|
||||
vim.api.nvim_buf_set_option(buf, "filetype", "markdown")
|
||||
end,
|
||||
}, opts or {})
|
||||
|
||||
for _, msg in ipairs(filtered_message) do
|
||||
if message == msg then
|
||||
return
|
||||
end
|
||||
end
|
||||
return notify(message, level, merged_opts)
|
||||
end
|
||||
'';
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>un";
|
||||
action = ''
|
||||
<cmd>lua require("notify").dismiss({ silent = true, pending = true })<cr>
|
||||
'';
|
||||
options = {
|
||||
desc = "Dismiss All Notifications";
|
||||
};
|
||||
}
|
||||
];
|
||||
extraConfigLua = ''
|
||||
local notify = require("notify")
|
||||
|
||||
local filtered_message = { "No information available" }
|
||||
|
||||
-- Override notify function to filter out messages
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
vim.notify = function(message, level, opts)
|
||||
local merged_opts = vim.tbl_extend("force", {
|
||||
on_open = function(win)
|
||||
local buf = vim.api.nvim_win_get_buf(win)
|
||||
vim.api.nvim_buf_set_option(buf, "filetype", "markdown")
|
||||
end,
|
||||
}, opts or {})
|
||||
|
||||
for _, msg in ipairs(filtered_message) do
|
||||
if message == msg then
|
||||
return
|
||||
end
|
||||
end
|
||||
return notify(message, level, merged_opts)
|
||||
end
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,212 +1,212 @@
|
|||
{
|
||||
programs.nixvim = {
|
||||
plugins.telescope = {
|
||||
enable = true;
|
||||
extensions = {
|
||||
file-browser = {
|
||||
enable = true;
|
||||
plugins.telescope = {
|
||||
enable = true;
|
||||
extensions = {
|
||||
file-browser = {
|
||||
enable = true;
|
||||
};
|
||||
fzf-native = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
fzf-native = {
|
||||
enable = true;
|
||||
settings = {
|
||||
defaults = {
|
||||
layout_config = {
|
||||
horizontal = {
|
||||
prompt_position = "top";
|
||||
};
|
||||
};
|
||||
sorting_strategy = "ascending";
|
||||
};
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
defaults = {
|
||||
layout_config = {
|
||||
horizontal = {
|
||||
prompt_position = "top";
|
||||
keymaps = {
|
||||
"<leader><space>" = {
|
||||
action = "find_files, {}";
|
||||
options = {
|
||||
desc = "Find project files";
|
||||
};
|
||||
};
|
||||
sorting_strategy = "ascending";
|
||||
};
|
||||
};
|
||||
keymaps = {
|
||||
"<leader><space>" = {
|
||||
action = "find_files, {}";
|
||||
options = {
|
||||
desc = "Find project files";
|
||||
"<leader>/" = {
|
||||
action = "live_grep";
|
||||
options = {
|
||||
desc = "Grep (root dir)";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>/" = {
|
||||
action = "live_grep";
|
||||
options = {
|
||||
desc = "Grep (root dir)";
|
||||
"<leader>:" = {
|
||||
action = "command_history, {}";
|
||||
options = {
|
||||
desc = "Command History";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>:" = {
|
||||
action = "command_history, {}";
|
||||
options = {
|
||||
desc = "Command History";
|
||||
"<leader>b" = {
|
||||
action = "buffers, {}";
|
||||
options = {
|
||||
desc = "+buffer";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>b" = {
|
||||
action = "buffers, {}";
|
||||
options = {
|
||||
desc = "+buffer";
|
||||
"<leader>ff" = {
|
||||
action = "find_files, {}";
|
||||
options = {
|
||||
desc = "Find project files";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>ff" = {
|
||||
action = "find_files, {}";
|
||||
options = {
|
||||
desc = "Find project files";
|
||||
"<leader>fr" = {
|
||||
action = "live_grep, {}";
|
||||
options = {
|
||||
desc = "Find text";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>fr" = {
|
||||
action = "live_grep, {}";
|
||||
options = {
|
||||
desc = "Find text";
|
||||
"<leader>fR" = {
|
||||
action = "resume, {}";
|
||||
options = {
|
||||
desc = "Resume";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>fR" = {
|
||||
action = "resume, {}";
|
||||
options = {
|
||||
desc = "Resume";
|
||||
"<leader>fg" = {
|
||||
action = "oldfiles, {}";
|
||||
options = {
|
||||
desc = "Recent";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>fg" = {
|
||||
action = "oldfiles, {}";
|
||||
options = {
|
||||
desc = "Recent";
|
||||
"<leader>fb" = {
|
||||
action = "buffers, {}";
|
||||
options = {
|
||||
desc = "Buffers";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>fb" = {
|
||||
action = "buffers, {}";
|
||||
options = {
|
||||
desc = "Buffers";
|
||||
"<C-p>" = {
|
||||
action = "git_files, {}";
|
||||
options = {
|
||||
desc = "Search git files";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<C-p>" = {
|
||||
action = "git_files, {}";
|
||||
options = {
|
||||
desc = "Search git files";
|
||||
"<leader>gc" = {
|
||||
action = "git_commits, {}";
|
||||
options = {
|
||||
desc = "Commits";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>gc" = {
|
||||
action = "git_commits, {}";
|
||||
options = {
|
||||
desc = "Commits";
|
||||
"<leader>gs" = {
|
||||
action = "git_status, {}";
|
||||
options = {
|
||||
desc = "Status";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>gs" = {
|
||||
action = "git_status, {}";
|
||||
options = {
|
||||
desc = "Status";
|
||||
"<leader>sa" = {
|
||||
action = "autocommands, {}";
|
||||
options = {
|
||||
desc = "Auto Commands";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>sa" = {
|
||||
action = "autocommands, {}";
|
||||
options = {
|
||||
desc = "Auto Commands";
|
||||
"<leader>sb" = {
|
||||
action = "current_buffer_fuzzy_find, {}";
|
||||
options = {
|
||||
desc = "Buffer";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>sb" = {
|
||||
action = "current_buffer_fuzzy_find, {}";
|
||||
options = {
|
||||
desc = "Buffer";
|
||||
"<leader>sc" = {
|
||||
action = "command_history, {}";
|
||||
options = {
|
||||
desc = "Command History";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>sc" = {
|
||||
action = "command_history, {}";
|
||||
options = {
|
||||
desc = "Command History";
|
||||
"<leader>sC" = {
|
||||
action = "commands, {}";
|
||||
options = {
|
||||
desc = "Commands";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>sC" = {
|
||||
action = "commands, {}";
|
||||
options = {
|
||||
desc = "Commands";
|
||||
"<leader>sD" = {
|
||||
action = "diagnostics, {}";
|
||||
options = {
|
||||
desc = "Workspace diagnostics";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>sD" = {
|
||||
action = "diagnostics, {}";
|
||||
options = {
|
||||
desc = "Workspace diagnostics";
|
||||
"<leader>sh" = {
|
||||
action = "help_tags, {}";
|
||||
options = {
|
||||
desc = "Help pages";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>sh" = {
|
||||
action = "help_tags, {}";
|
||||
options = {
|
||||
desc = "Help pages";
|
||||
"<leader>sH" = {
|
||||
action = "highlights, {}";
|
||||
options = {
|
||||
desc = "Search Highlight Groups";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>sH" = {
|
||||
action = "highlights, {}";
|
||||
options = {
|
||||
desc = "Search Highlight Groups";
|
||||
"<leader>sk" = {
|
||||
action = "keymaps, {}";
|
||||
options = {
|
||||
desc = "Keymaps";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>sk" = {
|
||||
action = "keymaps, {}";
|
||||
options = {
|
||||
desc = "Keymaps";
|
||||
"<leader>sM" = {
|
||||
action = "man_pages, {}";
|
||||
options = {
|
||||
desc = "Man pages";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>sM" = {
|
||||
action = "man_pages, {}";
|
||||
options = {
|
||||
desc = "Man pages";
|
||||
"<leader>sm" = {
|
||||
action = "marks, {}";
|
||||
options = {
|
||||
desc = "Jump to Mark";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>sm" = {
|
||||
action = "marks, {}";
|
||||
options = {
|
||||
desc = "Jump to Mark";
|
||||
"<leader>so" = {
|
||||
action = "vim_options, {}";
|
||||
options = {
|
||||
desc = "Options";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>so" = {
|
||||
action = "vim_options, {}";
|
||||
options = {
|
||||
desc = "Options";
|
||||
"<leader>sR" = {
|
||||
action = "resume, {}";
|
||||
options = {
|
||||
desc = "Resume";
|
||||
};
|
||||
};
|
||||
};
|
||||
"<leader>sR" = {
|
||||
action = "resume, {}";
|
||||
options = {
|
||||
desc = "Resume";
|
||||
};
|
||||
};
|
||||
"<leader>uC" = {
|
||||
action = "colorscheme, {}";
|
||||
options = {
|
||||
desc = "Colorscheme preview";
|
||||
"<leader>uC" = {
|
||||
action = "colorscheme, {}";
|
||||
options = {
|
||||
desc = "Colorscheme preview";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>sd";
|
||||
action = "<cmd>Telescope diagnostics bufnr=0<cr>";
|
||||
options = {
|
||||
desc = "Document diagnostics";
|
||||
};
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>fe";
|
||||
action = "<cmd>Telescope file_browser<cr>";
|
||||
options = {
|
||||
desc = "File browser";
|
||||
};
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>fE";
|
||||
action = "<cmd>Telescope file_browser path=%:p:h select_buffer=true<cr>";
|
||||
options = {
|
||||
desc = "File browser";
|
||||
};
|
||||
}
|
||||
];
|
||||
extraConfigLua = ''
|
||||
require("telescope").setup{
|
||||
pickers = {
|
||||
colorscheme = {
|
||||
enable_preview = true
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>sd";
|
||||
action = "<cmd>Telescope diagnostics bufnr=0<cr>";
|
||||
options = {
|
||||
desc = "Document diagnostics";
|
||||
};
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>fe";
|
||||
action = "<cmd>Telescope file_browser<cr>";
|
||||
options = {
|
||||
desc = "File browser";
|
||||
};
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>fE";
|
||||
action = "<cmd>Telescope file_browser path=%:p:h select_buffer=true<cr>";
|
||||
options = {
|
||||
desc = "File browser";
|
||||
};
|
||||
}
|
||||
];
|
||||
extraConfigLua = ''
|
||||
require("telescope").setup{
|
||||
pickers = {
|
||||
colorscheme = {
|
||||
enable_preview = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue