aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/extras
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-08-14 23:19:23 +0200
committerWilliam Boman <william@redwill.se>2021-08-15 00:47:15 +0200
commitd8f4f30463fcfc4b8b60811dbe195aba86917966 (patch)
treec6a004cb1a08921184f7b5d85721e9144f20aa00 /lua/nvim-lsp-installer/extras
parentadd `env` option to shell.raw, and other cosmetic improvements (diff)
downloadmason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar
mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.gz
mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.bz2
mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.lz
mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.xz
mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.zst
mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.zip
stylua
Diffstat (limited to 'lua/nvim-lsp-installer/extras')
-rw-r--r--lua/nvim-lsp-installer/extras/tsserver.lua34
1 files changed, 13 insertions, 21 deletions
diff --git a/lua/nvim-lsp-installer/extras/tsserver.lua b/lua/nvim-lsp-installer/extras/tsserver.lua
index 8f724a75..e8a85227 100644
--- a/lua/nvim-lsp-installer/extras/tsserver.lua
+++ b/lua/nvim-lsp-installer/extras/tsserver.lua
@@ -1,4 +1,4 @@
-local extras = require'nvim-lsp-installer.extras.utils'
+local extras = require "nvim-lsp-installer.extras.utils"
local M = {}
@@ -6,32 +6,24 @@ function M.rename_file(old, new)
local old_uri = vim.uri_from_fname(old)
local new_uri = vim.uri_from_fname(new)
- extras.send_client_request(
- 'tsserver',
- 'workspace/executeCommand',
- {
- command = '_typescript.applyRenameFile',
- arguments = {
- {
- sourceUri = old_uri,
- targetUri = new_uri,
- },
+ extras.send_client_request("tsserver", "workspace/executeCommand", {
+ command = "_typescript.applyRenameFile",
+ arguments = {
+ {
+ sourceUri = old_uri,
+ targetUri = new_uri,
},
- }
- )
+ },
+ })
end
function M.organize_imports(bufname)
bufname = bufname or vim.api.nvim_buf_get_name(0)
- extras.send_client_request(
- 'tsserver',
- 'workspace/executeCommand',
- {
- command = '_typescript.organizeImports',
- arguments = {bufname},
- }
- )
+ extras.send_client_request("tsserver", "workspace/executeCommand", {
+ command = "_typescript.organizeImports",
+ arguments = { bufname },
+ })
end
return M