Remove unused neovim plugins and add more coc extensions
This commit is contained in:
@@ -1,18 +1,13 @@
|
|||||||
{
|
{
|
||||||
"languageserver": {
|
"coc.preferences.formatOnSaveFiletypes": [
|
||||||
"ccls": {
|
"css",
|
||||||
"command": "ccls",
|
"markdown",
|
||||||
"filetypes": ["c", "cpp", "cuda", "objc", "objcpp"],
|
"javascript",
|
||||||
"rootPatterns": [".ccls-root", "compile_commands.json"],
|
"typescript",
|
||||||
"initializationOptions": {
|
"svelte",
|
||||||
"cache": {
|
"javascriptreact",
|
||||||
"directory": ".ccls-cache"
|
"typescriptreact",
|
||||||
},
|
"json",
|
||||||
"client": {
|
"jsonc"
|
||||||
"snippetSupport": true
|
]
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
22
nvim/coc.vim
22
nvim/coc.vim
@@ -39,3 +39,25 @@ let g:coc_snippet_next = '<c-j>'
|
|||||||
|
|
||||||
" Use <C-k> for jump to previous placeholder, it's default of coc.nvim
|
" Use <C-k> for jump to previous placeholder, it's default of coc.nvim
|
||||||
let g:coc_snippet_prev = '<c-k>'
|
let g:coc_snippet_prev = '<c-k>'
|
||||||
|
|
||||||
|
let g:coc_global_extensions = [
|
||||||
|
\ 'coc-tsserver',
|
||||||
|
\ 'coc-css',
|
||||||
|
\ 'coc-go',
|
||||||
|
\ 'coc-html',
|
||||||
|
\ 'coc-prettier',
|
||||||
|
\ 'coc-sh',
|
||||||
|
\ 'coc-svelte',
|
||||||
|
\ 'coc-pairs',
|
||||||
|
\ 'coc-json',
|
||||||
|
\ 'coc-snippets',
|
||||||
|
\ 'coc-emmet',
|
||||||
|
\ 'coc-highlight',
|
||||||
|
\ 'coc-python'
|
||||||
|
\ ]
|
||||||
|
|
||||||
|
" Use <cr> to confirm completion, `<C-g>u` means break undo chain at current position.
|
||||||
|
" Coc only does snippet and additional edit on confirm.
|
||||||
|
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||||
|
|
||||||
|
command! -nargs=0 Prettier :CocCommand prettier.formatFile
|
||||||
|
|||||||
@@ -15,5 +15,5 @@ let g:nvim_tree_show_icons = {
|
|||||||
\ }
|
\ }
|
||||||
|
|
||||||
" Remaps
|
" Remaps
|
||||||
nnoremap <leader>b :NvimTreeToggle<CR>
|
nnoremap <C-b> :NvimTreeToggle<CR>
|
||||||
nnoremap <leader>r :NvimTreeRefresh<CR>
|
nnoremap <leader>r :NvimTreeRefresh<CR>
|
||||||
|
|||||||
@@ -6,14 +6,7 @@ Plug 'vim-airline/vim-airline'
|
|||||||
Plug 'vim-airline/vim-airline-themes'
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
|
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
Plug 'norcalli/nvim-colorizer.lua'
|
|
||||||
Plug 'jiangmiao/auto-pairs'
|
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
Plug 'prettier/vim-prettier', {'do': 'yarn install'}
|
|
||||||
Plug 'fatih/vim-go'
|
|
||||||
Plug 'pangloss/vim-javascript'
|
|
||||||
Plug 'leafgarland/typescript-vim'
|
|
||||||
Plug 'evanleck/vim-svelte', {'branch': 'main'}
|
|
||||||
Plug 'kyazdani42/nvim-tree.lua'
|
Plug 'kyazdani42/nvim-tree.lua'
|
||||||
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
|
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
|
||||||
Plug 'akinsho/bufferline.nvim'
|
Plug 'akinsho/bufferline.nvim'
|
||||||
@@ -22,6 +15,8 @@ Plug 'turbio/bracey.vim', { 'do': 'npm install --prefix server' }
|
|||||||
Plug 'folke/zen-mode.nvim'
|
Plug 'folke/zen-mode.nvim'
|
||||||
Plug 'kyazdani42/nvim-web-devicons'
|
Plug 'kyazdani42/nvim-web-devicons'
|
||||||
Plug 'kevinoid/vim-jsonc'
|
Plug 'kevinoid/vim-jsonc'
|
||||||
|
Plug 'HerringtonDarkholme/yats.vim'
|
||||||
|
Plug 'fatih/vim-go'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
@@ -58,9 +53,6 @@ colorscheme ayu
|
|||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
let g:airline_theme = 'ayu_mirage'
|
let g:airline_theme = 'ayu_mirage'
|
||||||
|
|
||||||
" Color highlighting
|
|
||||||
lua require'colorizer'.setup()
|
|
||||||
|
|
||||||
" Zen Mode plugin
|
" Zen Mode plugin
|
||||||
lua require'zen-mode'.setup()
|
lua require'zen-mode'.setup()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user