From 7d17dedf9a3cb9ac3aba78612e344037686d8bc7 Mon Sep 17 00:00:00 2001 From: Jannik Buhr Date: Fri, 5 Jul 2024 10:35:04 +0200 Subject: [PATCH 1/9] show example lazy.nvim plugin spec --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7f4b95f..50fb895 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,26 @@ The playlist is extened as more features are added, so join us for a "Coffee wit ## Setup You can install `quarto-nvim` from GitHub with your favourite Neovim plugin manager -like [lazy.nvim](https://github.com/folke/lazy.nvim), [packer.nvim](https://github.com/wbthomason/packer.nvim) or [VimPlug](https://github.com/junegunn/vim-plug). +like [lazy.nvim](https://github.com/folke/lazy.nvim), +[packer.nvim](https://github.com/wbthomason/packer.nvim) or [VimPlug](https://github.com/junegunn/vim-plug). -Because Quarto provides a lot of functionality through integration with existing plugins, we recommend to experiment with the [quarto-nvim kickstarter configuration](https://github.com/jmbuhr/quarto-nvim-kickstarter) +Example `lazy.nvim` plugin specification: + +```lua +-- plugins/quarto.lua +return { + { + "quarto-dev/quarto-nvim", + dependencies = { + "jmbuhr/otter.nvim", + "nvim-treesitter/nvim-treesitter", + }, + }, +} +``` + +Because Quarto provides a lot of functionality through integration with existing plugins, +we recommend to experiment with the [quarto-nvim kickstarter configuration](https://github.com/jmbuhr/quarto-nvim-kickstarter) and then pick the relevant parts from the [`lua/plugins/quarto.lua`](https://github.com/jmbuhr/quarto-nvim-kickstarter/blob/main/lua/plugins/quarto.lua) file to integrate it into your own existing configuration. From da231fb653e5eae9951fa6478fbc43ba14ce4fce Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 5 Jul 2024 08:35:49 +0000 Subject: [PATCH 2/9] chore(build): auto-generate vimdoc --- doc/quarto.txt | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/doc/quarto.txt b/doc/quarto.txt index b2ce427..173cd3a 100644 --- a/doc/quarto.txt +++ b/doc/quarto.txt @@ -1,4 +1,4 @@ -*quarto.txt* For Neovim >= 0.8.0 Last change: 2024 June 30 +*quarto.txt* For Neovim >= 0.8.0 Last change: 2024 July 05 ============================================================================== Table of Contents *quarto-table-of-contents* @@ -36,6 +36,21 @@ manager like lazy.nvim , packer.nvim or VimPlug . +Example `lazy.nvim` plugin specification: + +>lua + -- plugins/quarto.lua + return { + { + "quarto-dev/quarto-nvim", + dependencies = { + "jmbuhr/otter.nvim", + "nvim-treesitter/nvim-treesitter", + }, + }, + } +< + Because Quarto provides a lot of functionality through integration with existing plugins, we recommend to experiment with the quarto-nvim kickstarter configuration and then pick From d6dd91f952bc0a12b0ced07b3f602df9578556ca Mon Sep 17 00:00:00 2001 From: Jannik Buhr Date: Fri, 5 Jul 2024 14:01:29 +0200 Subject: [PATCH 3/9] activate all languages by default --- lua/quarto/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/quarto/config.lua b/lua/quarto/config.lua index ece984c..9bce9b1 100644 --- a/lua/quarto/config.lua +++ b/lua/quarto/config.lua @@ -6,7 +6,7 @@ M.defaultConfig = { lspFeatures = { enabled = true, chunks = 'curly', - languages = { 'r', 'python', 'julia', 'bash', 'html' }, + languages = nil, -- nil means all languages found in the document diagnostics = { enabled = true, triggers = { 'BufWritePost' }, From 30298f7def0e517c0816be4e2b9343e4edf7bf08 Mon Sep 17 00:00:00 2001 From: Jannik Buhr Date: Fri, 5 Jul 2024 14:02:59 +0200 Subject: [PATCH 4/9] update defaults --- lua/quarto/config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/quarto/config.lua b/lua/quarto/config.lua index 9bce9b1..c58c70f 100644 --- a/lua/quarto/config.lua +++ b/lua/quarto/config.lua @@ -16,8 +16,8 @@ M.defaultConfig = { }, }, codeRunner = { - enabled = false, - default_method = nil, -- "molten" or "slime" + enabled = true, + default_method = "slime", -- "molten" or "slime" ft_runners = {}, -- filetype to runner, ie. `{ python = "molten" }`. -- Takes precedence over `default_method` never_run = { 'yaml' }, -- filetypes which are never sent to a code runner From a894c90b615b325d72250bc17e8146ed5f8b156e Mon Sep 17 00:00:00 2001 From: Jannik Buhr <17450586+jmbuhr@users.noreply.github.com> Date: Tue, 9 Jul 2024 23:43:57 +0200 Subject: [PATCH 5/9] Update README.md --- README.md | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/README.md b/README.md index 50fb895..b50b166 100644 --- a/README.md +++ b/README.md @@ -49,21 +49,7 @@ Plugins and their configuration to look out for in either of those files are: } ``` -Quarto-nvim requires Neovim >= **v0.9.0** (). -If you are unable to update Neovim, you can specify a specific version of the plugins -involved instead of the latest stable version. -How you do this will vary depending on your plugin manager, but you can see one example using `lazy.nvim` here: - - -The `version = ...` lines to look out for are for the following plugins: - -```lua -{ - 'quarto-dev/quarto-nvim', - 'jmbuhr/otter.nvim', - 'nvim-treesitter/nvim-treesitter' -} -``` +Quarto-nvim requires the latest [Neovim stable version](https://github.com/neovim/neovim/releases/tag/stable) (>= `v0.10.0`). ## Usage From eed598983fa4040eed77191f69462c1348770b8a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 9 Jul 2024 21:44:33 +0000 Subject: [PATCH 6/9] chore(build): auto-generate vimdoc --- doc/quarto.txt | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/doc/quarto.txt b/doc/quarto.txt index 173cd3a..b2ca0b7 100644 --- a/doc/quarto.txt +++ b/doc/quarto.txt @@ -1,4 +1,4 @@ -*quarto.txt* For Neovim >= 0.8.0 Last change: 2024 July 05 +*quarto.txt* For Neovim >= 0.8.0 Last change: 2024 July 09 ============================================================================== Table of Contents *quarto-table-of-contents* @@ -70,22 +70,8 @@ Plugins and their configuration to look out for in either of those files are: } < -Quarto-nvim requires Neovim >= **v0.9.0** -(). If you are unable to -update Neovim, you can specify a specific version of the plugins involved -instead of the latest stable version. How you do this will vary depending on -your plugin manager, but you can see one example using `lazy.nvim` here: - - -The `version = ...` lines to look out for are for the following plugins: - ->lua - { - 'quarto-dev/quarto-nvim', - 'jmbuhr/otter.nvim', - 'nvim-treesitter/nvim-treesitter' - } -< +Quarto-nvim requires the latest Neovim stable version + (>= `v0.10.0`). USAGE *quarto-quarto-nvim-usage* From 1d10f135937613ca71a84975fe75b5b76a35065e Mon Sep 17 00:00:00 2001 From: Jannik Buhr Date: Wed, 9 Oct 2024 12:29:59 +0200 Subject: [PATCH 7/9] fix: register markdown grammar for quarto and rmd until our own grammar is ready (https://github.com/jmbuhr/tree-sitter-pandoc-markdown) refs https://github.com/jmbuhr/otter.nvim/issues/179 --- ftplugin/quarto.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ftplugin/quarto.lua b/ftplugin/quarto.lua index 9241a81..4cd21f3 100644 --- a/ftplugin/quarto.lua +++ b/ftplugin/quarto.lua @@ -1,5 +1,9 @@ vim.b.slime_cell_delimiter = '```' +-- TODO: Workaround while nvim-treesitter doesn't link those anymore +-- until our ouwn pandoc grammar is ready +vim.treesitter.language.register("markdown", { "quarto", "rmd" }) + local config = require('quarto.config').config local quarto = require 'quarto' From 12bf0a94fe49f0f06c800019a86ad00bcc9dc3d1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 9 Oct 2024 10:30:35 +0000 Subject: [PATCH 8/9] chore(build): auto-generate vimdoc --- doc/quarto.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/quarto.txt b/doc/quarto.txt index b2ca0b7..e7afeec 100644 --- a/doc/quarto.txt +++ b/doc/quarto.txt @@ -1,4 +1,4 @@ -*quarto.txt* For Neovim >= 0.8.0 Last change: 2024 July 09 +*quarto.txt* For Neovim >= 0.8.0 Last change: 2024 October 09 ============================================================================== Table of Contents *quarto-table-of-contents* From 23083a0152799ca7263ac9ae53d768d4dd93d24e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:41:41 +0200 Subject: [PATCH 9/9] chore(main): release 1.0.2 (#148) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 562ab0a..9028ca8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.0.2](https://github.com/quarto-dev/quarto-nvim/compare/v1.0.1...v1.0.2) (2024-10-09) + + +### Bug Fixes + +* register markdown grammar for quarto and rmd until our own grammar is ready (https://github.com/jmbuhr/tree-sitter-pandoc-markdown) refs https://github.com/jmbuhr/otter.nvim/issues/179 ([1d10f13](https://github.com/quarto-dev/quarto-nvim/commit/1d10f135937613ca71a84975fe75b5b76a35065e)) + ## [1.0.1](https://github.com/quarto-dev/quarto-nvim/compare/v1.0.0...v1.0.1) (2024-06-30)