Remove obsidian frontmatter & .md conceal, use telescope vertical layout
This commit is contained in:
@@ -8,13 +8,6 @@ autoCmd({"BufWritePre"}, {
|
||||
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
|
||||
autoCmd({"FileType"}, {
|
||||
group = autoCmdGroup,
|
||||
|
||||
@@ -4,6 +4,9 @@ return {
|
||||
version = "*", -- '*' for latest release, not latest commit
|
||||
ft = "markdown",
|
||||
opts = {
|
||||
frontmatter = {
|
||||
enabled = false,
|
||||
},
|
||||
legacy_commands = false,
|
||||
new_notes_location = os.getenv("DIR_NOTES") .. "/inbox",
|
||||
ui = {
|
||||
|
||||
@@ -4,13 +4,20 @@ return {
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
opts = {
|
||||
defaults = {
|
||||
layout_strategy = "horizontal",
|
||||
layout_strategy = "vertical",
|
||||
layout_config = {
|
||||
horizontal = {
|
||||
width = 0.98,
|
||||
height = 0.98,
|
||||
preview_width = 0.45,
|
||||
},
|
||||
vertical = {
|
||||
width = 0.98,
|
||||
height = 0.98,
|
||||
preview_height = 0.55,
|
||||
preview_cutoff = 14,
|
||||
prompt_position = 'bottom',
|
||||
},
|
||||
},
|
||||
path_display = { "truncate", },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user