feat: netcup host config

This commit is contained in:
Barrett Ruth 2026-03-13 08:16:08 -04:00
parent 66c1be4b45
commit 2bcc83c7d9
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
10 changed files with 225 additions and 34 deletions

View file

@ -1,18 +1,14 @@
-- Rerun tests only if their modification time changed.
cache = true
ignore = {
"122", -- Setting a read-only field of a global variable.
"212", -- Unused argument, In the case of callback function, _arg_name is easier to understand than _, so this option is set to off.
"631", -- max_line_length, vscode pkg URL is too long
"122",
"212",
"631",
}
-- Global objects defined by the C code
read_globals = {
"vim",
}
include_files = { "lua", "tests" }
exclude_files = { ".luacheckrc", "tests/**/*_spec.lua" }
-- vim: ft=lua tw=80

View file

@ -1,10 +1,4 @@
{
"lazy.nvim": {
"branch": "main",
"commit": "85c7ff3711b730b4030d03144f6db6375044ae82"
},
"midnight.nvim": {
"branch": "main",
"commit": "fe062a6f2e5bd77cd8a260f61e6e12789eaf4f13"
}
"guard-collection": { "branch": "main", "commit": "edf6c86c06badc972964dadb7fd469022690cbf0" },
"guard.nvim": { "branch": "main", "commit": "addb8d2f40662b8b62d60dd7d18f503beb2332e7" }
}

View file

@ -174,6 +174,12 @@ return {
'barrettruth/pending.nvim',
before = function()
vim.g.pending = {
view = {
queue = {
sort = { 'lol', 'dne', 'status', 'due', 'priority', 'order', 'id' },
},
category = { hide_done_categories = true },
},
debug = false,
sync = {
s3 = { bucket = 'pending.nvim', region = 'us-east-1' },
@ -376,6 +382,19 @@ return {
mermaid = true,
latex = {
open = { 'sioyek', '--instance-name', 'preview' },
args = function(ctx)
local dir = vim.fn.fnamemodify(ctx.file, ':h')
.. '/build'
vim.fn.mkdir(dir, 'p')
return {
'-pdf',
'-interaction=nonstopmode',
'-synctex=1',
'-output-directory=' .. dir,
'-pdflatex=pdflatex -file-line-error %O %S',
ctx.file,
}
end,
output = function(ctx)
return vim.fn.fnamemodify(ctx.file, ':h')
.. '/build/'

View file

@ -25,7 +25,7 @@ return {
args = { '--profile', 'black', '-' },
stdin = true,
})
:append('black')
:fmt('black')
:lint('mypy')
ft('lua'):fmt('stylua'):lint('selene')
@ -52,7 +52,7 @@ return {
ft('cmake'):fmt('cmake-format')
ft('make'):lint('checkmake')
ft('cpp'):lint('cpplint')
ft('markdown'):fmt('cbfmt'):append('prettierd')
ft('markdown'):fmt('cbfmt'):fmt('prettierd')
local lint = require('guard.lint')
ft('nix')