Merged options.lua into app.nix

This commit is contained in:
Julia Lange 2026-02-18 14:24:41 -08:00
parent f3aad89088
commit 935c75b459
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
2 changed files with 46 additions and 64 deletions

View file

@ -39,11 +39,53 @@
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
globals = {
mapleader = " ";
maplocalleader = " ";
rust_recommended_style = 0;
};
options = {
list = true;
updatetime = 750;
tabstop = 2;
softtabstop = 0;
shiftwidth = 2;
smarttab = true;
expandtab = true;
colorcolumn = "81";
showmatch = true;
number = true;
relativenumber = true;
swapfile = false;
backup = false;
undofile = true;
undodir = "${config.xdg.configHome}/nvim/undodir";
smartcase = true;
};
keymaps = [
{
key = "<leader>d";
mode = "n";
action = "vim.diagnostic.open_float()";
}
# -- Easy Split Navigation
# -- nnoremap <C-J> <C-W><C-J>
# -- nnoremap <C-K> <C-W><C-K>
# -- nnoremap <C-L> <C-W><C-L>
# -- nnoremap <C-H> <C-W><C-H>
#
# -- Easy copy and pasting to external programs
# -- map <C-y> "+yy
# -- map <C-p> "+P
];
};
# extraLuaConfig = ''
# ${builtins.readFile ./options.lua}
# '';
# vim.g.rust_recommended_style = 0
programs.nixvim.colorschemes = with config.neovim.themes; {
catppuccin = lib.mkIf catppuccin.enable {