Last active
February 5, 2023 09:50
-
-
Save yanknvim/8cdfd13d536f4abd1d72255f51afef79 to your computer and use it in GitHub Desktop.
2023/2/5時点のinit.vim、coc.nvimからddc.vimへの乗り換えが主な変更点
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin() | |
Plug 'preservim/nerdtree' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'vim-denops/denops.vim' | |
Plug 'Shougo/pum.vim' | |
Plug 'Shougo/ddc.vim' | |
Plug 'Shougo/ddc-ui-native' | |
Plug 'Shougo/ddc-around' | |
Plug 'LumaKernel/ddc-file' | |
Plug 'shun/ddc-source-vim-lsp' | |
Plug 'prabirshrestha/vim-lsp' | |
Plug 'mattn/vim-lsp-settings' | |
Plug 'tani/ddc-fuzzy' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'cohama/lexima.vim' | |
call plug#end() | |
call ddc#custom#patch_global('ui', 'native') | |
call ddc#custom#patch_global('sources', ['around', 'file', 'vim-lsp']) | |
call ddc#custom#patch_global('sourceOptions', { | |
\ '_': { | |
\ 'matchers': ['matcher_fuzzy'], | |
\ 'sorters': ['sorter_fuzzy'], | |
\ 'converters': ['converter_fuzzy'] | |
\ }, | |
\ 'around': {'mark': 'around'}, | |
\ 'vim-lsp': { | |
\ 'matchers': ['matcher_fuzzy'], | |
\ 'mark': 'lsp' | |
\ } | |
\ }) | |
inoremap <silent><expr> <TAB> | |
\ pumvisible() ? '<C-n>' : | |
\ (col('.') <= 1 <Bar><Bar> getline('.')[col('.') - 2] =~# '\s') ? | |
\ '<TAB>' : ddc#map#manual_complete() | |
call ddc#enable() | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline_powerline_fonts = 1 | |
let g:airline_theme = "wombat" | |
nmap <C-k> <Plug>AirlineSelectPrevTab | |
nmap <C-l> <Plug>AirlineSelectNextTab | |
colorscheme iceberg | |
set nobackup | |
set noswapfile | |
set autoread | |
set number | |
set cursorline | |
set smartindent | |
set showmatch | |
set laststatus=2 | |
syntax enable | |
set tabstop=2 | |
set shiftwidth=2 | |
set ignorecase | |
set smartcase | |
set wrapscan | |
set hlsearch | |
set list | |
set listchars=trail:-,tab:>-,eol:↲ | |
map <C-f> :NERDTree<CR> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment