Compare commits
6 Commits
6e9b0b52a6
...
51dc9a091f
Author | SHA1 | Date | |
---|---|---|---|
51dc9a091f | |||
8bfce229d9 | |||
391cfb3ccb | |||
1f160e3bb7 | |||
c9348e6c84 | |||
d990d2464a |
@ -1,4 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
services.pcscd.enable = true;
|
|
||||||
}
|
|
5
hosts/orion/modules/services/yubikey.nix
Normal file
5
hosts/orion/modules/services/yubikey.nix
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||||
|
services.pcscd.enable = true;
|
||||||
|
}
|
@ -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 })
|
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,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", "<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,14 +56,18 @@ 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 = "* %? :snippet:",
|
template = "* %?",
|
||||||
target = "~/Notes/snippets.org",
|
target = "~/Notes/snippets.org",
|
||||||
datetree = true,
|
datetree = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
emacs_config = {
|
emacs_config = {
|
||||||
|
@ -357,3 +357,5 @@ endianness
|
|||||||
Endian
|
Endian
|
||||||
factorizations
|
factorizations
|
||||||
formulae
|
formulae
|
||||||
|
untagged
|
||||||
|
laggy
|
||||||
|
Binary file not shown.
@ -499,9 +499,6 @@
|
|||||||
"voiceUsers": true,
|
"voiceUsers": true,
|
||||||
"reactorsList": true
|
"reactorsList": true
|
||||||
},
|
},
|
||||||
"SearchReply": {
|
|
||||||
"enabled": false
|
|
||||||
},
|
|
||||||
"SecretRingToneEnabler": {
|
"SecretRingToneEnabler": {
|
||||||
"enabled": false
|
"enabled": false
|
||||||
},
|
},
|
||||||
@ -706,6 +703,9 @@
|
|||||||
},
|
},
|
||||||
"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": 1725245324233
|
"settingsSyncVersion": 1727811480516
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user