mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-07 16:04:35 +02:00
refactor(lsp): move typescript keymaps to typescript
This commit is contained in:
parent
a44054fc62
commit
26a3d8c1f3
2 changed files with 10 additions and 6 deletions
|
@ -11,7 +11,16 @@ return {
|
|||
-- correctly setup lspconfig
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = { "jose-elias-alvarez/typescript.nvim" },
|
||||
dependencies = {
|
||||
"jose-elias-alvarez/typescript.nvim",
|
||||
init = function()
|
||||
require("lazyvim.util").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 })
|
||||
end)
|
||||
end,
|
||||
},
|
||||
opts = {
|
||||
-- make sure mason installs the server
|
||||
servers = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue