From 5d0f9a14014f70572a1bfd52ec9424626402cba9 Mon Sep 17 00:00:00 2001 From: bpatel347 Date: Thu, 7 Nov 2024 20:01:47 -0500 Subject: [PATCH 1/2] Resolve otter deprecation of .ask_hover() -> vim.lsp.buf.hover() --- plugin/quarto.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/quarto.lua b/plugin/quarto.lua index 8f3d2ff..b8596f5 100644 --- a/plugin/quarto.lua +++ b/plugin/quarto.lua @@ -19,4 +19,4 @@ api.nvim_create_user_command('QuartoPreview', quarto.quartoPreview, { nargs = '* api.nvim_create_user_command('QuartoClosePreview', quarto.quartoClosePreview, {}) api.nvim_create_user_command('QuartoActivate', quarto.activate, {}) api.nvim_create_user_command('QuartoHelp', quarto.searchHelp, { nargs = 1 }) -api.nvim_create_user_command('QuartoHover', ':lua require"otter".ask_hover()', {}) +api.nvim_create_user_command('QuartoHover', ':lua vim.lsp.buf.hover()', {}) From d89448ec7595756741e86affc69e42f266dc228f Mon Sep 17 00:00:00 2001 From: bpatel347 Date: Fri, 8 Nov 2024 07:03:38 -0500 Subject: [PATCH 2/2] Fix spelling, remove QuartoHover --- README.md | 4 +--- doc/quarto.txt | 3 +-- plugin/quarto.lua | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b50b166..e8b417c 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ https://user-images.githubusercontent.com/17450586/209436101-4dd560f4-c876-4dbc- ### Usage -Uou can open the hover documentation for R, python and julia code chunks with `K`, got-to-definition with `gd` etc. +You can open the hover documentation for R, python and julia code chunks with `K`, got-to-definition with `gd` etc. and get autocompletion via the lsp source for your completion plugin. A list of currently available language server requests can be found in the [otter.nvim documentation](https://github.com/jmbuhr/otter.nvim?tab=readme-ov-file#lsp-methods-currently-implemented). @@ -202,7 +202,6 @@ QuartoClosePreview QuartoHelp <..> QuartoActivate QuartoDiagnostics -QuartoHover QuartoSend QuartoSendAbove QuartoSendBelow @@ -216,4 +215,3 @@ Quarto works great with a number of plugins in the neovim ecosystem. You can find my personal (and thus up-to-date) configuration for use with Quarto, R and python here: - diff --git a/doc/quarto.txt b/doc/quarto.txt index e7afeec..39f00bd 100644 --- a/doc/quarto.txt +++ b/doc/quarto.txt @@ -152,7 +152,7 @@ https://user-images.githubusercontent.com/17450586/209436101-4dd560f4-c876-4dbc- USAGE ~ -Uou can open the hover documentation for R, python and julia code chunks with +You can open the hover documentation for R, python and julia code chunks with `K`, got-to-definition with `gd` etc. and get autocompletion via the lsp source for your completion plugin. @@ -245,7 +245,6 @@ AVAILABLE COMMANDS *quarto-quarto-nvim-available-commands* QuartoHelp <..> QuartoActivate QuartoDiagnostics - QuartoHover QuartoSend QuartoSendAbove QuartoSendBelow diff --git a/plugin/quarto.lua b/plugin/quarto.lua index b8596f5..406d39f 100644 --- a/plugin/quarto.lua +++ b/plugin/quarto.lua @@ -19,4 +19,3 @@ api.nvim_create_user_command('QuartoPreview', quarto.quartoPreview, { nargs = '* api.nvim_create_user_command('QuartoClosePreview', quarto.quartoClosePreview, {}) api.nvim_create_user_command('QuartoActivate', quarto.activate, {}) api.nvim_create_user_command('QuartoHelp', quarto.searchHelp, { nargs = 1 }) -api.nvim_create_user_command('QuartoHover', ':lua vim.lsp.buf.hover()', {})