nix-config/users/tacocat/neovim/default.nix

91 lines
1.7 KiB
Nix
Raw Normal View History

2024-02-23 02:16:38 +00:00
{
pkgs,
lib,
...
}: {
2024-02-10 15:23:56 +00:00
programs.nixvim = {
enable = true;
2024-02-23 02:16:38 +00:00
colorschemes.nord = {
2024-02-10 15:23:56 +00:00
enable = true;
2024-02-23 02:16:38 +00:00
borders = true;
contrast = true;
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
};
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 = {
lightline = {
enable = true;
2024-02-23 02:16:38 +00:00
colorscheme = "nord";
2024-02-14 01:09:30 +00:00
};
gitsigns = {
enable = true;
};
treesitter = {
enable = true;
nixvimInjections = true;
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;
};
};
"ftplugin/tex.lua" = {
options = {
spell = true;
};
};
2024-02-24 16:55:49 +00:00
};
keymaps = [
{
action = "<cmd>nohl<CR>";
key = "<C-q>";
options.silent = true;
}
];
2024-02-10 15:23:56 +00:00
};
}