==============================================================================
vim.lsp: ✅
- LSP log level : WARN
- Log path: /home/mhyun/.local/state/nvim/lsp.log
- Log size: 1752 KB
vim.lsp: Active Clients ~
- clangd (id: 5)
- Version: clangd version 20.1.0 (https://github.com/llvm/llvm-project 24a30daaa559829ad079f2ff7f73eb4e18095f88) linux+grpc x86_64-unknown-linux-gnu
- Root directory: nil
- Command: { "clangd" }
- Settings: {}
- Attached buffers: 1
vim.lsp: Enabled Configurations ~
- bashls:
- capabilities: {
textDocument = {
completion = {
completionItem = {
commitCharactersSupport = false,
deprecatedSupport = true,
documentationFormat = { "markdown", "plaintext" },
insertReplaceSupport = true,
insertTextModeSupport = {
valueSet = { 1 }
},
labelDetailsSupport = true,
preselectSupport = false,
resolveSupport = {
properties = { "documentation", "detail", "additionalTextEdits", "command", "data" }
},
snippetSupport = true,
tagSupport = {
valueSet = { 1 }
}
},
completionList = {
itemDefaults = { "commitCharacters", "editRange", "insertTextFormat", "insertTextMode", "data" }
},
contextSupport = true,
insertTextMode = 1
}
}
}
- cmd: { "bash-language-server", "start" }
- filetypes: bash, sh
- root_markers: .git
- settings: {
bashIde = {
globPattern = "*@(.sh|.inc|.bash|.command)"
}
}
- clangd:
- capabilities: {
offsetEncoding = { "utf-8", "utf-16" },
textDocument = {
completion = {
completionItem = {
commitCharactersSupport = false,
deprecatedSupport = true,
documentationFormat = { "markdown", "plaintext" },
insertReplaceSupport = true,
insertTextModeSupport = {
valueSet = { 1 }
},
labelDetailsSupport = true,
preselectSupport = false,
resolveSupport = {
properties = { "documentation", "detail", "additionalTextEdits", "command", "data" }
},
snippetSupport = true,
tagSupport = {
valueSet = { 1 }
}
},
completionList = {
itemDefaults = { "commitCharacters", "editRange", "insertTextFormat", "insertTextMode", "data" }
},
contextSupport = true,
editsNearCursor = true,
insertTextMode = 1
}
}
}
- cmd: { "clangd" }
- filetypes: c, cpp, objc, objcpp, cuda, proto
- on_attach: <function @/home/mhyun/.local/share/nvim/lazy/nvim-lspconfig/lsp/clangd.lua:90>
- on_init: <function @/home/mhyun/.local/share/nvim/lazy/nvim-lspconfig/lsp/clangd.lua:85>
- root_markers: .clangd, .clang-tidy, .clang-format, compile_commands.json, compile_flags.txt, configure.ac, .git
- jsonls:
- capabilities: {
textDocument = {
completion = {
completionItem = {
commitCharactersSupport = false,
deprecatedSupport = true,
documentationFormat = { "markdown", "plaintext" },
insertReplaceSupport = true,
insertTextModeSupport = {
valueSet = { 1 }
},
labelDetailsSupport = true,
preselectSupport = false,
resolveSupport = {
properties = { "documentation", "detail", "additionalTextEdits", "command", "data" }
},
snippetSupport = true,
tagSupport = {
valueSet = { 1 }
}
},
completionList = {
itemDefaults = { "commitCharacters", "editRange", "insertTextFormat", "insertTextMode", "data" }
},
contextSupport = true,
insertTextMode = 1
}
}
}
- cmd: { "vscode-json-language-server", "--stdio" }
- filetypes: json, jsonc
- init_options: {
provideFormatter = true
}
- root_markers: .git
- lua_ls:
- capabilities: {
textDocument = {
completion = {
completionItem = {
commitCharactersSupport = false,
deprecatedSupport = true,
documentationFormat = { "markdown", "plaintext" },
insertReplaceSupport = true,
insertTextModeSupport = {
valueSet = { 1 }
},
labelDetailsSupport = true,
preselectSupport = false,
resolveSupport = {
properties = { "documentation", "detail", "additionalTextEdits", "command", "data" }
},
snippetSupport = true,
tagSupport = {
valueSet = { 1 }
}
},
completionList = {
itemDefaults = { "commitCharacters", "editRange", "insertTextFormat", "insertTextMode", "data" }
},
contextSupport = true,
insertTextMode = 1
}
}
}
- cmd: { "lua-language-server" }
- filetypes: lua
- root_markers: .luarc.json, .luarc.jsonc, .luacheckrc, .stylua.toml, stylua.toml, selene.toml, selene.yml, .git
- pyright:
- capabilities: {
textDocument = {
completion = {
completionItem = {
commitCharactersSupport = false,
deprecatedSupport = true,
documentationFormat = { "markdown", "plaintext" },
insertReplaceSupport = true,
insertTextModeSupport = {
valueSet = { 1 }
},
labelDetailsSupport = true,
preselectSupport = false,
resolveSupport = {
properties = { "documentation", "detail", "additionalTextEdits", "command", "data" }
},
snippetSupport = true,
tagSupport = {
valueSet = { 1 }
}
},
completionList = {
itemDefaults = { "commitCharacters", "editRange", "insertTextFormat", "insertTextMode", "data" }
},
contextSupport = true,
insertTextMode = 1
}
}
}
- cmd: { "pyright-langserver", "--stdio" }
- filetypes: python
- on_attach: <function @/home/mhyun/.local/share/nvim/lazy/nvim-lspconfig/lsp/pyright.lua:43>
- root_markers: pyproject.toml, setup.py, setup.cfg, requirements.txt, Pipfile, pyrightconfig.json, .git
- settings: {
python = {
analysis = {
autoSearchPaths = true,
diagnosticMode = "openFilesOnly",
useLibraryCodeForTypes = true
}
}
}
- vimls:
- capabilities: {
textDocument = {
completion = {
completionItem = {
commitCharactersSupport = false,
deprecatedSupport = true,
documentationFormat = { "markdown", "plaintext" },
insertReplaceSupport = true,
insertTextModeSupport = {
valueSet = { 1 }
},
labelDetailsSupport = true,
preselectSupport = false,
resolveSupport = {
properties = { "documentation", "detail", "additionalTextEdits", "command", "data" }
},
snippetSupport = true,
tagSupport = {
valueSet = { 1 }
}
},
completionList = {
itemDefaults = { "commitCharacters", "editRange", "insertTextFormat", "insertTextMode", "data" }
},
contextSupport = true,
insertTextMode = 1
}
}
}
- cmd: { "vim-language-server", "--stdio" }
- filetypes: vim
- init_options: {
diagnostic = {
enable = true
},
indexes = {
count = 3,
gap = 100,
projectRootPatterns = { "runtime", "nvim", ".git", "autoload", "plugin" },
runtimepath = true
},
isNeovim = true,
iskeyword = "@,48-57,_,192-255,-#",
runtimepath = "",
suggest = {
fromRuntimepath = true,
fromVimruntime = true
},
vimruntime = ""
}
- root_markers: .git
- yamlls:
- capabilities: {
textDocument = {
completion = {
completionItem = {
commitCharactersSupport = false,
deprecatedSupport = true,
documentationFormat = { "markdown", "plaintext" },
insertReplaceSupport = true,
insertTextModeSupport = {
valueSet = { 1 }
},
labelDetailsSupport = true,
preselectSupport = false,
resolveSupport = {
properties = { "documentation", "detail", "additionalTextEdits", "command", "data" }
},
snippetSupport = true,
tagSupport = {
valueSet = { 1 }
}
},
completionList = {
itemDefaults = { "commitCharacters", "editRange", "insertTextFormat", "insertTextMode", "data" }
},
contextSupport = true,
insertTextMode = 1
}
}
}
- cmd: { "yaml-language-server", "--stdio" }
- filetypes: yaml, yaml.docker-compose, yaml.gitlab, yaml.helm-values
- root_markers: .git
- settings: {
redhat = {
telemetry = {
enabled = false
}
}
}
vim.lsp: File Watcher ~
- file watching "(workspace/didChangeWatchedFiles)" disabled on all clients
vim.lsp: Position Encodings ~
- No buffers contain mixed position encodings
If you want to keep the present behavior of exiting the prompt, there should at least be a vim.notify message saying that this is an invalid rename target.
Did you check the Readme and existing issues?
Neovim version (output of nvim -v)
NVIM v0.11.2
Operating system / version
WSL Ubuntu 24.04.2 LTS
Output of :LspInfo
Describe the bug
The command-line prompt is suddenly exited if
:IncRenameis typed over a symbol that the LSP server reports has no references. There is not even an error message that gets emitted so it can be quite surprising to the user.I believe this is happening in the following line:
inc-rename.nvim/lua/inc_rename/init.lua
Line 182 in a3e31af
Steps to reproduce
I have only seen this on
clangdso make sure that is installed.test.cppwith the following contents:gon line 5 and pressgrr. There should be a message saying "No references found".:IncRename.Expected behavior
If you want to keep the present behavior of exiting the prompt, there should at least be a
vim.notifymessage saying that this is an invalid rename target.