Compare commits

...

2 commits

Author SHA1 Message Date
snow flurry 08d5f9da90 Add install.sh 2022-08-05 22:30:41 -07:00
snow flurry 3d864b1114 Add neovim config 2022-08-05 22:30:12 -07:00
4 changed files with 113 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
base/.tmux/tpm

View file

@ -0,0 +1,13 @@
set mouse=a
if exists(':Guifont')
Guifont Terminus [xos4]:h9
endif
if exists(':GuiTabline')
GuiTabline 0
endif
if exists(':GuiPopupmenu')
GuiPopupmenu 0
endif

View file

@ -0,0 +1,88 @@
call plug#begin('~/.vim/plug')
Plug 'equalsraf/neovim-gui-shim'
Plug 'neovim/nvim-lspconfig'
Plug 'Pocco81/Catppuccino.nvim'
Plug 'vim-scripts/bash-support.vim'
Plug 'romgrk/barbar.nvim'
Plug 'kyazdani42/nvim-tree.lua'
Plug 'nvim-lua/plenary.nvim'
Plug 'lewis6991/gitsigns.nvim'
call plug#end()
lua << EOF
require'lspconfig'.rls.setup{}
EOF
lua << EOF
local catppuccino = require('catppuccino')
catppuccino.setup(
{
colorscheme = "catppuccino",
transparency = true,
integrations = {
treesitter = true,
native_lsp = {
enabled = true,
underlines = {
errors = "underline",
hints = "underline",
warnings = "underline",
information = "underline"
}
},
gitsigns = true,
nvimtree = {
enabled = true,
show_root = false
},
barbar = true
}
}
)
catppuccino.load()
EOF
" Barbar
let bufferline = get(g:, 'bufferline', {})
let bufferline.icons = v:false
let bufferline.animation = v:false
let bufferline.auto_hide = v:true
" nvim-tree
let g:nvim_tree_follow = 1
let g:nvim_tree_auto_open = 1
let g:nvim_tree_auto_close = 1
let g:nvim_tree_show_icons = {
\ 'git': 0,
\ 'folders': 0,
\ 'files': 0,
\ 'folder_arrows': 0,
\ }
nnoremap <silent> <A-1> :BufferGoto 1<CR>
nnoremap <silent> <A-2> :BufferGoto 2<CR>
nnoremap <silent> <A-3> :BufferGoto 3<CR>
nnoremap <silent> <A-4> :BufferGoto 4<CR>
nnoremap <silent> <A-5> :BufferGoto 5<CR>
nnoremap <silent> <A-6> :BufferGoto 6<CR>
nnoremap <silent> <A-7> :BufferGoto 7<CR>
nnoremap <silent> <A-8> :BufferGoto 8<CR>
nnoremap <silent> <A-9> :BufferGoto 9<CR>
nnoremap <silent> <A-,> :BufferPrevious<CR>
nnoremap <silent> <A-.> :BufferNext<CR>
nnoremap <silent> <A-p> :BufferPin<CR>
nnoremap <silent> <A-q> :BufferClose<CR>
set nocompatible
set sw=4 ts=4 sts=4 et
syntax on
autocmd FileType make set noexpandtab shiftwidth=8 tabstop=8 softtabstop=0
set bs=indent,eol,start
set ruler

11
install.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
stow $PWD/base
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
if command -v nvim >/dev/null ; then
echo "Installing Neovim plugins..."
curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
nvim +'PlugInstall --sync' +'UpdateRemotePlugins' +qa
fi