fix: on_attach deprecated, replace with lsp.on_attach (#45)
This commit is contained in:
parent
92b2689e6f
commit
741ff3aa70
@ -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 })
|
||||||
|
Loading…
Reference in New Issue
Block a user