working NixVim!

This commit is contained in:
vali 2024-05-22 14:04:58 +02:00
commit 9d1dfa44d7
42 changed files with 774 additions and 454 deletions

View file

@ -1,5 +1,6 @@
{
programs.nixvim.plugins = {
programs.nixvim = {
plugins = {
cmp-emoji = {enable = true;};
cmp = {
enable = true;
@ -117,4 +118,5 @@
-- end
-- }
}) '';
};
}

View file

@ -1,5 +1,6 @@
{
programs.nixvim.plugins.gitsigns = {
programs.nixvim = {
plugins.gitsigns = {
enable = true;
settings = {
trouble = true;
@ -73,4 +74,5 @@
};
}
];
};
}

View file

@ -1,4 +1,5 @@
{
programs.nixvim = {
plugins.none-ls = {
enable = true;
enableLspFormat = true;
@ -47,4 +48,5 @@
};
}
];
};
}

View file

@ -1,5 +1,5 @@
{
plugins.trouble = {
programs.nixvim.plugins.trouble = {
enable = true;
};
}

View file

@ -1,5 +1,5 @@
{pkgs, ...}: {
plugins.luasnip = {
programs.nixvim.plugins.luasnip = {
enable = true;
extraConfig = {
enable_autosnippets = true;

View file

@ -1,30 +1,30 @@
{
plugins.lualine = {
programs.nixvim.plugins.lualine = {
enable = true;
globalstatus = true;
disabledFiletypes = {
statusline = ["dashboard" "alpha" "starter"];
};
theme = {
normal = {
a = {
bg = "#b4befe";
fg = "#1c1d21";
};
b = {
bg = "nil";
};
c = {
bg = "nil";
};
z = {
bg = "nil";
};
y = {
bg = "nil";
};
};
};
# theme = {
# normal = {
# a = {
# bg = "#b4befe";
# fg = "#1c1d21";
# };
# b = {
# bg = "nil";
# };
# c = {
# bg = "nil";
# };
# z = {
# bg = "nil";
# };
# y = {
# bg = "nil";
# };
# };
# };
sections = {
lualine_a = [
{

View file

@ -1,5 +1,5 @@
{
plugins.treesitter-context = {
programs.nixvim.plugins.treesitter-context = {
enable = true;
};
}

View file

@ -1,5 +1,5 @@
{
plugins.treesitter-textobjects = {
programs.nixvim.plugins.treesitter-textobjects = {
enable = false;
select = {
enable = true;

View file

@ -10,6 +10,7 @@
};
};
in {
programs.nixvim = {
filetype.extension.liq = "liquidsoap";
filetype.extension.nu = "nu";
@ -41,4 +42,5 @@ in {
filetype = "nu",
}
'';
};
}

View file

@ -1,19 +1,22 @@
{
programs.nixvim = {
plugins.alpha = let
nixFlake = [
" "
" "
" "
" "
" "
" "
" "
" "
" "
" "
" "
" "
" git@github.com:elythh "
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
];
in {
enable = true;
@ -86,4 +89,5 @@
}
];
};
};
}

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
programs.nixvim = {
extraPlugins = with pkgs.vimUtils; [
(buildVimPlugin {
pname = "btw.nvim";
@ -17,4 +18,5 @@
text = "I use Neovim (and NixOS, BTW)",
})
'';
};
}

View file

@ -5,11 +5,12 @@
}: let
colors = import ../../colors/${config.theme}.nix {};
in {
programs.nixvim = {
plugins = {
bufferline = {
enable = true;
separatorStyle = "thick"; # “slant”, “padded_slant”, “slope”, “padded_slope”, “thick”, “thin”
highlights = lib.mkIf config.colorschemes.base16.enable {
highlights = {
fill = {
fg = colors.base00;
bg = colors.base00;
@ -172,4 +173,5 @@ in {
};
}
];
};
}

View file

@ -1,5 +1,5 @@
{
plugins.noice = {
programs.nixvim.plugins.noice = {
enable = true;
notify = {
enabled = false;

View file

@ -1,4 +1,5 @@
{
programs.nixvim = {
plugins.notify = {
enable = true;
backgroundColour = "#000000";
@ -42,4 +43,5 @@
return notify(message, level, merged_opts)
end
'';
};
}

View file

@ -1,4 +1,5 @@
{
programs.nixvim = {
plugins.telescope = {
enable = true;
extensions = {
@ -207,4 +208,5 @@
}
}
'';
};
}

View file

@ -1,5 +1,5 @@
{
plugins.comment = {
programs.nixvim.plugins.comment = {
enable = true;
};
}

View file

@ -10,6 +10,7 @@
hash = "sha256-Q+g81BQVQTY5J2c2ZWB7bjJLuNSdI0PAan+75YJ7mI0=";
};
in {
programs.nixvim = {
extraPlugins = with pkgs.vimUtils; [
(buildVimPlugin {
pname = "copilotchat";
@ -53,4 +54,5 @@ in {
action = "<cmd>CopilotChatCommit<cr>";
}
];
};
}

View file

@ -1,4 +1,5 @@
{
programs.nixvim = {
plugins.flash = {
enable = true;
labels = "asdfghjklqwertyuiopzxcvbnm";
@ -53,4 +54,5 @@
};
}
];
};
}

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
programs.nixvim = {
extraPlugins = with pkgs.vimUtils; [
(buildVimPlugin {
pname = "grapple.nvim";
@ -17,4 +18,5 @@
scope = "git_branch",
})
'';
};
}

View file

@ -1,5 +1,5 @@
{
plugins.hardtime = {
programs.nixvim.plugins.hardtime = {
enable = true;
enabled = true;
disableMouse = true;

View file

@ -1,5 +1,5 @@
{
plugins.harpoon = {
programs.nixvim.plugins.harpoon = {
enable = true;
enableTelescope = true;
keymapsSilent = true;

View file

@ -1,5 +1,5 @@
{
plugins.illuminate = {
programs.nixvim.plugins.illuminate = {
enable = true;
underCursor = false;
filetypesDenylist = [

View file

@ -1,5 +1,5 @@
{
plugins.nvim-autopairs = {
programs.nixvim.plugins.nvim-autopairs = {
enable = true;
};
}

View file

@ -1,4 +1,5 @@
{
programs.nixvim = {
plugins.oil = {
enable = true;
settings = {
@ -47,4 +48,5 @@
};
}
];
};
}

View file

@ -1,5 +1,5 @@
{
plugins.nvim-ufo = {
programs.nixvim.plugins.nvim-ufo = {
enable = true;
};
}

View file

@ -1,4 +1,5 @@
{
programs.nixvim = {
plugins.undotree = {
enable = true;
settings = {
@ -17,4 +18,5 @@
};
}
];
};
}

View file

@ -1,5 +1,5 @@
{
plugins.which-key = {
programs.nixvim.plugins.which-key = {
enable = true;
};
}