diff --git a/nvim/init.vim b/nvim/init.vim new file mode 100644 index 0000000..5a963c3 --- /dev/null +++ b/nvim/init.vim @@ -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 + diff --git a/scripts/neovim.sh b/scripts/neovim.sh index f42f398..e219358 100755 --- a/scripts/neovim.sh +++ b/scripts/neovim.sh @@ -14,6 +14,8 @@ function install () { sudo rm nvim.appimage.sha256sum sudo rm -rf nvim.appimage sudo rm -rf squashfs-root + mkdir $HOME/.config/nvim + ln -s $HOME/dotfiles/nvim/init.vim $HOME/.config/nvim/init.vim } function uninstall () { diff --git a/scripts/utils.sh b/scripts/utils.sh index 2f65a72..e2e5e1c 100755 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -17,8 +17,14 @@ function install_bat () { } if [ "$1" == "install" ]; then - install_exa - install_bat + if [ "$2" == "bat" ]; then + install_bat + elif [ "$2" == "exa" ]; then + install_exa + else + install_exa + install_bat + fi elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then uninstall else