mirror of https://github.com/aldy505/dotfiles.git
clean up neovim
This commit is contained in:
parent
906fa6be6f
commit
5a9a4ba562
|
@ -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
|
||||
|
|
@ -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 () {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue