From 52b98c26c83324cd9bf4c0e562ab5f4fe060b06b Mon Sep 17 00:00:00 2001 From: Techno Duck Date: Sat, 17 Feb 2024 23:01:12 -0500 Subject: [PATCH] changed rename function name for vim.lsp (it was renamed) --- lua/technoduck/init.lua | 2 +- lua/technoduck/lazy_plugins/lsp.lua | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/technoduck/init.lua b/lua/technoduck/init.lua index 41d7322..86b8e4a 100644 --- a/lua/technoduck/init.lua +++ b/lua/technoduck/init.lua @@ -18,7 +18,7 @@ autocmd('LspAttach', { vim.keymap.set("n", "vca", function() vim.lsp.buf.code_action() end, opts) vim.keymap.set("n", "vcf", function() vim.lsp.buf.format({ async = true }) end, opts) vim.keymap.set("n", "vrr", function() vim.lsp.buf.code_references() end, opts) - vim.keymap.set("n", "vrn", function() vim.lsp.buf.code_rename() end, opts) + vim.keymap.set("n", "vrn", function() vim.lsp.buf.rename() end, opts) vim.keymap.set("i", "", function() vim.lsp.buf.signature_help() end, opts) end }) diff --git a/lua/technoduck/lazy_plugins/lsp.lua b/lua/technoduck/lazy_plugins/lsp.lua index b51dc10..cba6891 100644 --- a/lua/technoduck/lazy_plugins/lsp.lua +++ b/lua/technoduck/lazy_plugins/lsp.lua @@ -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',