nix-config/users/tacocat/neovim/default.nix
2024-03-23 11:56:39 -04:00

69 lines
1.3 KiB
Nix

{pkgs, ...}: {
imports = [
./lsp.nix
./plugins.nix
./cmp.nix
];
programs.nixvim = {
enable = true;
colorschemes.ayu = {
enable = true;
settings = {
mirage = true;
overrides = {
LineNr = {fg = "#707A8C";};
};
};
};
clipboard = {
providers.wl-copy.enable = true;
register = "unnamedplus";
};
extraPackages = with pkgs; [
tectonic
texliveMedium
zathura
];
options = {
number = true;
relativenumber = true;
tabstop = 2;
shiftwidth = 2;
expandtab = false;
scrolloff = 5;
autoindent = true;
smartindent = true;
copyindent = true;
signcolumn = "yes";
cursorline = true;
showmode = false;
};
files = {
"ftplugin/nix.lua" = {
options = {
expandtab = true;
shiftwidth = 2;
tabstop = 2;
};
};
"ftplugin/markdown.lua" = {
options = {
spell = true;
};
};
"ftplugin/tex.lua" = {
options = {
spell = true;
};
};
};
keymaps = [
{
action = "<cmd>nohl<CR>";
key = "<C-q>";
options.silent = true;
}
];
};
}