changed rename function name for vim.lsp (it was renamed)

This commit is contained in:
Techno Duck 2024-02-17 23:01:12 -05:00
parent 29df35207a
commit 52b98c26c8
Signed by: technoduck
GPG key ID: 0A4965958C8B62AD
2 changed files with 4 additions and 2 deletions

View file

@ -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>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>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>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) vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts)
end end
}) })

View file

@ -23,7 +23,9 @@ return {
config = function() config = function()
require('fidget').setup({}) require('fidget').setup({})
require("nvim-autopairs").setup({}) require("nvim-autopairs").setup({})
require("mason").setup() require("mason").setup({
PATH="append",
})
require("mason-lspconfig").setup({ require("mason-lspconfig").setup({
ensure_installed = { ensure_installed = {
'clangd', 'clangd',