- Связал nvim-tree и переход по директориям (zoxide и fzf lua )

- quotes headings md render
This commit is contained in:
2025-03-13 23:13:32 +03:00
parent 6f9fcff8fa
commit e7d4e1c5c0
8 changed files with 86 additions and 73 deletions

View File

@ -1,18 +1,51 @@
require('render-markdown').setup({
--для vim wiki
heading = {
width = 'block',
left_pad = 2,
right_pad = 2,
border = {true,true,true,true,false,false},
border_virtual = true,
icons = { '' },
position = 'inline',
min_width = {50,40,30,20,10,5},
backgrounds = {
},
},
dash = { icon = '------ ' },
sign = { enabled = false },
quote = { repeat_linebreak = true },
link = {
enabled = true,
render_modes = false,
footnote = {
superscript = false,
prefix = '',
suffix = '',
},
image = '󰥶 ',
email = '󰀓 ',
hyperlink = '',
highlight = 'RenderMarkdownLink',
wiki = {
icon = '󱗖 ',
body = function()
return nil
end,
highlight = 'RenderMarkdownWikiLink',
},
custom = {
web = { pattern = '^http', icon = '󰖟 ' },
discord = { pattern = 'discord%.com', icon = '󰙯 ' },
github = { pattern = 'github%.com', icon = '󰊤 ' },
gitlab = { pattern = 'gitlab%.com', icon = '󰮠 ' },
google = { pattern = 'google%.com', icon = '󰊭 ' },
neovim = { pattern = 'neovim%.io', icon = '' },
reddit = { pattern = 'reddit%.com', icon = '󰑍 ' },
stackoverflow = { pattern = 'stackoverflow%.com', icon = '󰓌 ' },
wikipedia = { pattern = 'wikipedia%.org', icon = '󰖬 ' },
youtube = { pattern = 'youtube%.com', icon = '󰗃 ' },
},
},
})
-- переход по ссылкам
vim.keymap.set('n', 'gl', function() FindHttpOrWwwInLine() end, { silent = true })
function FindHttpOrWwwInLine()
@ -27,3 +60,4 @@ function FindHttpOrWwwInLine()
end
end