Archived
0
0
Fork 0

Delete '.config/nvim/init.vim'

This commit is contained in:
Daryl Ronningen 2022-01-21 08:13:38 +00:00
parent fd1b882d2f
commit 10d260dfe5

View file

@ -1,133 +0,0 @@
set exrc
set relativenumber
set nu
set hidden
set tabstop=2 softtabstop=2
set shiftwidth=2
set noexpandtab
set smartindent
set noerrorbells
set nowrap
set noswapfile
set nobackup
set undodir=~/.vim/undodir
set undofile
set incsearch
set termguicolors
set scrolloff=8
set noshowmode
set colorcolumn=120
set signcolumn=yes
set cmdheight=2
set updatetime=50
set shortmess+=c
set encoding=UTF-8
set mouse+=a
set list lcs=tab:>-
set guicursor=
set showtabline=2
set nohlsearch
set nobomb
set fileformat=unix
call plug#begin('~/.vim/plugged')
" NeoVim TreeSitter
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
" NERDTree
Plug 'preservim/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'ryanoasis/vim-devicons'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'kyazdani42/nvim-web-devicons'
" NeoVim Line
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" GitOps
Plug 'tpope/vim-fugitive'
Plug 'APZelos/blamer.nvim'
Plug 'jiangmiao/auto-pairs'
Plug 'mbbill/undotree'
Plug 'preservim/tagbar'
Plug 'neoclide/coc.nvim', {'branch': 'release' }
Plug 'tpope/vim-surround'
Plug 'tpope/vim-commentary'
Plug 'ntpeters/vim-better-whitespace'
" Telescope
Plug 'nvim-lua/popup.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'mattn/emmet-vim'
Plug 'editorconfig/editorconfig-vim'
Plug 'tpope/vim-eunuch'
" ColorScheme
Plug 'shaunsingh/nord.nvim'
" StartScreen
Plug 'mhinz/vim-startify'
call plug#end()
let mapleader = " "
let NERDTreeShowHidden = 1
let g:better_whitespace_enabled = 1
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:blamer_enabled = 1
let g:coc_sources_disable_map = { 'cs': ['cs-2', 'cs-3'] }
source ~/.config/nvim/lua/treesitter.lua
colorscheme nord
nnoremap <silent> <leader>n :NERDTreeFocus<CR>
nnoremap <silent> <C-n> :NERDTree<CR>
nnoremap <silent> <C-t> :NERDTreeToggle<CR>
nnoremap <silent> <C-f> :NERDTreeFind<CR>
nnoremap <silent> <A-p> :BufferPin<CR>
nnoremap <silent> <C-u> :UndotreeToggle<CR>
nnoremap <silent> ;f :Telescope find_files<CR>
nnoremap <silent> ;r :Telescope live_grep<CR>
nnoremap <silent> \\ :Telescope buffers<CR>
nnoremap <silent> ;; :Telescope help_tags<CR>
inoremap <silent> <expr> <c-space> coc#refresh()
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
nnoremap <silent> gh :call <SID>show_documentation()<CR>
nnoremap <silent> <leader>cr :<C-u>CocRestart<CR>
function! s:show_documentation()
if &filetype == 'vim'
execute 'h '.expand('<cword>')
else
call CocAction('doHover')
endif
endfunction
function TrimSpaces() range
let oldhlsearch=ShowSpaces(1)
execute a:firstline.",".a:lastline."substitute ///gec"
let &hlsearch=oldhlsearch
endfunction
augroup RELMS
autocmd!
autocmd BufWritePre * :%s/\s\+$//e
autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
au BufNewFile,BufRead *.ejs set filetype=html
augroup END