Coder Social home page Coder Social logo

inc-rename.nvim's Introduction

My GitHub stats

inc-rename.nvim's People

Contributors

danielhvs avatar eslam-allam avatar raafatturki avatar smjonas avatar zegervdv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

inc-rename.nvim's Issues

Typescript renaming of properties doesn't work across files

I'm using the latest versions of Neovim and LazyVim. Using the standard typescript lsp enabled via mason and Extras and the cr (which invokes inc-rename), if I rename a property in a typescript type that exists in one file, it doesn't properly refactor in other files. For example, if I have a "Person" type with 'name' and 'age' as properties, a variable in a separate file which uses this type will not change it's property names if I change it in the type definition.

Is there a config setting or something I'm missing?

[bug] Ctrl+F to enter command line window breaks inc-rename when input_buffer_type = "dressing"

I like to use dressing with insert_only = false, but that doesn't work with inc-rename.nvim (see #36). As a workaround, I tried using Ctrl+F to use the command line window in order to edit my command before executing it.

I found that that works with input_buffer_type = nil, but not with input_buffer_type = "dressing".

Behavior with input_buffer_type = nil

2023-05-21.11-10-36.mp4

Behavior with input_buffer_type = "dressing"

  1. When I exit the command line window, the Dressing input remains open
    • This happens regardless of whether I ran the IncRename <word> command or I exited the command line window without executing the command
  2. Also, inc-rename.nvim throws an error (pasted below) when exiting the command line window without running a command
2023-05-21.11-11-52.trimmed.mp4
CmdlineLeave Autocommands for "*":
Vim(append):Error executing lua callback: .../share/nvim/lazy/inc-rename.nvim/lua/inc_rename/init.lua:139
Vim:E11: Invalid in command-line window; <CR> executes, CTRL-C quits^@stack traceback:^@^I[C]:
in function 'nvim_set_current_win'^@^I.../share/nvim/lazy/inc-rename.nvim/lua/inc_rename/init.lua:139:
in function <.../share/nvim/lazy/inc-rename.nvim/lua/inc_rename/init.lua:132>

Expose Lua API rename function

Hi, and thanks for creating this plugin! After trying it out I find the user experience a bit odd. The only way to trigger the plugin seems to be with the :IncRename command, after you type a space after the command, which I find quite unconventional. My guess is that most users will create a keymap to trigger the plugin, like you mention in the README. However, when using a floating-window setup like dressing.nvim for instance, and triggering the plugin with the mapping

vim.keymap.set("n", "<leader>rn", ":IncRename ")

The text that you type appears both in the floating window and in the command-line down in the bottom left corner. I think that most people expect the text you type to only appear in the floating window.

What I suggest is to expose a Lua function that users can call with their keymap instead, for instance like this:

vim.keymap.set("n", "<leader>rn", require('inc_rename').rename)

and the function would only show the floating window (for instance by triggering vim.ui.input), and no text would appear in the command-line when you type.

Errors when trying to rename stuff in markdown files

Given this markdown file:

# How To Contribute

## Installation

- `git clone <repository-url>`
- `cd @embroider/util`
- `yarn install`

## Linting

- `yarn lint:hbs`
- `yarn lint:js`
- `yarn lint:js --fix`

## Running tests

- `ember test` – Runs the test suite on the current Ember version
- `ember test --server` – Runs the test suite in "watch mode"
- `ember try:each` – Runs the test suite against multiple Ember versions

## Running the dummy application

- `ember serve`
- Visit the dummy application at [http://localhost:4200](http://localhost:4200).

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).

I tried to rename yarn to pnpm and got a bunch of errors

E116: Incompatible with traces.vim: Invalid arguments for function dictwatcherdel

Here's my setup:

-- using lazy.nvim
return {
  "smjonas/inc-rename.nvim",
  dependencies = { "stevearc/dressing.nvim" },
  config = function()
    local inc_rename = require("inc_rename")
    inc_rename.setup({ input_buffer_type = "dressing" })

    vim.keymap.set("n", "<leader>rn", function()
      return ":IncRename " .. vim.fn.expand("<cword>")
    end, { expr = true })
  end,
}

