quarto: try to adapt config for quarto

Co-Authored-by: iGor milhit <igor@milhit.ch>
iGor milhit 2024-08-06 09:00:25 +02:00
parent 6f5f205cca
commit 5b450f9402
Signed by: igor
GPG Key ID: 692D97C3D0228A99
7 changed files with 84 additions and 17 deletions

View File

@ -0,0 +1,13 @@
-- Specific settings for markdown files
-- Enable the autowrite feature for all commands
-- See :h awa
vim.opt.awa=true
-- Conceal some syntax
vim.opt.conceallevel = 2
-- Use treesitter to fold markdown syntax
-- vim.opt.markdown_folding = 1
-- vim.opt.foldmethod = 'expr'
-- vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'

View File

@ -1,6 +0,0 @@
-- Specific settings for markdown files (pandoc filetype)
-- Enable the autowrite feature for all commands
-- See :h awa
vim.opt.awa=true
vim.opt.foldlevel = 1

View File

@ -338,7 +338,33 @@ vim.keymap.set('n', '<leader>ss', require'telescope'.extensions.luasnip.luasnip
-- See `:help nvim-treesitter` -- See `:help nvim-treesitter`
require('nvim-treesitter.configs').setup { require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter -- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim', 'json' }, ensure_installed = {
'bash',
'c',
'cpp',
'css',
'dot',
'go',
'html',
'javascript',
'json',
'julia',
'latex',
'lua',
'markdown',
'markdown_inline',
'mermaid',
'norg',
'python',
'query',
'r',
'rust',
'tsx',
'typescript',
'vimdoc',
'vim',
'yaml',
},
-- Do not install parses synchronously -- Do not install parses synchronously
sync_install = false, sync_install = false,
@ -348,17 +374,20 @@ require('nvim-treesitter.configs').setup {
-- List of parsers to ignore installing -- List of parsers to ignore installing
ignore_install = { ignore_install = {
"markdown" -- "markdown"
}, },
-- Required property, but empr? -- Required property, but empty
modules = {}, modules = {},
highlight = { highlight = {
enable = true, enable = true,
disable = { "markdown" }, -- disable = { "markdown" },
additional_vim_regex_highlighting = false,
},
indent = {
enable = true,
}, },
indent = { enable = true, disable = { 'python' } },
incremental_selection = { incremental_selection = {
enable = true, enable = true,
keymaps = { keymaps = {
@ -477,12 +506,12 @@ local servers = {
-- rust_analyzer = {}, -- rust_analyzer = {},
-- tsserver = {}, -- tsserver = {},
-- marksman = { marksman = {
-- ft = { ft = {
-- 'markdown', 'markdown',
-- 'pandoc' 'pandoc'
-- } }
-- }, },
lua_ls = { lua_ls = {
Lua = { Lua = {

View File

@ -16,6 +16,9 @@ return {
lazy = true, lazy = true,
config = function () config = function ()
require('mkdnflow').setup({ require('mkdnflow').setup({
modules = {
foldtext = false
},
filetypes = { filetypes = {
md = true, md = true,
rmd = true, rmd = true,

View File

@ -0,0 +1,18 @@
-- plugins/quarto.lua.
-- This plugin integrates or configure tools to work with quarto.
-- https://quarto.org/docs/tools/neovim.html
-- https://github.com/quarto-dev/quarto-neovim
-- https://github.com/jmbuhr/quarto-nvim-kickstarter
return {
{
"quarto-dev/quarto-nvim",
filetype = { 'quarto' },
dev = false,
opts = {},
dependencies = {
"jmbuhr/otter.nvim",
"nvim-treesitter/nvim-treesitter",
},
},
}

View File

@ -0,0 +1,10 @@
return {
"preservim/vim-markdown",
ft = {
'markdown',
'quarto'
},
lazy = true,
config = function ()
end,
}