summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/shell_command_selectors.lua
diff options
context:
space:
mode:
authorkiyan <yazdani.kiyan@protonmail.com>2021-02-22 23:01:12 +0100
committerKiyan <yazdani.kiyan@protonmail.com>2021-02-27 13:36:33 +0100
commit9d57216c0d94c9823c0d971caeaffb3b261e527e (patch)
tree987e0019a615dbf2cb1c7f7338194152d8032fd0 /lua/nvim-treesitter/shell_command_selectors.lua
parent91a89aa408c19572bd7a41caa8ab8666143bec8c (diff)
chore: remove useless code and indent files
Diffstat (limited to 'lua/nvim-treesitter/shell_command_selectors.lua')
-rw-r--r--lua/nvim-treesitter/shell_command_selectors.lua22
1 files changed, 11 insertions, 11 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua
index 7b487513..53263228 100644
--- a/lua/nvim-treesitter/shell_command_selectors.lua
+++ b/lua/nvim-treesitter/shell_command_selectors.lua
@@ -9,7 +9,7 @@ function M.select_mkdir_cmd(directory, cwd, info_msg)
cmd = 'cmd',
opts = {
args = { '/C', 'mkdir', directory},
- cwd = cwd,
+ cwd = cwd,
},
info = info_msg,
err = "Could not create "..directory,
@@ -19,7 +19,7 @@ function M.select_mkdir_cmd(directory, cwd, info_msg)
cmd = 'mkdir',
opts = {
args = { directory },
- cwd = cwd,
+ cwd = cwd,
},
info = info_msg,
err = "Could not create "..directory,
@@ -55,13 +55,13 @@ end
function M.select_compiler_args(repo)
local args = {
- '-o',
- 'parser.so',
- '-I./src',
- repo.files,
- '-shared',
- '-Os',
- '-lstdc++',
+ '-o',
+ 'parser.so',
+ '-I./src',
+ repo.files,
+ '-shared',
+ '-Os',
+ '-lstdc++',
}
if fn.has('win32') == 0 then
table.insert(args, '-fPIC')
@@ -146,8 +146,8 @@ function M.select_download_commands(repo, project_name, cache_folder, revision)
},
M.select_rm_file_cmd(cache_folder..path_sep..project_name..".tar.gz"),
M.select_mv_cmd(utils.join_path(project_name..'-tmp', repo.url:match('[^/]-$')..'-'..revision),
- project_name,
- cache_folder),
+ project_name,
+ cache_folder),
M.select_install_rm_cmd(cache_folder, project_name..'-tmp')
}
else