Create vim dirs, add more plugins
This commit is contained in:
parent
9af1f7245e
commit
19ea3001fd
@ -4,6 +4,7 @@ set encoding=utf-8
|
|||||||
set expandtab
|
set expandtab
|
||||||
set hidden
|
set hidden
|
||||||
set ignorecase
|
set ignorecase
|
||||||
|
set listchars=tab:▸\ ,eol:¬
|
||||||
set nocompatible
|
set nocompatible
|
||||||
set nohlsearch
|
set nohlsearch
|
||||||
set noshowmode
|
set noshowmode
|
||||||
@ -17,6 +18,16 @@ set tabstop=4
|
|||||||
set undofile
|
set undofile
|
||||||
set wildmenu
|
set wildmenu
|
||||||
|
|
||||||
|
for folder in ['backup', 'swap', 'undo']
|
||||||
|
if !isdirectory($XDG_CACHE_HOME . '/nvim/' . folder)
|
||||||
|
call mkdir($XDG_CACHE_HOME . '/nvim/' . folder, 'p')
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
|
||||||
|
set backupdir=$XDG_CACHE_HOME/nvim/backup//
|
||||||
|
set directory=$XDG_CACHE_HOME/nvim/swap//
|
||||||
|
set undodir=$XDG_CACHE_HOME/nvim/undo//
|
||||||
|
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
syntax on
|
syntax on
|
||||||
@ -32,6 +43,8 @@ syntax on
|
|||||||
no <C-h> <C-w>h
|
no <C-h> <C-w>h
|
||||||
no <C-l> <C-w>l
|
no <C-l> <C-w>l
|
||||||
|
|
||||||
|
let mapleader = ","
|
||||||
|
|
||||||
" Visually select the text that was last edited/pasted
|
" Visually select the text that was last edited/pasted
|
||||||
nmap gV `[v`]
|
nmap gV `[v`]
|
||||||
|
|
||||||
@ -69,13 +82,29 @@ endif
|
|||||||
|
|
||||||
call plug#begin($XDG_DATA_HOME . '/nvim/plugged')
|
call plug#begin($XDG_DATA_HOME . '/nvim/plugged')
|
||||||
|
|
||||||
|
Plug '/usr/bin/fzf'
|
||||||
|
nnoremap <Leader>fz :call fzf#run({ 'sink': 'e' })<CR>
|
||||||
|
|
||||||
|
Plug 'dyng/ctrlsf.vim'
|
||||||
Plug 'godlygeek/tabular'
|
Plug 'godlygeek/tabular'
|
||||||
Plug 'itchyny/lightline.vim'
|
Plug 'itchyny/lightline.vim'
|
||||||
|
Plug 'junegunn/goyo.vim'
|
||||||
|
Plug 'junegunn/limelight.vim'
|
||||||
|
let g:limelight_conceal_ctermfg = 'gray'
|
||||||
|
autocmd! User GoyoEnter Limelight
|
||||||
|
autocmd! User GoyoLeave Limelight!
|
||||||
|
|
||||||
|
Plug 'kana/vim-textobj-user'
|
||||||
|
Plug 'markonm/traces.vim'
|
||||||
Plug 'mbbill/undotree'
|
Plug 'mbbill/undotree'
|
||||||
nn <silent> <Leader>u :UndotreeToggle <BAR> :UndotreeFocus<CR>
|
nn <silent> <Leader>u :UndotreeToggle <BAR> :UndotreeFocus<CR>
|
||||||
|
|
||||||
|
Plug 'mg979/vim-visual-multi', {'branch': 'master'}
|
||||||
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
Plug 'rstacruz/vim-closer'
|
||||||
Plug 'sheerun/vim-polyglot'
|
Plug 'sheerun/vim-polyglot'
|
||||||
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
|
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
|
||||||
|
Plug 'terryma/vim-expand-region'
|
||||||
Plug 'tommcdo/vim-exchange'
|
Plug 'tommcdo/vim-exchange'
|
||||||
Plug 'tpope/vim-abolish'
|
Plug 'tpope/vim-abolish'
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
|
@ -12,6 +12,7 @@ sudo pacman -Sy \
|
|||||||
neomutt \
|
neomutt \
|
||||||
neovim \
|
neovim \
|
||||||
newsboat \
|
newsboat \
|
||||||
|
nodejs \
|
||||||
pass \
|
pass \
|
||||||
pass-otp \
|
pass-otp \
|
||||||
playerctl \
|
playerctl \
|
||||||
|
Reference in New Issue
Block a user