This commit is contained in:
abs3nt 2023-03-04 20:34:54 -08:00
parent a4a0f3c9d6
commit ffc7fd537d

View File

@ -10,20 +10,34 @@ return {
-- https://github.com/kien/ctrlp.vim
'ctrlpvim/ctrlp.vim',
-- https://github.com/nvim-treesitter/nvim-treesitter
-- https://github.com/iamcco/markdown-preview.nvim
{
'nvim-treesitter/nvim-treesitter',
"iamcco/markdown-preview.nvim",
run = function()
vim.fn["mkdp#util#install"]()
end,
config = function()
require 'nvim-treesitter.configs'.setup {
auto_install = true,
}
end
vimp.noremap('<leader>md', [[:MarkdownPreviewToggle<CR>]])
vim.g.mkdp_filetypes = { "markdown" }
vim.g.mkdp_markdown_css = os.getenv("XDG_CONFIG_HOME") .. '/nvim/static/custom.css'
vim.g.mkdp_highlight_css = os.getenv("XDG_CACHE_HOME") .. '/wal/colors.css'
vim.g.mkdp_browser = 'rose'
vim.g.mkdp_echo_preview_url = 1
local markdown_preview_group = vim.api.nvim_create_augroup("MarkdownPreview", {})
vim.api.nvim_create_autocmd("BufEnter", {
pattern = "*.md",
callback = function()
vim.cmd([[:MarkdownPreview]])
end,
group = markdown_preview_group,
})
end,
ft = { "markdown" }
},
-- https://github.com/fatih/vim-go
{
'fatih/vim-go',
ft = { "go", "gomod" },
config = function()
vim.g.go_fmt_command = "gofumpt"
vim.g.go_highlight_types = 1
@ -51,21 +65,6 @@ return {
},
-- https://github.com/iamcco/markdown-preview.nvim
{
"iamcco/markdown-preview.nvim",
run = "cd app && npm install",
config = function()
vimp.noremap({ 'silent' }, '<leader>md', [[:MarkdownPreviewToggle<CR>]])
vim.g.mkdp_filetypes = { "markdown" }
vim.g.mkdp_markdown_css = os.getenv("XDG_CONFIG_HOME") .. '/nvim/static/custom.css'
vim.g.mkdp_highlight_css = os.getenv("XDG_CACHE_HOME") .. '/wal/colors.css'
vim.g.mkdp_browser = 'surf'
vim.g.mkdp_echo_preview_url = 1
end,
ft = { "markdown" }
},
-- https://github.com/ellisonleao/glow.nvim
{
"ellisonleao/glow.nvim",
@ -233,6 +232,7 @@ return {
{ name = 'nvim_lua' },
{ name = 'path' },
{ name = 'luasnip' },
{ name = 'neorg' },
})
})