nvim: Do not hide away html comments in md files
Why would I want to completely hide comments I left for myself.
This commit is contained in:
parent
03cbb41004
commit
3c7c0e1e87
1 changed files with 25 additions and 1 deletions
|
@ -81,6 +81,11 @@ local prose_plugs = {
|
|||
removed = { raw = "[_]", rendered = " ", highlight = "RenderMarkdownTodo" },
|
||||
},
|
||||
},
|
||||
html = {
|
||||
comment = {
|
||||
conceal = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
name = "render-markdown", -- Only needed if you have another plugin named markdown.nvim
|
||||
dependencies = {
|
||||
|
@ -146,7 +151,7 @@ local prose_plugs = {
|
|||
|
||||
-- bring zettelkasten commands
|
||||
{
|
||||
"mickael-menu/zk-nvim",
|
||||
"zk-org/zk-nvim",
|
||||
config = function()
|
||||
if require("core.util").is_available("which-key") then
|
||||
require("which-key").add({
|
||||
|
@ -159,6 +164,24 @@ local prose_plugs = {
|
|||
opts = vim.tbl_extend("force", { orphan = true }, opts or {})
|
||||
require("zk").edit(opts, { title = "Zk Orphans" })
|
||||
end)
|
||||
require("zk.commands").add("ZkGrep", function(opts)
|
||||
local collection = {}
|
||||
local list_opts = { select = { "title", "path", "absPath" } }
|
||||
require("zk.api").list(vim.env.ZK_NOTEBOOK_DIR, list_opts, function(_, notes)
|
||||
for _, note in ipairs(notes) do
|
||||
collection[note.absPath] = note.title or note.path
|
||||
end
|
||||
end)
|
||||
local options = vim.tbl_deep_extend("force", {
|
||||
prompt_title = "Notes",
|
||||
search_dirs = { vim.env.ZK_NOTEBOOK_DIR },
|
||||
disable_coordinates = true,
|
||||
path_display = function(_, path)
|
||||
return collection[path]
|
||||
end,
|
||||
}, opts or {})
|
||||
require("telescope.builtin").live_grep(options)
|
||||
end)
|
||||
end
|
||||
require("zk").setup({
|
||||
picker = "telescope",
|
||||
|
@ -199,6 +222,7 @@ local prose_plugs = {
|
|||
desc = "note search",
|
||||
},
|
||||
{ "<leader>nf", "<cmd>ZkMatch<cr>", desc = "find note from selection", mode = "v" },
|
||||
{ "<leader>nw", "<cmd>ZkGrep<cr>", desc = "grep notes" },
|
||||
{ "<leader>nt", "<cmd>ZkTags<cr>", desc = "note tags" },
|
||||
{ "<leader>nc", "<cmd>ZkCd<cr>", desc = "notedir cd" },
|
||||
{ "<leader>no", "<cmd>ZkOrphans { sort = { 'modified' } }<cr>", desc = "orphans list" },
|
||||
|
|
Loading…
Reference in a new issue