summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/installer/install.sh21
-rw-r--r--utils/installer/lv-config.example-no-ts.lua20
-rw-r--r--utils/installer/lv-config.example.lua20
3 files changed, 43 insertions, 18 deletions
diff --git a/utils/installer/install.sh b/utils/installer/install.sh
index 0473bbab..36178ae5 100755
--- a/utils/installer/install.sh
+++ b/utils/installer/install.sh
@@ -134,38 +134,30 @@ asktoinstallpip() {
}
installonmac() {
- brew install ripgrep fzf ranger
+ brew install ripgrep fzf
npm install -g tree-sitter-cli
}
-pipinstallueberzug() {
- which pip3 >/dev/null && pip3 install ueberzug || echo "Not installing ueberzug pip not found"
-}
-
installonubuntu() {
- sudo apt install ripgrep fzf ranger
+ sudo apt install ripgrep fzf
sudo apt install libjpeg8-dev zlib1g-dev python-dev python3-dev libxtst-dev
- pip3 install ueberzug
pip3 install neovim-remote
npm install -g tree-sitter-cli
}
installonarch() {
- sudo pacman -S ripgrep fzf ranger
- which yay >/dev/null && yay -S python-ueberzug-git || pipinstallueberzug
+ sudo pacman -S ripgrep fzf
pip3 install neovim-remote
npm install -g tree-sitter-cli
}
installonfedora() {
sudo dnf groupinstall "X Software Development"
- sudo dnf install -y fzf ripgrep ranger
- pip3 install wheel ueberzug
+ sudo dnf install -y fzf ripgrep
}
installongentoo() {
- sudo emerge -avn sys-apps/ripgrep app-shells/fzf app-misc/ranger dev-python/neovim-remote virtual/jpeg sys-libs/zlib
- pipinstallueberzug
+ sudo emerge -avn sys-apps/ripgrep app-shells/fzf dev-python/neovim-remote virtual/jpeg sys-libs/zlib
npm install -g tree-sitter-cli
}
@@ -217,7 +209,4 @@ else
fi
echo "I recommend you also install and activate a font from here: https://github.com/ryanoasis/nerd-fonts"
-
-# echo "I also recommend you add 'set preview_images_method ueberzug' to ~/.config/ranger/rc.conf"
-
# echo 'export PATH=/home/$USER/.config/lunarvim/utils/bin:$PATH appending to zshrc/bashrc'
diff --git a/utils/installer/lv-config.example-no-ts.lua b/utils/installer/lv-config.example-no-ts.lua
index ab544a35..d52c61bc 100644
--- a/utils/installer/lv-config.example-no-ts.lua
+++ b/utils/installer/lv-config.example-no-ts.lua
@@ -16,7 +16,25 @@ O.completion.autocomplete = true
O.colorscheme = "spacegray"
O.default_options.wrap = true
O.default_options.timeoutlen = 100
-O.leader_key = " "
+-- keymappings
+O.keys.leader_key = "space"
+-- overwrite the key-mappings provided by LunarVim for any mode, or leave it empty to keep them
+-- O.keys.normal_mode = {
+-- Page down/up
+-- {'[d', '<PageUp>'},
+-- {']d', '<PageDown>'},
+--
+-- Navigate buffers
+-- {'<Tab>', ':bnext<CR>'},
+-- {'<S-Tab>', ':bprevious<CR>'},
+-- }
+-- if you just want to augment the existing ones then use the utility function
+-- require("lv-utils").add_keymap_insert_mode({ silent = true }, {
+-- { "<C-s>", ":w<cr>" },
+-- { "<C-c>", "<ESC>" },
+-- })
+-- you can also use the native vim way directly
+-- vim.api.nvim_set_keymap("i", "<C-Space>", "compe#complete()", { noremap = true, silent = true, expr = true })
-- TODO: User Config for predefined plugins
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua
index 1ca556b2..0e1a4a26 100644
--- a/utils/installer/lv-config.example.lua
+++ b/utils/installer/lv-config.example.lua
@@ -16,7 +16,25 @@ O.completion.autocomplete = true
O.colorscheme = "spacegray"
O.default_options.wrap = true
O.default_options.timeoutlen = 100
-O.leader_key = " "
+-- keymappings
+O.keys.leader_key = "space"
+-- overwrite the key-mappings provided by LunarVim for any mode, or leave it empty to keep them
+-- O.keys.normal_mode = {
+-- Page down/up
+-- {'[d', '<PageUp>'},
+-- {']d', '<PageDown>'},
+--
+-- Navigate buffers
+-- {'<Tab>', ':bnext<CR>'},
+-- {'<S-Tab>', ':bprevious<CR>'},
+-- }
+-- if you just want to augment the existing ones then use the utility function
+-- require("lv-utils").add_keymap_insert_mode({ silent = true }, {
+-- { "<C-s>", ":w<cr>" },
+-- { "<C-c>", "<ESC>" },
+-- })
+-- you can also use the native vim way directly
+-- vim.api.nvim_set_keymap("i", "<C-Space>", "compe#complete()", { noremap = true, silent = true, expr = true })
-- TODO: User Config for predefined plugins
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile