Compare commits
No commits in common. "51dc9a091fedfca940db158dcf37536e6cf8b345" and "6e9b0b52a6b621c1bdde1f5f3557f866027c22e4" have entirely different histories.
51dc9a091f
...
6e9b0b52a6
4
hosts/orion/modules/services/pcscd.nix
Normal file
4
hosts/orion/modules/services/pcscd.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.pcscd.enable = true;
|
||||||
|
}
|
@ -1,5 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
services.udev.packages = [ pkgs.yubikey-personalization ];
|
|
||||||
services.pcscd.enable = true;
|
|
||||||
}
|
|
@ -22,5 +22,3 @@ vim.keymap.set("n", "<C-Space>", function()
|
|||||||
vim.api.nvim_buf_set_lines(0, cur_line - 1, cur_line, true, { updated_task_str })
|
vim.api.nvim_buf_set_lines(0, cur_line - 1, cur_line, true, { updated_task_str })
|
||||||
end
|
end
|
||||||
end, { buffer = true })
|
end, { buffer = true })
|
||||||
|
|
||||||
vim.opt.formatlistpat = [[^\s*\(-\|\d\+\.|+\|>\)\s*]]
|
|
||||||
|
@ -114,31 +114,6 @@ M.setup = function()
|
|||||||
vim.keymap.set("i", "<S-CR>", "<C-o>o", { silent = true, desc = "Insert: New Line" })
|
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" })
|
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
|
-- Insert an Em Dash in insert mode
|
||||||
vim.keymap.set("i", "<A-->", "—", { silent = true, desc = "Insert: Em Dash" })
|
vim.keymap.set("i", "<A-->", "—", { silent = true, desc = "Insert: Em Dash" })
|
||||||
|
|
||||||
|
@ -56,18 +56,14 @@ return {
|
|||||||
n = {
|
n = {
|
||||||
description = "Note",
|
description = "Note",
|
||||||
template = "* %?",
|
template = "* %?",
|
||||||
},
|
|
||||||
j = {
|
|
||||||
description = "Journal",
|
|
||||||
template = "* %?",
|
|
||||||
target = "~/Notes/journal.org",
|
target = "~/Notes/journal.org",
|
||||||
datetree = true,
|
datetree = true,
|
||||||
},
|
},
|
||||||
s = {
|
s = {
|
||||||
description = "Snippet",
|
description = "Snippet",
|
||||||
template = "* %?",
|
template = "* %? :snippet:",
|
||||||
target = "~/Notes/snippets.org",
|
target = "~/Notes/snippets.org",
|
||||||
datetree = false,
|
datetree = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
emacs_config = {
|
emacs_config = {
|
||||||
|
@ -357,5 +357,3 @@ endianness
|
|||||||
Endian
|
Endian
|
||||||
factorizations
|
factorizations
|
||||||
formulae
|
formulae
|
||||||
untagged
|
|
||||||
laggy
|
|
||||||
|
Binary file not shown.
@ -499,6 +499,9 @@
|
|||||||
"voiceUsers": true,
|
"voiceUsers": true,
|
||||||
"reactorsList": true
|
"reactorsList": true
|
||||||
},
|
},
|
||||||
|
"SearchReply": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
"SecretRingToneEnabler": {
|
"SecretRingToneEnabler": {
|
||||||
"enabled": false
|
"enabled": false
|
||||||
},
|
},
|
||||||
@ -703,9 +706,6 @@
|
|||||||
},
|
},
|
||||||
"VolumeBooster": {
|
"VolumeBooster": {
|
||||||
"enabled": false
|
"enabled": false
|
||||||
},
|
|
||||||
"FullSearchContext": {
|
|
||||||
"enabled": false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
@ -718,6 +718,6 @@
|
|||||||
"authenticated": false,
|
"authenticated": false,
|
||||||
"url": "https://api.vencord.dev/",
|
"url": "https://api.vencord.dev/",
|
||||||
"settingsSync": false,
|
"settingsSync": false,
|
||||||
"settingsSyncVersion": 1727811480516
|
"settingsSyncVersion": 1725245324233
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user