changed rename function name for vim.lsp (it was renamed)
This commit is contained in:
parent
29df35207a
commit
52b98c26c8
2 changed files with 4 additions and 2 deletions
|
@ -18,7 +18,7 @@ autocmd('LspAttach', {
|
|||
vim.keymap.set("n", "<leader>vca", function() vim.lsp.buf.code_action() end, opts)
|
||||
vim.keymap.set("n", "<leader>vcf", function() vim.lsp.buf.format({ async = true }) end, opts)
|
||||
vim.keymap.set("n", "<leader>vrr", function() vim.lsp.buf.code_references() end, opts)
|
||||
vim.keymap.set("n", "<leader>vrn", function() vim.lsp.buf.code_rename() end, opts)
|
||||
vim.keymap.set("n", "<leader>vrn", function() vim.lsp.buf.rename() end, opts)
|
||||
vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts)
|
||||
end
|
||||
})
|
||||
|
|
|
@ -23,7 +23,9 @@ return {
|
|||
config = function()
|
||||
require('fidget').setup({})
|
||||
require("nvim-autopairs").setup({})
|
||||
require("mason").setup()
|
||||
require("mason").setup({
|
||||
PATH="append",
|
||||
})
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = {
|
||||
'clangd',
|
||||
|
|
Loading…
Reference in a new issue