From: Joshua Davis <114495200+joshryandavis@users.noreply.github.com> Date: Fri, 19 Jan 2024 15:12:29 +0000 (+0000) Subject: fix: on_attach deprecated, replace with lsp.on_attach (#45) X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=741ff3aa70336abb6c76ee4c49815ae589a1b852;p=nvim-config.git fix: on_attach deprecated, replace with lsp.on_attach (#45) --- 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 })