Compare commits

...

6 Commits

Author SHA1 Message Date
51dc9a091f
refactor(hosts/orion): move pcscd to yubikey service
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 37s
2024-10-01 16:12:14 -05:00
8bfce229d9
chore(vesktop): update settings 2024-10-01 15:23:25 -05:00
391cfb3ccb
refactor(nvim): improve capture templates for orgmode 2024-10-01 15:23:08 -05:00
1f160e3bb7
feat(nvim): improve markdown formatlistpat 2024-10-01 15:22:56 -05:00
c9348e6c84
feat(nvim): add auto list bind for insert mode 2024-10-01 15:19:38 -05:00
d990d2464a
chore(nvim): add more words to spellfile 2024-09-30 22:30:46 -05:00
8 changed files with 44 additions and 10 deletions

View File

@ -1,4 +0,0 @@
{ ... }:
{
services.pcscd.enable = true;
}

View File

@ -0,0 +1,5 @@
{ pkgs, ... }:
{
services.udev.packages = [ pkgs.yubikey-personalization ];
services.pcscd.enable = true;
}

View File

@ -22,3 +22,5 @@ vim.keymap.set("n", "<C-Space>", function()
vim.api.nvim_buf_set_lines(0, cur_line - 1, cur_line, true, { updated_task_str })
end
end, { buffer = true })
vim.opt.formatlistpat = [[^\s*\(-\|\d\+\.|+\|>\)\s*]]

View File

@ -114,6 +114,31 @@ M.setup = function()
vim.keymap.set("i", "<S-CR>", "<C-o>o", { silent = true, desc = "Insert: New Line" })
vim.keymap.set("i", "<C-S-CR>", "<C-o>O", { silent = true, desc = "Insert: New Line" })
-- Copy first leading word of line onto newline and insert (autolist functionality basically)
vim.keymap.set("i", "<C-CR>", function()
local line = vim.api.nvim_get_current_line()
local indent, word, trailing = line:match("^(%s*)(%S*)(%s*)")
if #word == 0 then
return
end
local num, num_trail = word:match("^(%d*)(%D*)")
-- TODO: If we add a new list item that uses a number in the middle of a bunch of list
-- numbers, we should ideally increment all the next number nodes. Might require integrating
-- treesitter or, alternatively, just look for all starting list number nodes at the same
-- indent level and increment them.
if #num > 0 then
num = tonumber(num) + 1
word = tostring(num) .. num_trail
end
local new_line = indent .. word .. trailing
local win = vim.api.nvim_get_current_win()
local row, _ = table.unpack(vim.api.nvim_win_get_cursor(win))
vim.fn.append(row, new_line)
vim.api.nvim_win_set_cursor(win, { row + 1, vim.fn.strdisplaywidth(new_line) })
end, { silent = true, desc = "Insert: Autolist" })
-- Insert an Em Dash in insert mode
vim.keymap.set("i", "<A-->", "", { silent = true, desc = "Insert: Em Dash" })

View File

@ -56,14 +56,18 @@ return {
n = {
description = "Note",
template = "* %?",
},
j = {
description = "Journal",
template = "* %?",
target = "~/Notes/journal.org",
datetree = true,
},
s = {
description = "Snippet",
template = "* %? :snippet:",
template = "* %?",
target = "~/Notes/snippets.org",
datetree = true,
datetree = false,
},
},
emacs_config = {

View File

@ -357,3 +357,5 @@ endianness
Endian
factorizations
formulae
untagged
laggy

View File

@ -499,9 +499,6 @@
"voiceUsers": true,
"reactorsList": true
},
"SearchReply": {
"enabled": false
},
"SecretRingToneEnabler": {
"enabled": false
},
@ -706,6 +703,9 @@
},
"VolumeBooster": {
"enabled": false
},
"FullSearchContext": {
"enabled": false
}
},
"notifications": {
@ -718,6 +718,6 @@
"authenticated": false,
"url": "https://api.vencord.dev/",
"settingsSync": false,
"settingsSyncVersion": 1725245324233
"settingsSyncVersion": 1727811480516
}
}