some fixes
This commit is contained in:
parent
0ea2c241dc
commit
c87784dc14
@ -50,7 +50,8 @@ g.NERDTreeMinimalUI = true
|
|||||||
g.NERDTreeDirArrows = true
|
g.NERDTreeDirArrows = true
|
||||||
g.hidden = true
|
g.hidden = true
|
||||||
g.material_theme_style = "ocean_community"
|
g.material_theme_style = "ocean_community"
|
||||||
if u.has_plugin("material")
|
|
||||||
|
if u.has_plugin("material") then
|
||||||
vim.cmd [[colorscheme material]]
|
vim.cmd [[colorscheme material]]
|
||||||
end
|
end
|
||||||
-- Remove background color
|
-- Remove background color
|
||||||
@ -62,15 +63,15 @@ g.mapleader = " "
|
|||||||
require "keymappings"
|
require "keymappings"
|
||||||
|
|
||||||
-- Treesitter config
|
-- Treesitter config
|
||||||
if u.has_plugin("nvim-treesitter")
|
if u.has_plugin("nvim-treesitter") then
|
||||||
require "nvim-treesitter.configs".setup {ensure_installed = "maintained", highlight = {enable = true}}
|
require "nvim-treesitter.configs".setup {ensure_installed = "maintained", highlight = {enable = true}}
|
||||||
end
|
end
|
||||||
-- Toggleterm / Lazygit setup
|
-- Toggleterm / Lazygit setup
|
||||||
if u.has_plugin("toggleterm")
|
if u.has_plugin("toggleterm") then
|
||||||
require "lazy-git"
|
require "lazy-git"
|
||||||
end
|
end
|
||||||
-- Autocommands
|
-- Autocommands
|
||||||
if u.has_plugin("NERDTree")
|
if u.has_plugin("NERDTree") then
|
||||||
u.create_augroup(
|
u.create_augroup(
|
||||||
{
|
{
|
||||||
{"VimEnter", "*", "if (@% == '') | NERDTree | endif"},
|
{"VimEnter", "*", "if (@% == '') | NERDTree | endif"},
|
||||||
@ -81,7 +82,7 @@ if u.has_plugin("NERDTree")
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Autocompletion Setup
|
-- Autocompletion Setup
|
||||||
if u.has_plugin("compe")
|
if u.has_plugin("compe") then
|
||||||
require "autocomplete"
|
require "autocomplete"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -8,8 +8,5 @@ mkdir -p $HOME/.config/nvim
|
|||||||
ln -s "$HOME/.dotfiles/configs/init.lua" "$HOME/.config/nvim/init.lua"
|
ln -s "$HOME/.dotfiles/configs/init.lua" "$HOME/.config/nvim/init.lua"
|
||||||
ln -s "$HOME/.dotfiles/configs/lua" "$HOME/.config/nvim/lua"
|
ln -s "$HOME/.dotfiles/configs/lua" "$HOME/.config/nvim/lua"
|
||||||
|
|
||||||
echo " - installing paq-nvim"
|
|
||||||
sh -c 'git clone --depth=1 https://github.com/savq/paq-nvim.git "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/paqs/start/paq-nvim'
|
|
||||||
|
|
||||||
echo " - installing vim plugins"
|
echo " - installing vim plugins"
|
||||||
nvim --headless +PaqSync +qa
|
nvim --headless +PaqSync +qa
|
||||||
|
16
setup.sh
16
setup.sh
@ -43,8 +43,20 @@ echo "-- what do you want to install? --"
|
|||||||
# 6 - ZSH
|
# 6 - ZSH
|
||||||
# 7 - ZSH
|
# 7 - ZSH
|
||||||
|
|
||||||
OPTIONS_VALUES=("ZSH" "NVIM" "ASDF" "DRNV" "NODE" "GO" "PYTH" "DENO" "HUGO" "RUST")
|
OPTIONS_VALUES=(
|
||||||
OPTIONS_LABELS=("zsh + oh-my-zsh" "Neovim" "Asdf" "Direnv" "NodeJS" "Golang" "Python" "Deno" "Hugo" "Rust")
|
"ZSH"
|
||||||
|
"NVIM"
|
||||||
|
"ASDF"
|
||||||
|
"DRNV"
|
||||||
|
"NODE"
|
||||||
|
"GO"
|
||||||
|
"PYTH"
|
||||||
|
"DENO"
|
||||||
|
"HUGO"
|
||||||
|
"RUST"
|
||||||
|
)
|
||||||
|
|
||||||
|
OPTIONS_LABELS=("zsh + oh-my-zsh" "Neovim (Requires asdf)" "asdf" "Direnv" "NodeJS" "Golang" "Python" "Deno" "Hugo" "Rust")
|
||||||
for i in "${!OPTIONS_VALUES[@]}"; do
|
for i in "${!OPTIONS_VALUES[@]}"; do
|
||||||
OPTIONS_STRING+="${OPTIONS_VALUES[$i]} (${OPTIONS_LABELS[$i]});"
|
OPTIONS_STRING+="${OPTIONS_VALUES[$i]} (${OPTIONS_LABELS[$i]});"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user