From 7fc0d0f72b9fbe7bc94cc2a9a30dd9c22b9d8ce9 Mon Sep 17 00:00:00 2001 From: Philipp Bokatius Date: Tue, 9 Aug 2022 13:54:25 +0200 Subject: fix(installer): create profile.ps1 if nonexistent (#2810) --- utils/installer/install.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils') diff --git a/utils/installer/install.ps1 b/utils/installer/install.ps1 index dcfa47f4..320e377c 100644 --- a/utils/installer/install.ps1 +++ b/utils/installer/install.ps1 @@ -264,6 +264,13 @@ function create_alias { return } + try { + Get-Content $PROFILE -ErrorAction Stop + } + catch { + New-Item -Path $PROFILE -ItemType "file" -Force + } + 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 -- cgit v1.2.3 From 63696c1425fb264c649cf202bc02f8edb34e0445 Mon Sep 17 00:00:00 2001 From: Gabriel Kwong Date: Tue, 9 Aug 2022 05:02:38 -0700 Subject: docs(windows): update example config for nvim-tree (#2766) --- utils/installer/config_win.example.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'utils') diff --git a/utils/installer/config_win.example.lua b/utils/installer/config_win.example.lua index cb110664..c48335b0 100644 --- a/utils/installer/config_win.example.lua +++ b/utils/installer/config_win.example.lua @@ -79,14 +79,14 @@ lvim.builtin.terminal.active = false -- lvim.builtin.terminal.shell = "pwsh.exe -NoLogo" -- nvim-tree has some performance issues on windows, see kyazdani42/nvim-tree.lua#549 -lvim.builtin.nvimtree.setup.diagnostics.enable = false -lvim.builtin.nvimtree.setup.filters.custom = false -lvim.builtin.nvimtree.setup.git.enable = false -lvim.builtin.nvimtree.setup.update_cwd = false -lvim.builtin.nvimtree.setup.update_focused_file.update_cwd = false +lvim.builtin.nvimtree.setup.diagnostics.enable = nil +lvim.builtin.nvimtree.setup.filters.custom = nil +lvim.builtin.nvimtree.setup.git.enable = nil +lvim.builtin.nvimtree.setup.update_cwd = nil +lvim.builtin.nvimtree.setup.update_focused_file.update_cwd = nil lvim.builtin.nvimtree.setup.view.side = "left" -lvim.builtin.nvimtree.setup.renderer.highlight_git = false -lvim.builtin.nvimtree.setup.renderer.icons.show.git = false +lvim.builtin.nvimtree.setup.renderer.highlight_git = nil +lvim.builtin.nvimtree.setup.renderer.icons.show.git = nil -- if you don't want all the parsers change this to a table of the ones you want lvim.builtin.treesitter.ensure_installed = { -- cgit v1.2.3 From 45f9825d1e666890ed37baf15a14707ae40e5cff Mon Sep 17 00:00:00 2001 From: Benedikt Schnatterbeck <48836135+benediktms@users.noreply.github.com> Date: Fri, 12 Aug 2022 17:01:11 +0100 Subject: refactor(keymaps)!: don't hijack H/L by default (#2874) --- utils/installer/config.example.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils') diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua index 036b8ec2..5f950cb5 100644 --- a/utils/installer/config.example.lua +++ b/utils/installer/config.example.lua @@ -19,6 +19,8 @@ lvim.colorscheme = "onedarker" lvim.leader = "space" -- add your own keymapping lvim.keys.normal_mode[""] = ":w" +-- lvim.keys.normal_mode[""] = ":BufferLineCycleNext" +-- lvim.keys.normal_mode[""] = ":BufferLineCyclePrev" -- unmap a default keymapping -- vim.keymap.del("n", "") -- override a default keymapping -- cgit v1.2.3 From 9d9d497e077f51933ff5264519bb33cc3c7efbbd Mon Sep 17 00:00:00 2001 From: Opa Kholis Majid Date: Fri, 19 Aug 2022 16:48:01 +0700 Subject: docs(windows): update example config (#2919) --- utils/installer/config.example.lua | 2 +- utils/installer/config_win.example.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua index 5f950cb5..d99e868d 100644 --- a/utils/installer/config.example.lua +++ b/utils/installer/config.example.lua @@ -53,7 +53,7 @@ lvim.keys.normal_mode[""] = ":w" -- d = { "Trouble document_diagnostics", "Diagnostics" }, -- q = { "Trouble quickfix", "QuickFix" }, -- l = { "Trouble loclist", "LocationList" }, --- w = { "Trouble workspace_diagnostics", "Wordspace Diagnostics" }, +-- w = { "Trouble workspace_diagnostics", "Workspace Diagnostics" }, -- } -- TODO: User Config for predefined plugins diff --git a/utils/installer/config_win.example.lua b/utils/installer/config_win.example.lua index c48335b0..7353724a 100644 --- a/utils/installer/config_win.example.lua +++ b/utils/installer/config_win.example.lua @@ -36,6 +36,8 @@ lvim.colorscheme = "onedarker" lvim.leader = "space" -- add your own keymapping lvim.keys.normal_mode[""] = ":w" +-- lvim.keys.normal_mode[""] = ":BufferLineCycleNext" +-- lvim.keys.normal_mode[""] = ":BufferLineCyclePrev" -- unmap a default keymapping -- vim.keymap.del("n", "") -- override a default keymapping -- cgit v1.2.3 From 7df4773b0bc293d50fe9979505db8db246a61607 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 19 Aug 2022 06:01:19 -0400 Subject: docs: fix automatic_servers_installation example (#2918) --- utils/installer/config.example.lua | 2 +- utils/installer/config_win.example.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua index d99e868d..65662794 100644 --- a/utils/installer/config.example.lua +++ b/utils/installer/config.example.lua @@ -101,7 +101,7 @@ lvim.builtin.treesitter.highlight.enabled = true -- } -- ---@usage disable automatic installation of servers --- lvim.lsp.automatic_servers_installation = false +-- lvim.lsp.installer.setup.automatic_installation = false -- ---configure a server manually. !!Requires `:LvimCacheReset` to take effect!! -- ---see the full default list `:lua print(vim.inspect(lvim.lsp.automatic_configuration.skipped_servers))` diff --git a/utils/installer/config_win.example.lua b/utils/installer/config_win.example.lua index 7353724a..6e9a1ba0 100644 --- a/utils/installer/config_win.example.lua +++ b/utils/installer/config_win.example.lua @@ -116,7 +116,7 @@ lvim.builtin.treesitter.highlight.enabled = true -- } -- ---@usage disable automatic installation of servers --- lvim.lsp.automatic_servers_installation = false +-- lvim.lsp.installer.setup.automatic_installation = false -- ---configure a server manually. !!Requires `:LvimCacheReset` to take effect!! -- ---see the full default list `:lua print(vim.inspect(lvim.lsp.automatic_configuration.skipped_servers))` -- cgit v1.2.3 From 08b5e99f53fc5170d35de3f474c7df5ae1fac62f Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Fri, 19 Aug 2022 12:02:15 +0200 Subject: feat(installer): handle INSTALL_PREFIX not on PATH (#2912) --- utils/installer/install.sh | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to 'utils') diff --git a/utils/installer/install.sh b/utils/installer/install.sh index dc342d12..620d46f5 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -26,6 +26,7 @@ declare ARGS_LOCAL=0 declare ARGS_OVERWRITE=0 declare ARGS_INSTALL_DEPENDENCIES=1 declare INTERACTIVE_MODE=1 +declare ADDITIONAL_WARNINGS="" declare -a __lvim_dirs=( "$LUNARVIM_CONFIG_DIR" @@ -148,6 +149,7 @@ function main() { setup_lvim + msg "$ADDITIONAL_WARNINGS" msg "Thank you for installing LunarVim!!" echo "You can start it by running: $INSTALL_PREFIX/bin/lvim" echo "Do not forget to use a font with glyphs (icons) support [https://github.com/ryanoasis/nerd-fonts]" @@ -226,7 +228,25 @@ function validate_lunarvim_files() { fi } +function validate_install_prefix() { + local prefix="$1" + case $PATH in + *"$prefix/bin"*) + return + ;; + esac + local profile="$HOME/.profile" + test -z "$ZSH_VERSION" && profile="$HOME/.zshenv" + ADDITIONAL_WARNINGS="[WARN] the folder $prefix/bin is not on PATH, consider adding 'export PATH=$prefix/bin:\$PATH' to your $profile" + + # avoid problems when calling any verify_* function + export PATH="$prefix/bin:$PATH" +} + function check_system_deps() { + + validate_install_prefix "$INSTALL_PREFIX" + if ! command -v git &>/dev/null; then print_missing_dep_msg "git" exit 1 @@ -279,7 +299,6 @@ function __validate_node_installation() { fi if [ ! -d "$manager_home" ] || [ ! -w "$manager_home" ]; then - echo "[ERROR] Unable to install using [$pkg_manager] without administrative privileges." return 1 fi @@ -294,21 +313,21 @@ function install_nodejs_deps() { return fi done - print_missing_dep_msg "${pkg_managers[@]}" - exit 1 + echo "[WARN]: skipping installing optional nodejs dependencies due to insufficient permissions." + echo "check how to solve it: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally" } function install_python_deps() { echo "Verifying that pip is available.." - if ! python3 -m ensurepip &>/dev/null; then + if ! python3 -m ensurepip >/dev/null; then if ! python3 -m pip --version &>/dev/null; then - print_missing_dep_msg "pip" - exit 1 + echo "[WARN]: skipping installing optional python dependencies" + return 1 fi fi echo "Installing with pip.." for dep in "${__pip_deps[@]}"; do - python3 -m pip install --user "$dep" + python3 -m pip install --user "$dep" || return 1 done echo "All Python dependencies are successfully installed" } -- cgit v1.2.3 From 0fc1e423097485035bd6c1f19d64ce8424387ca9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 20 Aug 2022 11:06:34 +0200 Subject: chore: bump plugins version (#2895) --- utils/ci/generate_new_lockfile.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/ci/generate_new_lockfile.lua b/utils/ci/generate_new_lockfile.lua index fd10775c..8eef5184 100644 --- a/utils/ci/generate_new_lockfile.lua +++ b/utils/ci/generate_new_lockfile.lua @@ -70,6 +70,7 @@ local function write_lockfile(verbose) name = name, url = url, commit = commit, + branch = plugin.branch or "HEAD", }) end @@ -90,7 +91,7 @@ local function write_lockfile(verbose) } end - local handle = call_proc("git", { args = { "ls-remote", entry.url, "HEAD" } }, on_done) + local handle = call_proc("git", { args = { "ls-remote", entry.url, entry.branch } }, on_done) assert(handle) table.insert(active_jobs, handle) end -- cgit v1.2.3