The keybinding puts me in command mode with :IncRename theword, but:

  1. No inc rename UI is visible in the buffer
  2. I get the following error message once I hit enter:
[inc-rename] An error occurred in the preview function. Please report this error here: https://github.com/smjonas/inc-rename.nvim/issues:
E116: Invalid arguments for function dictwatcherdel

Additionally, it leaves me in a weird state where I have to hit Ctrl-C for the error message to go away.

Neovim version:

 ~/.dotfiles => nvim --version
NVIM v0.9.0
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

Rust - Inlined format args not renamed

Renaming a variable with uninlined format args works as expected, however inlined format args are not affected.

let a = 5;
println!("{}", a);
println!("{a}");

becomes

let b = 5;
println!("{}", b);
println!("{a}");

vim.ui.input() support

I'll preface this with saying that I'm brand new to the command-preview business so there's a chance this isn't even possible but here it goes:

It would be great to use vim.ui.input() to get the new variable name instead of passing it as a command argument.
That way users would be able to render the input however they desire (by using dressing.nvim for example) which helps a lot by keeping your eyes at the current line you're working on

image
my own LSP rename command using vim.ui.input()

Amazing plugin

Hey I just found this, and it's exactly what I need but there would be one really awesome addition I think.

You have all the rest in place, and I feel like this might not be too difficult.

Is it possible to add other "modes" rather htan LSP rename? Specifically a simple find/replace in file? Everything else could remain exactly the same (dressing.nvim support, realtime updating, etc)

For example I'm using this keymap, and i actually made an issue in dressing.nvim on how to get it to update in realtime when doing a find/replace, and he directed me here.

-- find/replace word under cursor
-- vim.keymap.set('n', '<Leader>rn', [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]], { desc = 'Rename word under cursor'})
vim.keymap.set('n', '<Leader>rn', function()
  local current_word = vim.fn.expand("<cword>")
  vim.ui.input({
    prompt = 'Rename ' .. current_word .. ': ',
    default = current_word,
  }, function(new_name)
    if new_name then
      local escaped_word = vim.fn.escape(current_word, '\\/|&')
      local substitute_cmd = ":%s/\\<" .. escaped_word .. "\\>/" .. new_name .. "/g"
      vim.cmd(substitute_cmd)
    end
  end)
end, { desc = 'Rename word under cursor' })

[feat] Support modes other than insert for input_buffer_type = "dressing"

Here's my setup using lazy.nvim:

  {
    "smjonas/inc-rename.nvim",
    dependencies = { "stevearc/dressing.nvim" },
    config = function()
      local inc_rename = require("inc_rename")
      inc_rename.setup({ input_buffer_type = "dressing" })

      vim.keymap.set("n", "<leader>rn", function()
        return ":IncRename " .. vim.fn.expand("<cword>")
      end, { expr = true })
    end,
  },

inc-rename.nvim works just fine. However, I like to use dressing with these settings:

input = { insert_only = false }

(see the dressing README)

It seems like dressing's settings are ignored by inc-rename.nvim. When I press escape, the prompt just exits.

Could inc-rename.nvim inherit from the configuration passed to dressing's setup function? Or perhaps support passing an independent set of options?

In a typescript file, I get an error, Request textDocument/references failed: "Cannot read properties of undefined"

Specifically on this branch: NullVoxPopuli/ember-resources#513
in ember-resources/src/core/resource.ts around line 180, I tried renaming cache.

And got this error:

