fix: on_attach deprecated, replace with lsp.on_attach (#45)

This commit is contained in:
Joshua Davis 2024-01-19 15:12:29 +00:00 committed by GitHub
parent 92b2689e6f
commit 741ff3aa70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,7 @@ return {
dependencies = { dependencies = {
"jose-elias-alvarez/typescript.nvim", "jose-elias-alvarez/typescript.nvim",
init = function() init = function()
require("lazyvim.util").on_attach(function(_, buffer) require("lazyvim.util").lsp.on_attach(function(_, buffer)
-- stylua: ignore -- stylua: ignore
vim.keymap.set( "n", "<leader>co", "TypescriptOrganizeImports", { buffer = buffer, desc = "Organize Imports" }) vim.keymap.set( "n", "<leader>co", "TypescriptOrganizeImports", { buffer = buffer, desc = "Organize Imports" })
vim.keymap.set("n", "<leader>cR", "TypescriptRenameFile", { desc = "Rename File", buffer = buffer }) vim.keymap.set("n", "<leader>cR", "TypescriptRenameFile", { desc = "Rename File", buffer = buffer })