Compare commits

..

3 commits

Author SHA1 Message Date
e5649b9c80
Ssh, disable DefaultConfig to supress warning 2026-02-20 11:38:03 -08:00
449cd8bf50
Onizuka, update neovim config to match update 2026-02-20 11:38:03 -08:00
61e3753bf8
Neovim, switch to nixvim and mono file
This merges all the different files into one app.nix using nixvim
instead of the manual home-manager nvim management.

Behavior should be almost unchanged, with the following changes:
- Plugins now have defaults for my own personal sane default experience
- The highlighted line is now 81 instead of 80
- Treesitter plugins may not be integrated correctly
2026-02-20 11:37:40 -08:00

View file

@ -68,11 +68,11 @@
smartcase = true;
};
keymaps = [
keymaps = with config.lib.nixvim; [
{
key = "<leader>d";
mode = "n";
action = "vim.diagnostic.open_float()";
action = mkRaw "vim.diagnostic.open_float";
}
# -- Easy Split Navigation
# -- nnoremap <C-J> <C-W><C-J>
@ -111,50 +111,20 @@
cmp = {
enable = nvimcmp.enable;
autoEnableSources = true;
settings.sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
] ++ lib.optional luasnip.enable { name = "cmp-luasnip"; };
settings = {
sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
] ++ lib.optional luasnip.enable { name = "cmp-luasnip"; };
mapping = {
"<C-Space>" = "cmp.mapping.complete {}";
"<CR>" = "cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = true,
}";
"<Tab>" = {
actions = ''
function(fallback)
if cmp.visible() then
cmp.select_next_item()
'' + lib.optionalString luasnip.enable ''
elseif luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
'' + ''
else
fallback()
end
end
'';
modes = [ "i" "s" ];
};
"<S-Tab>" = {
actions = ''
function(fallback)
if cmp.visible() then
cmp.select_prev_item()
'' + lib.optionalString luasnip.enable ''
elseif luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
'' + ''
else
fallback()
end
end
'';
modes = [ "i" "s" ];
};
mapping = with config.lib.nixvim; {
"<C-Space>" = mkRaw "cmp.mapping.abort()";
"<Tab>" = mkRaw
"cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
"<S-Tab>" = mkRaw
"cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
};
};
};
@ -179,7 +149,7 @@
enable = treesitter.enable;
highlight.enable = true;
indent.enable = true;
folding.enable = true;
folding.enable = false;
};
vimwiki = {