Skip to content

Commit

Permalink
docs(refactoring): accomodate changes in neovim api (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
omer-vishlitzky committed Apr 1, 2024
1 parent 18910d0 commit 2989e89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/BUILTINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ local sources = { null_ls.builtins.code_actions.refactoring }

#### Notes

- Requires visually selecting the code you want to refactor and calling `:'<,'>lua vim.lsp.buf.range_code_action()` (for the default handler) or `:'<,'>Telescope lsp_range_code_actions` (for Telescope).
- Requires visually selecting the code you want to refactor and calling `:'<,'>lua vim.lsp.buf.code_action()`.

### [statix](https://github.com/nerdypepper/statix)

Expand Down
2 changes: 1 addition & 1 deletion lua/null-ls/builtins/code_actions/refactoring.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ return h.make_builtin({
url = "https://github.com/ThePrimeagen/refactoring.nvim",
description = "The Refactoring library based off the Refactoring book by Martin Fowler.",
notes = {
[[Requires visually selecting the code you want to refactor and calling `:'<,'>lua vim.lsp.buf.range_code_action()` (for the default handler) or `:'<,'>Telescope lsp_range_code_actions` (for Telescope).]],
[[Requires visually selecting the code you want to refactor and calling `:'<,'>lua vim.lsp.buf.code_action()`]],
},
},
method = CODE_ACTION,
Expand Down

0 comments on commit 2989e89

Please sign in to comment.