From e59af8b44b8d7723301a97678be0e38631b5cdc9 Mon Sep 17 00:00:00 2001 From: Boney Patel Date: Fri, 8 Nov 2024 11:49:27 -0500 Subject: [PATCH] docs: fix typos and remove deprecated user command (#151) * Resolve otter deprecation of .ask_hover() -> vim.lsp.buf.hover() * Fix spelling, remove QuartoHover --------- Co-authored-by: bpatel347 --- 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 8f3d2ff..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 require"otter".ask_hover()', {})