2024-02-23 02:16:38 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-02-10 15:23:56 +00:00
|
|
|
programs.nixvim = {
|
|
|
|
enable = true;
|
2024-02-24 21:14:11 +00:00
|
|
|
colorschemes.ayu = {
|
2024-02-10 15:23:56 +00:00
|
|
|
enable = true;
|
2024-02-24 21:45:06 +00:00
|
|
|
settings = {
|
|
|
|
mirage = true;
|
|
|
|
overrides = {
|
|
|
|
LineNr = { fg = "#707A8C"; };
|
|
|
|
};
|
|
|
|
};
|
2024-02-10 15:23:56 +00:00
|
|
|
};
|
|
|
|
clipboard = {
|
2024-02-14 01:09:30 +00:00
|
|
|
providers.wl-copy.enable = true;
|
|
|
|
register = "unnamedplus";
|
2024-02-10 15:23:56 +00:00
|
|
|
};
|
2024-02-24 18:24:17 +00:00
|
|
|
extraPackages = with pkgs; [
|
|
|
|
latexrun
|
|
|
|
zathura
|
|
|
|
];
|
2024-02-10 15:23:56 +00:00
|
|
|
options = {
|
|
|
|
number = true;
|
|
|
|
relativenumber = true;
|
|
|
|
tabstop = 2;
|
|
|
|
shiftwidth = 2;
|
|
|
|
expandtab = false;
|
2024-02-14 01:09:30 +00:00
|
|
|
scrolloff = 5;
|
|
|
|
autoindent = true;
|
2024-02-23 02:16:38 +00:00
|
|
|
smartindent = true;
|
2024-02-14 01:09:30 +00:00
|
|
|
copyindent = true;
|
|
|
|
signcolumn = "yes";
|
|
|
|
cursorline = true;
|
|
|
|
showmode = false;
|
|
|
|
};
|
|
|
|
plugins = {
|
2024-02-24 21:14:11 +00:00
|
|
|
lualine = {
|
2024-02-14 01:09:30 +00:00
|
|
|
enable = true;
|
2024-02-24 21:14:11 +00:00
|
|
|
};
|
|
|
|
lsp = {
|
|
|
|
enable = true;
|
|
|
|
servers = {
|
|
|
|
nil_ls = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
2024-02-14 01:09:30 +00:00
|
|
|
};
|
|
|
|
gitsigns = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
treesitter = {
|
|
|
|
enable = true;
|
|
|
|
nixvimInjections = true;
|
2024-02-24 18:24:17 +00:00
|
|
|
indent = true;
|
|
|
|
disabledLanguages = [
|
|
|
|
"latex"
|
|
|
|
];
|
|
|
|
ignoreInstall = [
|
|
|
|
"latex"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
vimtex = {
|
|
|
|
enable = true;
|
|
|
|
texlivePackage = pkgs.texliveFull;
|
|
|
|
settings = {
|
|
|
|
compiler_method = "latexrun";
|
|
|
|
view_method = "zathura";
|
|
|
|
};
|
2024-02-14 01:09:30 +00:00
|
|
|
};
|
2024-02-10 15:23:56 +00:00
|
|
|
};
|
2024-02-24 16:55:49 +00:00
|
|
|
files = {
|
|
|
|
"ftplugin/nix.lua" = {
|
|
|
|
options = {
|
|
|
|
expandtab = true;
|
|
|
|
shiftwidth = 2;
|
|
|
|
tabstop = 2;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"ftplugin/markdown.lua" = {
|
|
|
|
options = {
|
|
|
|
spell = true;
|
|
|
|
};
|
|
|
|
};
|
2024-02-24 18:24:17 +00:00
|
|
|
"ftplugin/tex.lua" = {
|
|
|
|
options = {
|
|
|
|
spell = true;
|
|
|
|
};
|
|
|
|
};
|
2024-02-24 16:55:49 +00:00
|
|
|
};
|
2024-02-24 18:24:17 +00:00
|
|
|
keymaps = [
|
|
|
|
{
|
|
|
|
action = "<cmd>nohl<CR>";
|
|
|
|
key = "<C-q>";
|
|
|
|
options.silent = true;
|
|
|
|
}
|
|
|
|
];
|
2024-02-10 15:23:56 +00:00
|
|
|
};
|
|
|
|
}
|