Closed Dich0tomy closed 2 years ago
Nope it does not map anything in normal buffers
p00f@ganymede $ rg map
lua/clangd_extensions/inlay_hints.lua
88: local map = {}
101: if map[line] ~= nil then
102: table.insert(map[line], { label = label, kind = kind })
104: map[line] = { { label = label, kind = kind } }
116: return map
lua/clangd_extensions/memory_usage.lua
33: api.nvim_buf_set_keymap(buf, "n", "q", ":bd<CR>", {
34: noremap = true,
37: api.nvim_buf_set_keymap(buf, "n", "<ESC>", ":bd<CR>", {
38: noremap = true,
btw hover_with_actions doesn't do anything, it's a leftover. I've removed it now
@p00f Alright. I'll try check it again.
If I don't give server
to the config does it override the options passed to lspconfig? Maybe LunarVim dumbly registers things there, idk.
I'll check when I get home.
I've experienced the same issue with LunarVim. Use the following setup to fix it
require("clangd_extensions").setup {
server = {
on_attach = require("lvim.lsp").common_on_attach,
on_init = require("lvim.lsp").common_on_init,
capabilities = require("lvim.lsp").common_capabilities(),
}
}
I'm using LunarVim. Without the plugin the
K
keymap would show me information about the function. With the plugin it removes that keymap and my lunarvim tries to issueman
.I thought
hover_with_actions
causes that so I set it tofalse
, still the same thing.I'm using clangd, neovim version v0.7.0, lunarvim version
e1d32ca
.EDIT: just checked and it apparently also overrides
gd
(goto defintion). Probably some more things?