From 08360ae7ffd89a757ff24ecd8eb5f764836af5b7 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 10 Feb 2023 09:19:27 +0100 Subject: [PATCH] nvim: Switch from quarto-vim to quarto-nvim Switched to the neovim variant of quarto plugins since it may contain improved integration with lsp and cmp - and offers completion and diagnostics for code snippets *within* the overall markdown sources of quarto, which is very exciting. --- nvim/.config/nvim/lazy-lock.json | 3 ++- nvim/.config/nvim/lua/plugins.lua | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 01180be..1cfd68a 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -49,8 +49,9 @@ "playground": { "branch": "master", "commit": "c481c660fa903a0e295902b1765ecfbd6e76a556" }, "plenary.nvim": { "branch": "master", "commit": "9a0d3bf7b832818c042aaf30f692b081ddd58bd9" }, "popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" }, - "quarto-vim": { "branch": "master", "commit": "216247339470794e74a5fda5e5515008d6dc1057" }, + "quarto-nvim": { "branch": "main", "commit": "a30db854054973ab8f140adf3e6b565bf2febf0f" }, "spellsitter.nvim": { "branch": "master", "commit": "4af8640d9d706447e78c13150ef7475ea2c16b30" }, + "sqlite.lua": { "branch": "master", "commit": "93ff5824682ecc874200e338fd8ca9ccd08508f8" }, "symbols-outline.nvim": { "branch": "master", "commit": "512791925d57a61c545bc303356e8a8f7869763c" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "580b6c48651cabb63455e97d7e131ed557b8c7e2" }, "telescope.nvim": { "branch": "master", "commit": "203bf5609137600d73e8ed82703d6b0e320a5f36" }, diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index ef458d6..78b1647 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -43,8 +43,18 @@ return { {'vim-pandoc/vim-pandoc-syntax', ft = writing_ft}, {'vim-pandoc/vim-pandoc', ft = writing_ft}, {'vim-pandoc/vim-criticmarkup', ft = writing_ft}, { - "quarto-dev/quarto-vim", - dependencies = {"vim-pandoc/vim-pandoc-syntax"}, + 'quarto-dev/quarto-nvim', + dependencies = {'jmbuhr/otter.nvim', 'neovim/nvim-lspconfig'}, + config = function() + require'quarto'.setup { + lspFeatures = { + enabled = true, + languages = {'r', 'python', 'julia'}, + diagnostics = {enabled = true, triggers = {"BufWrite"}}, + completion = {enabled = true} + } + } + end, ft = writing_ft }, {'micarmst/vim-spellsync', event = "VeryLazy"}, -- personal dict improvements for git sync {'folke/zen-mode.nvim', config = true, event = "VeryLazy"}, -- provide distraction free writing