1
0

Update home/.config/lvim/config.lua

Update home/.config/lvim/lua/user/plugins.lua
This commit is contained in:
Jeff Lance 2024-03-20 11:11:54 +01:00
parent 83609c44e5
commit 215df9a830
2 changed files with 80 additions and 5 deletions

View File

@ -100,6 +100,7 @@ lvim.builtin.treesitter.ensure_installed = {
"julia", "julia",
"latex", "latex",
"lua", "lua",
"markdown",
"perl", "perl",
"python", "python",
"typescript", "typescript",
@ -111,8 +112,9 @@ lvim.builtin.treesitter.ensure_installed = {
"yaml", "yaml",
} }
lvim.builtin.treesitter.ignore_install = { "comment" } lvim.builtin.treesitter.ignore_install = { "all" }
lvim.builtin.treesitter.highlight.enable = true lvim.builtin.treesitter.highlight.enable = true
lvim.builtin.treesitter.additional_vim_regex_highlighting = { "markdown" }
lvim.builtin.treesitter.highlight.disable( "latex", "zsh" ) lvim.builtin.treesitter.highlight.disable( "latex", "zsh" )
lvim.builtin.treesitter.rainbow.enable = true lvim.builtin.treesitter.rainbow.enable = true

View File

@ -128,6 +128,24 @@ M.setup = function()
]]) ]])
end end
}, },
-- markdown: syntax highlighting, matching rules and mappings for
-- the original Markdown and extensions
{
'preservim/vim-markdown',
ft = "markdown",
config = function()
vim.g.vim_markdown_folding_disabled = 1
vim.g.vim_markdown_no_default_key_mappings = 0
vim.g.vim_markdown_conceal_code_blocks = 0
vim.g.vim_markdown_math = 1
vim.g.tex_conceal = "abmgs"
vim.g.vim_markdown_conceal = 1
vim.g.vim_markdown_toc_autofit = 1
vim.g.vim_markdown_follow_anchor = 0
vim.g.vim_markdown_toml_frontmatter = 1
vim.g.vim_markdown_strikethrough = 1
end,
},
-- markdown previewer -- markdown previewer
{ {
'iamcco/markdown-preview.nvim', 'iamcco/markdown-preview.nvim',
@ -248,13 +266,57 @@ M.setup = function()
}) })
end end
}, },
-- zk: a plain text note-taking assistant
{ {
'mickael-menu/zk-nvim', "postfen/clipboard-image.nvim",
keys = {
{ "<leader>i", "<cmd>PasteImg<CR>"},
},
config = function() config = function()
require("zk").setup({ require'clipboard-image'.setup({
}) -- Default configuration for all filetype
default = {
img_dir = {"%:p:h", "img"}, -- Use table for nested dir (New feature form PR #20)
img_name = function ()
vim.fn.inputsave()
local name = vim.fn.input('Name: ')
vim.fn.inputrestore()
return name
end, end,
affix = "<\n %s\n>" -- Multi lines affix
},
markdown = {
img_dir = {"%:p:h", "img"}, -- Use table for nested dir (New feature form PR #20)
img_name = function ()
vim.fn.inputsave()
local name = vim.fn.input('Name: ')
vim.fn.inputrestore()
return name
end,
img_handler = function(img)
vim.cmd("normal! f[") -- go to [
vim.cmd("normal! a" .. img.name) -- append text with image name
end,
affix = "![](%s)",
}
})
end
},
-- lists: plugin to manage text based lists
{
'bullets-vim/bullets.vim',
},
{
'lervag/lists.vim',
ft = "markdown",
config = function()
vim.cmd("ListsEnable")
end
},
{
'lervag/vim-rainbow-lists',
},
{
'KabbAmine/lazyList.vim',
}, },
-- nvim-ts-rainbow: rainbowed parenthesis -- nvim-ts-rainbow: rainbowed parenthesis
{ {
@ -350,9 +412,20 @@ M.setup = function()
{ {
"nvim-neotest/neotest" "nvim-neotest/neotest"
}, },
{
'nvim-neotest/nvim-nio'
},
{ {
"nvim-neotest/neotest-python" "nvim-neotest/neotest-python"
}, },
-- zk: a plain text note-taking assistant
{
'mickael-menu/zk-nvim',
config = function()
require("zk").setup({
})
end,
},
} }
end end