2022-06-03T20:22:33 ERROR Error while finding references: Request textDocument/references failed with message: Cannot read propert
ies of undefined (reading 'includeDeclaration')
2022-06-03T20:22:38 WARN No results from textDocument/references
2022-06-03T20:22:38 ERROR Error while finding references: Request textDocument/references failed with message: Cannot read propert
ies of undefined (reading 'includeDeclaration')
2022-06-03T20:22:38 WARN No results from textDocument/references
2022-06-03T20:22:38 ERROR Error while finding references: Request textDocument/references failed with message: Cannot read propert
ies of undefined (reading 'includeDeclaration')
2022-06-03T20:22:38 WARN No results from textDocument/references
2022-06-03T20:22:38 ERROR Error while finding references: Request textDocument/references failed with message: Cannot read propert
ies of undefined (reading 'includeDeclaration')
2022-06-03T20:22:38 WARN No results from textDocument/references
2022-06-03T20:22:38 ERROR Error while finding references: Request textDocument/references failed with message: Cannot read propert
ies of undefined (reading 'includeDeclaration')
2022-06-03T20:22:39 WARN No results from textDocument/references
2022-06-03T20:22:39 ERROR Error while finding references: Request textDocument/references failed with message: Cannot read propert
ies of undefined (reading 'includeDeclaration')

(history from nvim-notify)

which I think is from:
https://github.com/smjonas/inc-rename.nvim/blob/main/lua/inc_rename/init.lua#L23

the code that triggered the error:

class ResourceManager {
  capabilities = helperCapabilities('3.23', {
    hasValue: true,
    hasDestroyable: true,
  });

  constructor(protected owner: unknown) {}

  createHelper(Class: typeof Resource, args: ArgsWrapper) {
    let owner = this.owner;

    let instance: Resource<ArgsWrapper>;

    // right here, I tried rename on `cache`
    let cache: Cache = createCache(() => {
      if (instance === undefined) {
        instance = new Class(owner);

        associateDestroyableChild(cache, instance);
      }

      if (instance.modify) {
        instance.modify(args.positional, args.named);
      }

      return instance;
    });

    return cache;
  }

in lua files, works as expected

Easier Noice config

fyi: Noice users can now configure IncRename with config.presets.inc_rename=true :)

[Bug] Index out of bounds

Hi 👋🏿

This plugin is a fantastic idea @smjonas thanks for creating it

I've just started using it this morning and am occasionally hitting the following error whilst just testing this out

Error executing vim.schedule lua callback: ...ack/packer/start/inc-rename.nvim/lua/inc_rename/init.lua:38: Index out of bounds                                                       
stack traceback:                                                                                                                                                                     
        [C]: in function 'nvim_buf_get_lines'                                                                                                                                        
        ...ack/packer/start/inc-rename.nvim/lua/inc_rename/init.lua:38: in function 'handler'                                                                                        
        ...r/neovim/HEAD-9961a97/share/nvim/runtime/lua/vim/lsp.lua:1173: in function ''                                                                                             
        vim/_editor.lua: in function <vim/_editor.lua:0>  

Seems that on the following line

local line = vim.api.nvim_buf_get_lines(buf, line_nr, line_nr + 1, 0)[1]

There should maybe be a check to make sure the line is not out of bounds before doing an access of the table. No idea why the line is out of bounds though

Better examples: Use multiple files or non-single word symbols

Single word instances can be, although breaking for :: delimiters, replaced (faster) with

