From acd3a3e9fcc10dbb16e604e4de2b8eab90e9bd2b Mon Sep 17 00:00:00 2001 From: MasterGordon Date: Wed, 7 Aug 2024 17:21:52 +0200 Subject: [PATCH] removed org imports --- lua/plugins/formatter.lua | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/lua/plugins/formatter.lua b/lua/plugins/formatter.lua index 6d7c0f8..ec12171 100644 --- a/lua/plugins/formatter.lua +++ b/lua/plugins/formatter.lua @@ -96,22 +96,11 @@ vim.api.nvim_create_autocmd( } ) -local function organize_imports() - local params = { - command = "typescript.organizeImports", - arguments = {vim.api.nvim_buf_get_name(0)}, - title = "" - } - vim.lsp.buf.execute_command(params) -end -local organizeImportsGrp = vim.api.nvim_create_augroup("OrgImports", {clear = true}) -vim.api.nvim_create_autocmd( - "BufWritePre", - { - pattern = "*.ts,*.tsx", - callback = function(ev) - organize_imports() - end, - group = formatGrp - } -) +-- local function organize_imports() +-- local params = { +-- command = "typescript.organizeImports", +-- arguments = {vim.api.nvim_buf_get_name(0)}, +-- title = "" +-- } +-- vim.lsp.buf.execute_command(params) +-- end