diff options
Diffstat (limited to 'lua/plugins')
-rw-r--r-- | lua/plugins/headlines.lua | 34 | ||||
-rw-r--r-- | lua/plugins/hl-mdcodeblock.lua | 32 | ||||
-rw-r--r-- | lua/plugins/theme.lua | 5 |
3 files changed, 36 insertions, 35 deletions
diff --git a/lua/plugins/headlines.lua b/lua/plugins/headlines.lua new file mode 100644 index 0000000..97d2c7f --- /dev/null +++ b/lua/plugins/headlines.lua @@ -0,0 +1,34 @@ +return { + "lukas-reineke/headlines.nvim", + dependencies = "nvim-treesitter/nvim-treesitter", + opts = { + markdown = { + headline_highlights = { + "Headline1", + "Headline2", + "Headline3", + "Headline4", + "Headline5", + "Headline6", + }, + codeblock_highlight = "CodeBlock", + dash_highlight = "Dash", + quote_highlight = "Quote", + bullet_highlights = { + -- "@text.title.1.marker.markdown", + -- "@text.title.2.marker.markdown", + -- "@text.title.3.marker.markdown", + -- "@text.title.4.marker.markdown", + -- "@text.title.5.marker.markdown", + -- "@text.title.6.marker.markdown", + }, + bullets = {}, + -- bullets = { "◉", "○", "✸", "✿" }, + dash_string = "-", + quote_string = "┃", + fat_headlines = false, + fat_headline_upper_string = "▃", + fat_headline_lower_string = "🬂", + }, + }, +} diff --git a/lua/plugins/hl-mdcodeblock.lua b/lua/plugins/hl-mdcodeblock.lua deleted file mode 100644 index b7bd7f3..0000000 --- a/lua/plugins/hl-mdcodeblock.lua +++ /dev/null @@ -1,32 +0,0 @@ -return { - 'yaocccc/nvim-hl-mdcodeblock.lua', - dependencies = { 'nvim-treesitter/nvim-treesitter' }, - config = function() - require('hl-mdcodeblock').setup({ - hl_group = "MDCodeBlock", -- default highlight group - events = { -- refresh event - "FileChangedShellPost", - "Syntax", - "TextChanged", - "TextChangedI", - "InsertLeave", - "WinScrolled", - "BufEnter", - }, - padding_right = 4, -- always append 4 space at lineend - timer_delay = 20, -- refresh delay(ms) - query_by_ft = { -- special parser query by filetype - markdown = { -- filetype - 'markdown', -- parser - '(fenced_code_block) @codeblock', -- query - }, - rmd = { -- filetype - 'markdown', -- parser - '(fenced_code_block) @codeblock', -- query - }, - }, - minumum_len = 100, -- minimum len to highlight (number | function) - -- minumum_len = function () return math.max(math.floor(vim.api.nvim_win_get_width(0) * 0.8), 100) end - }) - end, -} diff --git a/lua/plugins/theme.lua b/lua/plugins/theme.lua index cf01947..08fab4a 100644 --- a/lua/plugins/theme.lua +++ b/lua/plugins/theme.lua @@ -2,16 +2,15 @@ return { 'shaunsingh/nord.nvim', lazy = false, priority = 1000, - opts = {}, config = function() vim.g.nord_contrast = true vim.g.nord_borders = true vim.g.nord_disable_background = false vim.g.nord_cursorline_transparent = false vim.g.nord_enable_sidebar_background = false - vim.g.nord_italic = false vim.g.nord_uniform_diff_background = true - vim.g.nord_bold = false + vim.g.nord_italic = true + vim.g.nord_bold = true require('nord').set() -- vim.cmd.colorscheme = 'nord' |