diff --git a/nvim/.config/nvim/lua/core/mappings.lua b/nvim/.config/nvim/lua/core/mappings.lua index c4be2ee..dab1ef0 100644 --- a/nvim/.config/nvim/lua/core/mappings.lua +++ b/nvim/.config/nvim/lua/core/mappings.lua @@ -7,8 +7,8 @@ if is_available("which-key") then { "v", group = "vim" }, { "s", group = "show" }, { "Z", group = "spelling" }, - { "]s", group = "switch" }, - { "[s", group = "switch" }, + { "]o", group = "options" }, + { "[o", group = "options" }, }) end diff --git a/nvim/.config/nvim/lua/plugins/base.lua b/nvim/.config/nvim/lua/plugins/base.lua index e0fcfb1..da44839 100644 --- a/nvim/.config/nvim/lua/plugins/base.lua +++ b/nvim/.config/nvim/lua/plugins/base.lua @@ -289,22 +289,6 @@ return { end, 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, .. diff --git a/nvim/.config/nvim/lua/plugins/prose.lua b/nvim/.config/nvim/lua/plugins/prose.lua index 542bca4..169faa0 100644 --- a/nvim/.config/nvim/lua/plugins/prose.lua +++ b/nvim/.config/nvim/lua/plugins/prose.lua @@ -48,7 +48,7 @@ local prose_plugs = { ft = prose_ft, keys = { { - "[sw", + "[ow", function() require("wrapping").soft_wrap_mode() end, @@ -56,7 +56,7 @@ local prose_plugs = { desc = "soft wrap", }, { - "]sw", + "]ow", function() require("wrapping").hard_wrap_mode() end, diff --git a/nvim/.config/nvim/lua/plugins/ui.lua b/nvim/.config/nvim/lua/plugins/ui.lua index 49b614f..22e5b26 100644 --- a/nvim/.config/nvim/lua/plugins/ui.lua +++ b/nvim/.config/nvim/lua/plugins/ui.lua @@ -57,36 +57,32 @@ return { }, keys = { { - "[sc", + "[oc", function() require("colorizer").detach_from_buffer(0) end, - silent = true, - desc = "colorize disable", + { silent = true, desc = "colorize disable" }, }, { - "]sc", + "]oc", function() require("colorizer").attach_to_buffer(0) end, - silent = true, - desc = "colorize enable", + { silent = true, desc = "colorize enable" }, }, { - "[sC", - function() - require("colorizer").attach_to_buffer(0, { mode = "virtualtext" }) - end, - silent = true, - desc = "colorize eol", - }, - { - "]sC", + "]oC", function() require("colorizer").attach_to_buffer(0, { mode = "background" }) end, - silent = true, - desc = "colorize bg", + { silent = true, desc = "colorize bg" }, + }, + { + "[oC", + function() + require("colorizer").attach_to_buffer(0, { mode = "virtualtext" }) + end, + { silent = true, desc = "colorize eol" }, }, }, }, diff --git a/writing/papis/config/papis/config b/writing/papis/config/papis/config index 2852fab..2729f4e 100644 --- a/writing/papis/config/papis/config +++ b/writing/papis/config/papis/config @@ -12,8 +12,7 @@ file-browser = vifm add-edit = True # ref-format = {doc[author_list][0][family]}{doc[year]} ref-format = bbt: -# NOTE: Has issues if no author list -add-folder-name = {doc[author_list][0][family]}-{doc[title]} +add-folder-name = {doc[author_list][0][family]}-{doc[title]} # NOTE: Has issues if no author list add-file-name = {doc[author_list][0][family]}{doc[year]} header-format-file = ~/.config/papis/headerformat extra-bibtex-keys = ["tags", "readstatus", "priority"] @@ -73,4 +72,3 @@ tags = {"red": "important", "green": "extra", "blue": "toread"} full-year = True title-words = 2 title-chars = 20 -title-case = lower diff --git a/writing/zk/config/sh/alias.d/zk.sh b/writing/zk/config/sh/alias.d/zk.sh index 845650f..2a632ad 100644 --- a/writing/zk/config/sh/alias.d/zk.sh +++ b/writing/zk/config/sh/alias.d/zk.sh @@ -27,7 +27,7 @@ if [ -n "${WIKIROOT}" ]; then _zk_wiki new "$@" } nnn() { # 'new quicknote' - _zk_wiki new -t "${*:-$(date)}" inbox + _zk_wiki new -t "${*}" inbox } nnl() { # 'new note log' _zk_wiki log "$@"