Compare commits
4 commits
6435a7b51a
...
b0ed357037
| Author | SHA1 | Date | |
|---|---|---|---|
| b0ed357037 | |||
| 3f4c057ffe | |||
| 43ae4ea7d4 | |||
| 2a193c2a44 |
6 changed files with 41 additions and 19 deletions
|
|
@ -7,8 +7,8 @@ if is_available("which-key") then
|
||||||
{ "<leader>v", group = "vim" },
|
{ "<leader>v", group = "vim" },
|
||||||
{ "<leader>s", group = "show" },
|
{ "<leader>s", group = "show" },
|
||||||
{ "<localleader>Z", group = "spelling" },
|
{ "<localleader>Z", group = "spelling" },
|
||||||
{ "]o", group = "options" },
|
{ "]s", group = "switch" },
|
||||||
{ "[o", group = "options" },
|
{ "[s", group = "switch" },
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -289,6 +289,22 @@ return {
|
||||||
end,
|
end,
|
||||||
desc = "floating file browser",
|
desc = "floating file browser",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"[si",
|
||||||
|
function()
|
||||||
|
local c = vim.api.nvim_get_hl(0, { name = "Comment" })
|
||||||
|
vim.api.nvim_set_hl(0, "Comment", vim.tbl_extend("force", c, { italic = false }))
|
||||||
|
end,
|
||||||
|
desc = "no italic comments",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"]si",
|
||||||
|
function()
|
||||||
|
local c = vim.api.nvim_get_hl(0, { name = "Comment" })
|
||||||
|
vim.api.nvim_set_hl(0, "Comment", vim.tbl_extend("force", {}, c, { italic = true }))
|
||||||
|
end,
|
||||||
|
desc = "italic comments",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- try to avoid putting files in util buffers, e.g. filetree, aerial, undotree, ..
|
-- try to avoid putting files in util buffers, e.g. filetree, aerial, undotree, ..
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ local prose_plugs = {
|
||||||
ft = prose_ft,
|
ft = prose_ft,
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"[ow",
|
"[sw",
|
||||||
function()
|
function()
|
||||||
require("wrapping").soft_wrap_mode()
|
require("wrapping").soft_wrap_mode()
|
||||||
end,
|
end,
|
||||||
|
|
@ -56,7 +56,7 @@ local prose_plugs = {
|
||||||
desc = "soft wrap",
|
desc = "soft wrap",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"]ow",
|
"]sw",
|
||||||
function()
|
function()
|
||||||
require("wrapping").hard_wrap_mode()
|
require("wrapping").hard_wrap_mode()
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
|
|
@ -57,32 +57,36 @@ return {
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"[oc",
|
"[sc",
|
||||||
function()
|
function()
|
||||||
require("colorizer").detach_from_buffer(0)
|
require("colorizer").detach_from_buffer(0)
|
||||||
end,
|
end,
|
||||||
{ silent = true, desc = "colorize disable" },
|
silent = true,
|
||||||
|
desc = "colorize disable",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"]oc",
|
"]sc",
|
||||||
function()
|
function()
|
||||||
require("colorizer").attach_to_buffer(0)
|
require("colorizer").attach_to_buffer(0)
|
||||||
end,
|
end,
|
||||||
{ silent = true, desc = "colorize enable" },
|
silent = true,
|
||||||
|
desc = "colorize enable",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"]oC",
|
"[sC",
|
||||||
function()
|
|
||||||
require("colorizer").attach_to_buffer(0, { mode = "background" })
|
|
||||||
end,
|
|
||||||
{ silent = true, desc = "colorize bg" },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"[oC",
|
|
||||||
function()
|
function()
|
||||||
require("colorizer").attach_to_buffer(0, { mode = "virtualtext" })
|
require("colorizer").attach_to_buffer(0, { mode = "virtualtext" })
|
||||||
end,
|
end,
|
||||||
{ silent = true, desc = "colorize eol" },
|
silent = true,
|
||||||
|
desc = "colorize eol",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"]sC",
|
||||||
|
function()
|
||||||
|
require("colorizer").attach_to_buffer(0, { mode = "background" })
|
||||||
|
end,
|
||||||
|
silent = true,
|
||||||
|
desc = "colorize bg",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,8 @@ file-browser = vifm
|
||||||
add-edit = True
|
add-edit = True
|
||||||
# ref-format = {doc[author_list][0][family]}{doc[year]}
|
# ref-format = {doc[author_list][0][family]}{doc[year]}
|
||||||
ref-format = bbt:
|
ref-format = bbt:
|
||||||
add-folder-name = {doc[author_list][0][family]}-{doc[title]} # NOTE: Has issues if no author list
|
# NOTE: Has issues if no author list
|
||||||
|
add-folder-name = {doc[author_list][0][family]}-{doc[title]}
|
||||||
add-file-name = {doc[author_list][0][family]}{doc[year]}
|
add-file-name = {doc[author_list][0][family]}{doc[year]}
|
||||||
header-format-file = ~/.config/papis/headerformat
|
header-format-file = ~/.config/papis/headerformat
|
||||||
extra-bibtex-keys = ["tags", "readstatus", "priority"]
|
extra-bibtex-keys = ["tags", "readstatus", "priority"]
|
||||||
|
|
@ -72,3 +73,4 @@ tags = {"red": "important", "green": "extra", "blue": "toread"}
|
||||||
full-year = True
|
full-year = True
|
||||||
title-words = 2
|
title-words = 2
|
||||||
title-chars = 20
|
title-chars = 20
|
||||||
|
title-case = lower
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ if [ -n "${WIKIROOT}" ]; then
|
||||||
_zk_wiki new "$@"
|
_zk_wiki new "$@"
|
||||||
}
|
}
|
||||||
nnn() { # 'new quicknote'
|
nnn() { # 'new quicknote'
|
||||||
_zk_wiki new -t "${*}" inbox
|
_zk_wiki new -t "${*:-$(date)}" inbox
|
||||||
}
|
}
|
||||||
nnl() { # 'new note log'
|
nnl() { # 'new note log'
|
||||||
_zk_wiki log "$@"
|
_zk_wiki log "$@"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue