aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/lua/vimrc
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-09 23:46:52 +0900
committernsfisis <nsfisis@gmail.com>2025-03-09 23:46:52 +0900
commitb78c875ae8102687e9582612760e7a7f3092e475 (patch)
tree65e3e9b7b0d88961f3dfcee8f0384d3a2999e84c /.config/nvim/lua/vimrc
parent1c51e4aaefb8f7e033c18e28ba9c64a11f7beb73 (diff)
downloaddotfiles-b78c875ae8102687e9582612760e7a7f3092e475.tar.gz
dotfiles-b78c875ae8102687e9582612760e7a7f3092e475.tar.zst
dotfiles-b78c875ae8102687e9582612760e7a7f3092e475.zip
nvim: install render-markdown.nvim
Diffstat (limited to '.config/nvim/lua/vimrc')
-rw-r--r--.config/nvim/lua/vimrc/plugins.lua98
1 files changed, 98 insertions, 0 deletions
diff --git a/.config/nvim/lua/vimrc/plugins.lua b/.config/nvim/lua/vimrc/plugins.lua
index b6de176..28095be 100644
--- a/.config/nvim/lua/vimrc/plugins.lua
+++ b/.config/nvim/lua/vimrc/plugins.lua
@@ -278,6 +278,11 @@ return {
main = 'ibl',
config = function()
require('ibl').setup {
+ exclude = {
+ filetypes = {
+ 'markdown',
+ },
+ },
scope = {
enabled = false,
},
@@ -379,6 +384,99 @@ return {
})
end,
},
+ -- Markdown
+ {
+ 'MeanderingProgrammer/render-markdown.nvim',
+ dependencies = {
+ 'nvim-treesitter/nvim-treesitter',
+ },
+ opts = {
+ heading = {
+ -- Example:
+ -- § 1.
+ -- § 1.1
+ -- § 1.1.1
+ -- § 1.2
+ -- § 2.
+ icons = function(ctx)
+ local section = ''
+ for l = 1, ctx.level do
+ section = section .. ctx.sections[l] .. '.'
+ end
+ return '§ ' .. section .. ' '
+ end,
+ position = 'inline',
+ border = true,
+ border_virutal = true,
+ },
+ checkbox = {
+ unchecked = { icon = '✘ ' },
+ checked = { icon = '✔ ' },
+ custom = {
+ todo = { rendered = '◯ ' },
+ },
+ },
+ pipe_table = {
+ cell = 'trimmed',
+ },
+ callout = {
+ note = { rendered = 'ⓘ Note' },
+ tip = { rendered = 'ⓘ Tip' },
+ important = { rendered = 'ⓘ Important' },
+ warning = { rendered = 'ⓘ Warning' },
+ caution = { rendered = 'ⓘ Caution' },
+ abstract = { rendered = 'ⓘ Abstract' },
+ summary = { rendered = 'ⓘ Summary' },
+ tldr = { rendered = 'ⓘ Tldr' },
+ info = { rendered = 'ⓘ Info' },
+ todo = { rendered = 'ⓘ Todo' },
+ hint = { rendered = 'ⓘ Hint' },
+ success = { rendered = 'ⓘ Success' },
+ check = { rendered = 'ⓘ Check' },
+ done = { rendered = 'ⓘ Done' },
+ question = { rendered = 'ⓘ Question' },
+ help = { rendered = 'ⓘ Help' },
+ faq = { rendered = 'ⓘ Faq' },
+ attention = { rendered = 'ⓘ Attention' },
+ failure = { rendered = 'ⓘ Failure' },
+ fail = { rendered = 'ⓘ Fail' },
+ missing = { rendered = 'ⓘ Missing' },
+ danger = { rendered = 'ⓘ Danger' },
+ error = { rendered = 'ⓘ Error' },
+ bug = { rendered = 'ⓘ Bug' },
+ example = { rendered = 'ⓘ Example' },
+ quote = { rendered = 'ⓘ Quote' },
+ cite = { rendered = 'ⓘ Cite' },
+ },
+ link = {
+ image = '',
+ email = '',
+ hyperlink = '',
+ custom = {
+ web = { icon = '' },
+ discord = { icon = '' },
+ github = { icon = '' },
+ gitlab = { icon = '' },
+ google = { icon = '' },
+ neovim = { icon = '' },
+ reddit = { icon = '' },
+ stackoverflow = { icon = '' },
+ wikipedia = { icon = '' },
+ youtube = { icon = '' },
+ },
+ },
+ indent = {
+ enabled = true,
+ per_level = 1,
+ skip_level = 0,
+ skip_heading = true,
+ icon = '',
+ },
+ sign = {
+ enabled = false,
+ },
+ },
+ },
-- Rust
{
'rust-lang/rust.vim',