updated to use new shed module schema

This commit is contained in:
2026-03-04 00:02:30 -05:00
parent 05fd14d48f
commit 7113140cd7
18 changed files with 622 additions and 284 deletions

View File

@@ -14,6 +14,11 @@
alias = {
draft = "!if git rev-parse > /dev/null 2>&1; then echo \"$1\" >> $(git rev-parse --git-dir)/DRAFT_MSG; else exit 1; fi #";
};
safe = {
directory = [
"/home/pagedmov/mnt/net"
];
};
core.pager = "delta";
interactive.diffFilter = "delta --color-only";
delta.navigate = "true";

View File

@@ -21,6 +21,31 @@
pattern = [ "*" ];
desc = "Start the floaterm window";
}
{
pattern = [ "qf" ];
event = [ "FileType" ];
callback = {
__raw = /* lua */ ''
function()
vim.keymap.set("n", "<CR>", "<CR>", { buffer = true })
end'';
};
}
{
pattern = [ "nix" ];
event = [ "FileType" ];
callback = {
__raw = /* lua */ ''
function()
require("otter").activate(
{ "bash", "lua", "python" },
true, -- completions
true, -- diagnostics
nil
)
end'';
};
}
];
};
}

View File

@@ -1,14 +1,6 @@
{ env, config, pkgs, host, self, ... }: {
programs.nixvim = {
nixpkgs.useGlobalPackages = true;
extraPackages = [
pkgs.cargo
pkgs.rustc
pkgs.clippy
pkgs.rustup
pkgs.rust-analyzer
pkgs.nerd-fonts.envy-code-r
];
};
imports = [ ./plugins ./options.nix ./keymaps.nix ./autocmd.nix ];
}

View File

@@ -36,6 +36,11 @@
key = "<S-Tab>";
mode = "n";
}
{
action = "zA";
key = "<CR>";
mode = "n";
}
{
action = "<C-w>w";
key = "<Tab>";

View File

@@ -30,7 +30,7 @@ in {
virtual_text = true;
signs = false;
};
extraConfigLua = ''
extraConfigLua = /* lua */ ''
if vim.g.started_by_firenvim == true then
vim.o.laststatus = 0
end
@@ -59,6 +59,7 @@ in {
vim.opt.termguicolors = true
vim.opt.ruler = true
vim.opt.scrolloff = 6
vim.opt.foldlevelstart = 99
vim.opt.undofile = true
vim.opt.foldmethod = "manual"
vim.opt.wrap = true
@@ -67,8 +68,17 @@ in {
vim.opt.breakat = " \t!@*-+;:,./?"
vim.opt.guifont = "EnvyCodeR Nerd Font Mono:h18"
vim.g.mapleader = "!"
vim.g.mapleader = " "
vim.g.rust_recommended_style = 0
vim.treesitter.query.set("nix", "injections", [[
;; extends
((comment) @injection.language
.
(indented_string_expression
(string_fragment) @injection.content)
(#gsub! @injection.language "^%s*/%*%s*(%S+)%s*%*/.*$" "%1"))
]])
'';
};
}

View File

@@ -2,6 +2,8 @@
{
imports = [
./otter.nix
./treesitter.nix
./alpha.nix
./haskell.nix
./vim-matchup.nix

View File

@@ -0,0 +1,10 @@
{
programs.nixvim = {
plugins.otter = {
enable = true;
settings = {
handle_leading_whitespace = true;
};
};
};
}

View File

@@ -0,0 +1,16 @@
{
programs.nixvim = {
plugins.treesitter = {
enable = true;
folding = {
enable = true;
};
indent = {
enable = true;
};
highlight = {
enable = true;
};
};
};
}