From 84e499aa38f661be5ea54a6bf7b0cbbf987ec9ff Mon Sep 17 00:00:00 2001 From: Bruno Gava Guerra Date: Sat, 2 Apr 2022 07:07:48 -0300 Subject: fix(installer/pwsh): fixes some details on installer and uninstaller (#2404) --- utils/installer/install.ps1 | 2 +- utils/installer/uninstall.ps1 | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'utils/installer') diff --git a/utils/installer/install.ps1 b/utils/installer/install.ps1 index bef15ac2..182e7bac 100644 --- a/utils/installer/install.ps1 +++ b/utils/installer/install.ps1 @@ -267,7 +267,7 @@ function create_alias { return } - Add-Content -Path $PROFILE -Value $("Set-Alias lvim $lvim_bin") + Add-Content -Path $PROFILE -Value $("`r`nSet-Alias lvim $lvim_bin") Write-Host 'To use the new alias in this window reload your profile with: `. $PROFILE`' -ForegroundColor Green } diff --git a/utils/installer/uninstall.ps1 b/utils/installer/uninstall.ps1 index 4d6ffa5d..2de21037 100644 --- a/utils/installer/uninstall.ps1 +++ b/utils/installer/uninstall.ps1 @@ -49,9 +49,15 @@ function remove_lvim_dirs($force) { if (Test-Path $dir) { Remove-Item -Force -Recurse $dir } - if ($force -eq $true -and (Test-Path "$dir.bak" -or Test-Path "$dir.old")) { - Remove-Item -Force -Recurse "$dir.{bak,old}" + if ($force -eq $true) { + if (Test-Path "$dir.bak") { + Remove-Item -Force -Recurse "$dir.bak" + } + if (Test-Path "$dir.old") { + Remove-Item -Force -Recurse "$dir.old" + } } } } +main($args) \ No newline at end of file -- cgit v1.2.3 From 8a7bd81237cafeac9809ace8b154a82a78c35207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20L=C3=B3pez?= Date: Sat, 2 Apr 2022 13:56:13 +0200 Subject: fix: update deprecated methods in example configuration for trouble.nvim (#2416) --- utils/installer/config.example.lua | 4 ++-- utils/installer/config_win.example.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'utils/installer') diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua index 4ea98fbe..409235a5 100644 --- a/utils/installer/config.example.lua +++ b/utils/installer/config.example.lua @@ -46,10 +46,10 @@ lvim.keys.normal_mode[""] = ":w" -- name = "+Trouble", -- r = { "Trouble lsp_references", "References" }, -- f = { "Trouble lsp_definitions", "Definitions" }, --- d = { "Trouble lsp_document_diagnostics", "Diagnostics" }, +-- d = { "Trouble document_diagnostics", "Diagnostics" }, -- q = { "Trouble quickfix", "QuickFix" }, -- l = { "Trouble loclist", "LocationList" }, --- w = { "Trouble lsp_workspace_diagnostics", "Diagnostics" }, +-- w = { "Trouble workspace_diagnostics", "Wordspace Diagnostics" }, -- } -- TODO: User Config for predefined plugins diff --git a/utils/installer/config_win.example.lua b/utils/installer/config_win.example.lua index 9c9888a8..ecfbd1e4 100644 --- a/utils/installer/config_win.example.lua +++ b/utils/installer/config_win.example.lua @@ -63,10 +63,10 @@ lvim.keys.normal_mode[""] = ":w" -- name = "+Trouble", -- r = { "Trouble lsp_references", "References" }, -- f = { "Trouble lsp_definitions", "Definitions" }, --- d = { "Trouble lsp_document_diagnostics", "Diagnostics" }, +-- d = { "Trouble document_diagnostics", "Diagnostics" }, -- q = { "Trouble quickfix", "QuickFix" }, -- l = { "Trouble loclist", "LocationList" }, --- w = { "Trouble lsp_workspace_diagnostics", "Diagnostics" }, +-- w = { "Trouble workspace_diagnostics", "Workspace Diagnostics" }, -- } -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile -- cgit v1.2.3