commit 741ff3aa70336abb6c76ee4c49815ae589a1b852
parent 92b2689e6f11004e65376e84912e61b9e6c58827
Author: Joshua Davis <114495200+joshryandavis@users.noreply.github.com>
Date: Fri, 19 Jan 2024 15:12:29 +0000
fix: on_attach deprecated, replace with lsp.on_attach (#45)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua
@@ -102,7 +102,7 @@ return {
dependencies = {
"jose-elias-alvarez/typescript.nvim",
init = function()
- require("lazyvim.util").on_attach(function(_, buffer)
+ require("lazyvim.util").lsp.on_attach(function(_, buffer)
-- stylua: ignore
vim.keymap.set( "n", "<leader>co", "TypescriptOrganizeImports", { buffer = buffer, desc = "Organize Imports" })
vim.keymap.set("n", "<leader>cR", "TypescriptRenameFile", { desc = "Rename File", buffer = buffer })