removed org imports
This commit is contained in:
parent
2c758c8ecb
commit
acd3a3e9fc
|
|
@ -96,22 +96,11 @@ vim.api.nvim_create_autocmd(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
local function organize_imports()
|
-- local function organize_imports()
|
||||||
local params = {
|
-- local params = {
|
||||||
command = "typescript.organizeImports",
|
-- command = "typescript.organizeImports",
|
||||||
arguments = {vim.api.nvim_buf_get_name(0)},
|
-- arguments = {vim.api.nvim_buf_get_name(0)},
|
||||||
title = ""
|
-- title = ""
|
||||||
}
|
-- }
|
||||||
vim.lsp.buf.execute_command(params)
|
-- vim.lsp.buf.execute_command(params)
|
||||||
end
|
-- 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
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue