Add: nvim & nvchad
This commit is contained in:
parent
1250cbd2ef
commit
82f100058d
4 changed files with 60 additions and 6 deletions
3
bashrc
3
bashrc
|
@ -104,6 +104,7 @@ alias gl="git l"
|
||||||
alias ga="git add"
|
alias ga="git add"
|
||||||
alias gpush="git push"
|
alias gpush="git push"
|
||||||
alias gpull="git pull"
|
alias gpull="git pull"
|
||||||
|
alias gcap="git commit --amend --no-edit && git push -f"
|
||||||
|
|
||||||
# Docker-Compose
|
# Docker-Compose
|
||||||
alias dcu="docker-compose up -d --remove-orphans"
|
alias dcu="docker-compose up -d --remove-orphans"
|
||||||
|
@ -120,6 +121,6 @@ alias kgn="kubectl get nodes -o wide"
|
||||||
alias kgp="kubectl get pods -o wide"
|
alias kgp="kubectl get pods -o wide"
|
||||||
|
|
||||||
# Completions for various tools...
|
# Completions for various tools...
|
||||||
for bin in kubectl helm talosctl ; do
|
for bin in kubectl helm clusterctl talosctl flux ; do
|
||||||
type $bin &>/dev/null && source <($bin completion bash)
|
type $bin &>/dev/null && source <($bin completion bash)
|
||||||
done
|
done
|
||||||
|
|
49
config/nvim/lua/custom/chadrc.lua
Normal file
49
config/nvim/lua/custom/chadrc.lua
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
-- IMPORTANT NOTE : This is the user config, can be edited. Will be preserved if updated with internal updater
|
||||||
|
-- This file is for NvChad options & tools, custom settings are split between here and 'lua/custom/init.lua'
|
||||||
|
|
||||||
|
local M = {}
|
||||||
|
|
||||||
|
-- To use this file, copy the structure of `core/default_config.lua`,
|
||||||
|
-- examples of setting relative number & changing theme:
|
||||||
|
|
||||||
|
M.options = {
|
||||||
|
-- relativenumber = true,
|
||||||
|
smarttab = true
|
||||||
|
}
|
||||||
|
|
||||||
|
M.ui = {
|
||||||
|
theme = "tokyonight"
|
||||||
|
}
|
||||||
|
|
||||||
|
-- NvChad included plugin options & overrides
|
||||||
|
M.plugins = {
|
||||||
|
options = {
|
||||||
|
statusline = {
|
||||||
|
style = "slant",
|
||||||
|
}
|
||||||
|
-- lspconfig = {
|
||||||
|
-- path of file containing setups of different lsps (ex : "custom.plugins.lspconfig"), read the docs for more info
|
||||||
|
-- setup_lspconf = "",
|
||||||
|
-- },
|
||||||
|
},
|
||||||
|
-- To change the Packer `config` of a plugin that comes with NvChad,
|
||||||
|
-- add a table entry below matching the plugin github name
|
||||||
|
-- '-' -> '_', remove any '.lua', '.nvim' extensions
|
||||||
|
-- this string will be called in a `require`
|
||||||
|
-- use "(custom.configs).my_func()" to call a function
|
||||||
|
-- use "custom.blankline" to call a file
|
||||||
|
--default_plugin_config_replace = {},
|
||||||
|
}
|
||||||
|
|
||||||
|
M.mappings = {
|
||||||
|
-- custom = {}, -- custom user mappings
|
||||||
|
|
||||||
|
misc = {
|
||||||
|
cheatsheet = "<leader>ch",
|
||||||
|
line_number_toggle = "<leader>n", -- toggle line number
|
||||||
|
update_nvchad = "<leader>uu",
|
||||||
|
new_tab = "<leader>t",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
return M
|
5
setup.sh
5
setup.sh
|
@ -20,8 +20,11 @@ function linkfiles {
|
||||||
}
|
}
|
||||||
|
|
||||||
linkfiles 'dotfiles/*'
|
linkfiles 'dotfiles/*'
|
||||||
|
|
||||||
|
git clone https://github.com/NvChad/NvChad ~/.config/nvim
|
||||||
|
nvim -c "autocmd User PackerComplete quitall" -c "PackerSync"
|
||||||
linkfiles 'config/*'
|
linkfiles 'config/*'
|
||||||
exit
|
|
||||||
# Install powerline if possible
|
# Install powerline if possible
|
||||||
if which pip3 ; then
|
if which pip3 ; then
|
||||||
pip3 install --user -U -r requirements.txt
|
pip3 install --user -U -r requirements.txt
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
GIT_DIRS=(. ~/.bash-git-prompt ~/.vim/bundle)
|
GIT_DIRS=(. ~/.vim/bundle ~/.config/nvim)
|
||||||
for dir in ${GIT_DIRS[@]} ; do
|
for dir in ${GIT_DIRS[@]} ; do
|
||||||
cd $dir
|
git -C "$dir" git stash
|
||||||
git pull
|
git -C "$dir" pull
|
||||||
cd -
|
git -C "$dir" git stash pop
|
||||||
done
|
done
|
||||||
|
|
||||||
|
nvim -c "autocmd User PackerComplete quitall" -c "PackerSync"
|
||||||
vim -c ":PluginUpdate" -c ":q" -c ":q"
|
vim -c ":PluginUpdate" -c ":q" -c ":q"
|
||||||
|
|
Loading…
Reference in a new issue