clean up neovim

This commit is contained in:
Reinaldy Rafli 2021-07-28 12:35:47 +07:00
parent 906fa6be6f
commit 5a9a4ba562
3 changed files with 44 additions and 2 deletions

34
nvim/init.vim Normal file
View File

@ -0,0 +1,34 @@
call plug#begin('~/.config/nvim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'haishanh/night-owl.vim'
call plug#end()
set autoread
set textwidth=120
set ignorecase " case insensitive searching
set smartcase " case-sensitive if expresson contains a capital letter
set hlsearch " highlight search results
set incsearch " set incremental search, like modern browsers
set mouse=a
set title " set terminal title
set number " show line numbers
set autoindent " automatically set indent of new line
""""" enable 24bit true color
" If you have vim >=8.0 or Neovim >= 0.1.5
if (has("termguicolors"))
set termguicolors
endif
""""" enable the theme
syntax enable
colorscheme night-owl

View File

@ -14,6 +14,8 @@ function install () {
sudo rm nvim.appimage.sha256sum sudo rm nvim.appimage.sha256sum
sudo rm -rf nvim.appimage sudo rm -rf nvim.appimage
sudo rm -rf squashfs-root sudo rm -rf squashfs-root
mkdir $HOME/.config/nvim
ln -s $HOME/dotfiles/nvim/init.vim $HOME/.config/nvim/init.vim
} }
function uninstall () { function uninstall () {

View File

@ -17,8 +17,14 @@ function install_bat () {
} }
if [ "$1" == "install" ]; then if [ "$1" == "install" ]; then
if [ "$2" == "bat" ]; then
install_bat
elif [ "$2" == "exa" ]; then
install_exa
else
install_exa install_exa
install_bat install_bat
fi
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
uninstall uninstall
else else