fix: markview render error

This commit is contained in:
2025-07-18 16:00:01 +03:00
parent 2eff31a3ac
commit 37508d1e12
5 changed files with 42 additions and 22 deletions

View File

@@ -348,6 +348,13 @@ return {
},
},
},
jsonls = {
filetypes = {
"json",
"jsonc",
"json5",
},
},
},
},
}

View File

@@ -115,4 +115,15 @@ return {
lualine_z = {},
},
},
config = function(_, opts)
local lualine = require("lualine")
lualine.setup(opts)
-- listen lsp-progress event and refresh lualine
vim.api.nvim_create_autocmd("User", {
group = vim.api.nvim_create_augroup("lualine_augroup", { clear = true }),
pattern = "LspProgressStatusUpdated",
callback = lualine.refresh,
})
end,
}

View File

@@ -10,12 +10,12 @@ return {
inline_surround_toggle_line = "gss", -- (string|boolean) line-wise toggle inline style
inline_surround_delete = "ds", -- (string|boolean) delete emphasis surrounding cursor
inline_surround_change = "cs", -- (string|boolean) change emphasis surrounding cursor
link_add = "gl", -- (string|boolean) add link
link_follow = "gx", -- (string|boolean) follow link
go_curr_heading = "]c", -- (string|boolean) set cursor to current section heading
link_add = "gl", -- (string|boolean) add link
link_follow = "gx", -- (string|boolean) follow link
go_curr_heading = "]c", -- (string|boolean) set cursor to current section heading
go_parent_heading = "]p", -- (string|boolean) set cursor to parent section heading
go_next_heading = "]]", -- (string|boolean) set cursor to next section heading
go_prev_heading = "[[", -- (string|boolean) set cursor to previous section heading
go_next_heading = "]]", -- (string|boolean) set cursor to next section heading
go_prev_heading = "[[", -- (string|boolean) set cursor to previous section heading
},
inline_surround = {
-- For the emphasis, strong, strikethrough, and code fields:
@@ -67,10 +67,11 @@ return {
{
"OXY2DEV/markview.nvim",
dependencies = {
"nvim-treesitter/nvim-treesitter",
"saghen/blink.cmp",
},
ft = { "markdown", "Avante" },
lazy = false,
priority = 49,
opts = {
preview = {
icon_provider = "mini",

View File

@@ -6,6 +6,7 @@ return {
"JoosepAlviste/nvim-ts-context-commentstring",
"nvim-treesitter/nvim-treesitter-textobjects",
"kristoferssolo/tree-sitter-bruno",
"OXY2DEV/markview.nvim",
{
"bezhermoso/tree-sitter-ghostty",
build = "make nvim_install",