mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-02 21:44:37 +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
|
@ -25,11 +25,6 @@ function M.on_attach(client, buffer)
|
|||
self:map("<leader>cf", format, { desc = "Format Document", has = "documentFormatting" })
|
||||
self:map("<leader>cf", format, { desc = "Format Range", mode = "v", has = "documentRangeFormatting" })
|
||||
self:map("<leader>cr", M.rename, { expr = true, desc = "Rename", has = "rename" })
|
||||
|
||||
if client.name == "tsserver" and pcall(require, "typescript") then
|
||||
self:map("<leader>co", "TypescriptOrganizeImports", { desc = "Organize Imports" })
|
||||
self:map("<leader>cR", "TypescriptRenameFile", { desc = "Rename File" })
|
||||
end
|
||||
end
|
||||
|
||||
function M.new(client, buffer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue