Compare commits

..

2 Commits

Author SHA1 Message Date
iGor milhit 35bcabf921
wip plugins: configure environment for quarto
- Installs and configures the nvim-quarto plugin.
- Adds needed plugins and configuration from diving in the quarto
  kickstart configuration, which is damn huge.
- Adds the marksman parser for markdown, with its configuration.
- Adds the quarto filetype to the pandoc pluging.
- Loads the markdown snippets for the quarto filetype.
- Adds language support for treesitter.
- Installs and configure vim-slime plugin in order to execute emmbedded
  code (but it doesn't work as it misses a LOT of configuration).
- Documents very shortly the added plugins in the README.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-10-04 15:39:55 +02:00
iGor milhit 94c539be47
plugins: add zotcite and cmp-zotcite plugins
- Adds zotcite plugins (with completion).

Co-Authored-by: iGor milhit <igor@milhit.ch>
2024-10-04 15:39:54 +02:00
4 changed files with 17 additions and 20 deletions

View File

@ -3,5 +3,7 @@
-- See :h awa -- See :h awa
vim.opt.awa=true vim.opt.awa=true
-- vim.opt.foldlevel = 1 -- vim.opt.foldmethod = "expr"
-- vim.opt.conceallevel = 2 -- vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldlevel = 1
vim.opt.conceallevel = 2

View File

@ -2,15 +2,13 @@
-- https://github.com/iamcco/markdown-preview.nvim -- https://github.com/iamcco/markdown-preview.nvim
-- https://github.com/iamcco/markdown-preview.nvim/issues/558#issuecomment-1514701537 -- https://github.com/iamcco/markdown-preview.nvim/issues/558#issuecomment-1514701537
-- Defines the filetypes that should be recognize by markdown-preview.
vim.cmd([[ let g:mkdp_filetypes = ['markdown', 'pandoc',] ]])
return { return {
{ {
"iamcco/markdown-preview.nvim", "iamcco/markdown-preview.nvim",
ft = { ft = {
'pandoc', 'pandoc',
'markdown', 'markdown',
'pandoc.markdown'
}, },
lazy = true, lazy = true,
build = "cd app && npm install && git reset --hard", build = "cd app && npm install && git reset --hard",

View File

@ -17,7 +17,7 @@ return {
ft = { ft = {
'pandoc', 'pandoc',
'markdown', 'markdown',
'quarto' 'pandoc.markdown',
}, },
lazy = true, lazy = true,
config = function () config = function ()

View File

@ -1,17 +1,11 @@
-- Install and configure Pandoc plugins: vim-pandoc, vim-pandoc-syntax -- Install and configure Pandoc plugins: vim-pandoc, vim-pandoc-syntax
-- Sets the pandoc formatting mode to hardwrap -- Defines the filetypes that should be recognize by vim-pandoc. Allows
vim.cmd([[ let g:pandoc#formatting#mode = "hA" ]]) -- mardown-preview to be available with pandoc filetype.
vim.cmd([[ let g:mkdp_filetypes = ['markdown', 'pandoc', 'pandoc.markdown'] ]])
-- Pandoc folding settings -- Sets the pandoc formatting mode to hardwrap
-- Fold level 2 headings vim.cmd([[ let g:pandoc#formatting#mode="hA" ]])
vim.cmd([[ let g:pandoc#folding#level=1 ]])
-- Enable YAML folding
vim.cmd([[ let g:pandoc#folding#fold_yaml=1 ]])
-- Fold the entire frontmatter
vim.cmd([[ let g:pandoc#folding#foldlevel_yaml=2 ]])
-- Fold fenced code blocks
vim.cmd([[ let g:pandoc#folding#fold_fenced_codeblocks=1 ]])
-- Keymaps to switch to soft or hardwarp, or to toggle. -- Keymaps to switch to soft or hardwarp, or to toggle.
vim.keymap.set( vim.keymap.set(
@ -45,8 +39,10 @@ return {
{ {
"vim-pandoc/vim-pandoc", "vim-pandoc/vim-pandoc",
ft = { ft = {
'markdown', "markdown",
'pandoc' "pandoc",
"pandoc.markdown",
"quarto",
}, },
lazy = true, lazy = true,
}, },
@ -54,7 +50,8 @@ return {
"vim-pandoc/vim-pandoc-syntax", "vim-pandoc/vim-pandoc-syntax",
ft = { ft = {
'markdown', 'markdown',
'pandoc' 'pandoc',
'pandoc.markdown'
}, },
lazy = true, lazy = true,
}, },