From 741ff3aa70336abb6c76ee4c49815ae589a1b852 Mon Sep 17 00:00:00 2001 From: Joshua Davis <114495200+joshryandavis@users.noreply.github.com> Date: Fri, 19 Jan 2024 15:12:29 +0000 Subject: [PATCH] fix: on_attach deprecated, replace with lsp.on_attach (#45) --- lua/plugins/example.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index f84ebdc..6859c0e 100644 --- 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", "co", "TypescriptOrganizeImports", { buffer = buffer, desc = "Organize Imports" }) vim.keymap.set("n", "cR", "TypescriptRenameFile", { desc = "Rename File", buffer = buffer })