Remove obsidian frontmatter & .md conceal, use telescope vertical layout

This commit is contained in:
2025-12-02 13:59:16 -06:00
parent 87e8ff848b
commit 9b6974dce5
3 changed files with 11 additions and 8 deletions

View File

@@ -8,13 +8,6 @@ autoCmd({"BufWritePre"}, {
command = [[%s/\s\+$//e]], command = [[%s/\s\+$//e]],
}) })
-- set conceallevel = 1 in obsidian vault(s) for obsidian-nvim plugin
autoCmd({"BufReadPre"}, {
group = autoCmdGroup,
pattern = os.getenv("DIR_NOTES") .. "/**/*.md",
command = [[lua vim.opt_local.conceallevel = 1]],
})
-- adjust indent spacing for html files -- adjust indent spacing for html files
autoCmd({"FileType"}, { autoCmd({"FileType"}, {
group = autoCmdGroup, group = autoCmdGroup,

View File

@@ -4,6 +4,9 @@ return {
version = "*", -- '*' for latest release, not latest commit version = "*", -- '*' for latest release, not latest commit
ft = "markdown", ft = "markdown",
opts = { opts = {
frontmatter = {
enabled = false,
},
legacy_commands = false, legacy_commands = false,
new_notes_location = os.getenv("DIR_NOTES") .. "/inbox", new_notes_location = os.getenv("DIR_NOTES") .. "/inbox",
ui = { ui = {

View File

@@ -4,13 +4,20 @@ return {
dependencies = { "nvim-lua/plenary.nvim" }, dependencies = { "nvim-lua/plenary.nvim" },
opts = { opts = {
defaults = { defaults = {
layout_strategy = "horizontal", layout_strategy = "vertical",
layout_config = { layout_config = {
horizontal = { horizontal = {
width = 0.98, width = 0.98,
height = 0.98, height = 0.98,
preview_width = 0.45, preview_width = 0.45,
}, },
vertical = {
width = 0.98,
height = 0.98,
preview_height = 0.55,
preview_cutoff = 14,
prompt_position = 'bottom',
},
}, },
path_display = { "truncate", }, path_display = { "truncate", },
}, },