map('n', ',', [["_diwP]], opts) -- keep pasting over the same thing, old map: C-p
map('n', '*', [[m`:keepjumps normal! *``<CR>]], opts) -- word boundary search, no autojump
map('n', 'g*', [[m`:keepjumps normal! g*``<CR>]], opts) -- no word boundary search no autojump

Additional usage of map('n', '<leader>sh', ':ClangdSwitchSourceHeader<CR>', opts) -- switch header_source or harpoon/buffer navigation allows also to workaround many cases (though with lower editing speed):

map('n', '<leader>ff', [[<cmd>lua require('telescope.builtin').find_files()<CR>]], opts) -- find files
-- C-q
-- 1.
-- :cfdo :badd %
-- and :b buffername or :bBufNr with :ls ie as combined command
-- 2.
-- :cfdo lua require("harpoon.mark").add_file()
map('n', '<leader>cj', [[<cmd>lua require("harpoon.term").gotoTerminal(1)<CR>]], opts)
map('n', '<leader>j', [[<cmd>lua require("harpoon.ui").nav_file(1)<CR>]], opts)

It would be nice to mention those things with their advantages + shortcomings, as they are going into the same direction of fast + simple editings.
For example inc-rename is less appropriate for editings, which involve intentionally breaking things on changes.

Additional plus would be to mention the treesitter plugin one can use (with advantages + shortcomings).

How to show current variable name in the INC box before changing

Hi,

When I want to change a variable, I should type the whole name again plus the changes, while I was looking for a way to only type the required parts. For example address to addressObj, I'm looking for a way to have address in the INC box when I run :IncRename, and then I just type the Obj part. But the INC box is empty all the time.

Do we have this functionality, or I missed a config?

Cheers,
Mort

Error on rename

Hi.
Sometimes, when I try to rename an item, I get the following error:

[inc-rename] An error occurred in the preview function. Please report this error here: https://github.com/smjonas/inc-rename.nvim/issues:
Error executing Lua callback: ...are/nvim/plugged/inc-rename.nvim/lua/inc_rename/init.lua:264: Invalid 'end_col': out of range
stack traceback:
^I[C]: in function 'nvim_buf_set_text'
^I...are/nvim/plugged/inc-rename.nvim/lua/inc_rename/init.lua:264: in function 'apply_highlights_fn'
^I...are/nvim/plugged/inc-rename.nvim/lua/inc_rename/init.lua:306: in function <...are/nvim/plugged/inc-rename.nvim/lua/inc_rename/init.lua:210>

I'm not exactly sure how to reproduce the issue, though, but perhaps I could point you to a project of mine where this happens if needed.
Thanks to fix the issue.

Weid behavior in php

When programming in PHP, the plugin has a weird behavior:
image

Sorry for this monstrosity. I'm new to this codebase and still in the process of refactoring it and implementing best practices

Obs: working fine on other languages
image

Incompatible with `custom-elements-languageserver` ("Nothing to rename")

Hello, I am having issues making it work on lua files, I've tested it on C,C++ and java and it worked well, but when trying to use it on lua files it doesn't work.
I have this sudggeste mapping:

vim.keymap.set("n", "<leader>rn", function()
    return ":IncRename " .. vim.fn.expand("<cword>")
end, { expr = true, desc = "[R]e[n]ame" })

When trying to use it on lua files the dressing window appears for an instant and I get the following error: [inc_rename] Nothing to rename
Also if I try to use the command manually the command tries to trigger as soon asi I write :Inc with the E471: Argument required error

I tried with Lspsaga's rename and it works fine.
Lsp I use on Lua is stylua

Should not cause any error when trying to `<C-p>` after entering command mode by `:`

Say I just rename a variable. Then, if I accidentally press<C-p>(to get the last command I called) too many times, then the renaming prompt will show up again and give me an error:

  • The plugin I use to show message is folke/noice.nvim, which might be related.
  • Here the restore_view_on_zoom_out is the variable name I just named.

This bug is really annoying since the LSP client will simply stop working after the error. I hope it could be fixed soon...

   Error  14:03:00 msg_show.lua_error    restore_view_on_zoom_out Error executing vim.schedule lua callback: BufEnter Autocommands for "*": Vim(lua):E5108: Error executing lua Vim:E903: Process failed to start: too many open files: "/usr/bin/git"
stack traceback:
	[C]: in function 'jobstart'
	...l/share/nvim/lazy/lualine.nvim/lua/lualine/utils/job.lua:9: in function 'start'
	...zy/lualine.nvim/lua/lualine/components/diff/git_diff.lua:133: in function 'update_git_diff'
	...zy/lualine.nvim/lua/lualine/components/diff/git_diff.lua:121: in function 'update_diff_args'
	[string ":lua"]:1: in main chunk
	[C]: in function 'bufload'
	.../share/nvim/lazy/inc-rename.nvim/lua/inc_rename/init.lua:55: in function 'cache_lines'
	.../share/nvim/lazy/inc-rename.nvim/lua/inc_rename/init.lua:121: in function 'handler'
	/usr/local/share/nvim/runtime/lua/vim/lsp.lua:1390: in function ''
	vim/_editor.lua: in function <vim/_editor.lua:0>
stack traceback:
	[C]: in function 'bufload'
	.../share/nvim/lazy/inc-rename.nvim/lua/inc_rename/init.lua:55: in function 'cache_lines'
	.../share/nvim/lazy/inc-rename.nvim/lua/inc_rename/init.lua:121: in function 'handler'
	/usr/local/share/nvim/runtime/lua/vim/lsp.lua:1390: in function ''
	vim/_editor.lua: in function <vim/_editor.lua:0>

Partially Doesn't Work

2024-03-11.16-40-54.mp4

It worked when I tried to rename parser but it didn't work when I tried to rename argparse. However, it does rename argparse in the live preview.

 Detected filetype:   python
 
 2 client(s) attached to this buffer: 
 
 Client: pyright (id: 1, bufnr: [1])
 	filetypes:       python
 	autostart:       true
 	root directory:  /home/myxi/Documents/coding/python/glowl
 	cmd:             /usr/bin/pyright-langserver --stdio
 
 Client: ruff_lsp (id: 2, bufnr: [1])
 	filetypes:       python
 	autostart:       true
 	root directory:  /home/myxi/Documents/coding/python/glowl
 	cmd:             /home/myxi/.local/bin/ruff-lsp

Neovim version: 0.9.5
Python version: 3.12.2

[Feature] Show a preview window listing all of the files and occurrences where the symbol will be replaced

It would be great for this plugin to show a rename preview panel similar to the quick fix one, containing a row for each of the symbols which will be updated with the LSP rename.

Also, those rows should be grouped in files where the change will occur. Example:

-----------------
-- Preview Window
-----------------

[1] C:\Work\include.h [1 match]
17. int NEWSYMBOL;

[2] C:\Work\main.c [2 matches]
19.   NEWSYMBOL = 12;
23.       print("Today is &d", NEWSYMBOL\n");

Bug: Changing the current word under the cursor broken

Hey, when I use the snippet provided in the config to rename a variable it works, as long as I don't completely remove the previous variable. Hopefully the video explains it better.

Also an aside question, does this use the AST for renaming?

issue.mp4

This is how my config looks like right now. I'm using Lazy as my plugin manager

return {
  "smjonas/inc-rename.nvim",
  config = function()
    require("inc_rename").setup()
    vim.keymap.set("n", "<leader>rn", function()
      return ":IncRename " .. vim.fn.expand("<cword>")
    end, { expr = true })
  end,
}

This is the neovim version I'm running

➜ nvim --version
NVIM v0.9.1
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

invalid key: preview

After installing the plugin I get the following error message when I open Neovim

packer.nvim: Error running config for inc-rename.nvim: ...ack/packer/start/inc-rename.nvim/lua/inc_rename/init.lua:364: invalid key: preview

Cursor dissapears in Neovim 0.10

Really loving the plugin, but unfortunately I've been experiencing an issue since updating to Neovim 0.10 where the cursor in the command palette/noice (I tried both) does not visually respond to arrow keys, though it does in fact move, making it hard to rename things.

I have attached a short video illustrating the issue where <leader>rn uses inc-rename.nvim and <leader>lr uses vim.buf.lsp.rename, which works as expected.

I did not experience this issue with Neovim 0.9.5.

Any suggestions would be much appreciated.

Screen.Recording.2024-05-20.at.1.18.42.PM.mov
Noice config
return {
  'folke/noice.nvim',
  event = 'VeryLazy',
  dependencies = {
    'MunifTanjim/nui.nvim',
    -- OPTIONAL:
    --   `nvim-notify` is only needed, if you want to use the notification view.
    --   If not available, we use `mini` as the fallback
    'rcarriga/nvim-notify',
    'hrsh7th/nvim-cmp',
  },
  config = function()
    require('noice').setup {
      lsp = {
        hover = { enabled = true },
        signature = { enabled = true },
      },
      presets = {
        bottom_search = false, -- use a classic bottom cmdline for search
        command_palette = true, -- position the cmdline and popupmenu together
        long_message_to_split = true, -- long messages will be sent to a split
        inc_rename = false, -- enables an input dialog for inc-rename.nvim
        lsp_doc_border = false, -- add a border to hover docs and signature help
      },
      override = {
        ['vim.lsp.util.convert_input_to_markdown_lines'] = true,
        ['vim.lsp.util.stylize_markdown'] = true,
        ['cmp.entry.get_documentation'] = true, -- requires hrsh7th/nvim-cmp
      },
      routes = {
        {
          view = 'notify',
          filter = { event = 'msg_showmode' },
        },
      },
    }
    nmap('<leader>nd', '<cmd>NoiceDismiss<cr>', 'dismiss')
    nmap('<leader>ne', '<cmd>NoiceErrors<cr>', 'errors')
    nmap('<leader>nl', '<cmd>NoiceLast<cr>', 'last')
    nmap('<leader>nn', '<cmd>Noice<cr>', 'noice')
    nmap('<leader>nh', '<cmd>NoiceHistory<cr>', 'history')
    nmap('<leader>nt', '<cmd>NoiceTelescope<cr>', 'telescope')
  end,
}
Inc Rename config
return {
  'smjonas/inc-rename.nvim',
  -- enabled = false,
  config = function()
    require('inc_rename').setup {}

    vim.keymap.set('n', '<leader>rn', function()
      return ':IncRename ' .. vim.fn.expand '<cword>'
    end, { expr = true, desc = 'rename word under cursor' })
  end,
}

Filling in the command line didn't work, but I fixed it

This didn't work:

function()
    return ":IncRename " .. vim.fn.expand("<cword>")
end

It had no observable effect whatsoever.

vim.api.nvim_feedkeys() to the rescue:

function()
    local line = ":IncRename " .. vim.fn.expand("<cword>")
    vim.api.nvim_feedkeys(line, "n", true)
end

I don't know if it was my Neovim version (0.9.2) or some other plugin interfering, but now it's working.

Trigger preview on first keypress

Hey 👋🏾

I think the title is pretty dump, but I fail to summarize the issue better. The problem is that if I use a keymap like from the README, the whole preview, coloring, ... process only starts once I type something. So the current word under the cursor gets inserted, but nothing happens. Only when I alternate the word it starts. I would expect (I think think it was like that in the past) to get all occurances highlighted immediately and also dressing.nvim to pop-up right away. Right now it looks like it is hanging.
Am I doing something wrong?

Question about multiple buffers renaming

I've a question, what if the LSP rename action involves updating references in buffers different from the actual one?

It would be nice to have a preview of the changes which would be applied to the other buffers (opened or not). Would something like that possible?

Keymap doesn't work

The keymap vim.keymap.set("n", "<leader>rn", ":IncRename ") gives the error: E471: Argument required

noice.nvim support appears broken

Issue

When set up with noice.nvim inc-rename preset, :IncRename, throws error E471: Argument required. I'm opening this here since I presume the issue is with inc-rename, but if you think its a noice.nvim bug, I can open an issue there.

Minimal config

-- Shoutout to folke for providing a great minimal config for noice.nvim
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  {
    "folke/noice.nvim",
    dependencies = {
      "MunifTanjim/nui.nvim",
      "rcarriga/nvim-notify",
    },
  },
  {
    "smjonas/inc-rename.nvim",
    cmd = "IncRename",
    config = function()
      require("inc_rename").setup()
    end
  },
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

-- add anything else here
vim.opt.termguicolors = true
vim.cmd([[colorscheme tokyonight]])
require("noice").setup({
  presets = { inc_rename = true }
})

No LSP is needed to reproduce the error; in my config it happens regardless of the LSP attached.

Steps to reproduce

Open any file, navigate to any word, and do :IncRename.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.