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

75 lines
1.4 KiB
Nix
Raw Normal View History

2024-03-23 15:56:39 +00:00
{pkgs, ...}: {
imports = [
./lsp.nix
./plugins.nix
./cmp.nix
];
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 = {
2024-03-23 15:56:39 +00:00
LineNr = {fg = "#707A8C";};
2024-02-24 21:45:06 +00:00
};
};
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; [
2024-03-23 15:56:39 +00:00
tectonic
texliveMedium
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;
};
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-03-30 15:41:38 +00:00
keymaps = [
{
action = "<cmd>TexlabBuild<CR>";
key = "<C-,>";
}
];
};
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
};
}