- Based on Nvim Basic Setup;
- Complete configurations and features are kept on GitHub:
I have to say, everyone should have their own settings, while I'll be glad if some of my settings can inspare you.
- There are some auto-completion tools you can use, such as
YouCompleteMe,coc.nvim. I've tried those, finally I stick todeoplete.nvim, it can usenvim-lspconfigas LSP. - If you feel you are repeatedly writing code, you need snipptes to helps you auto-complete. I use
ultisnipsas snips engine and usevim-snippetsas snips repo.
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'neovim/nvim-lspconfig',
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'let g:deoplete#enable_at_startup = 1
" use Tab to scroll, and Enter to select "
inoremap <expr><CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
inoremap <expr><Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
nnoremap <silent>gd <cmd>lua vim.lsp.buf.declaration()<CR>
nnoremap <silent><C-]> <cmd>lua vim.lsp.buf.definition()<CR>
nnoremap <silent>K <cmd>lua vim.lsp.buf.hover()<CR>
" === nvim-lspconfig === "
lua <<EOF
require'lspconfig'.html.setup{}
require'lspconfig'.cssls.setup{}
require'lspconfig'.vuels.setup{}
EOF
" === ultisnips === "
" Trigger configuration. You need to change this to something other than <tab> "
let g:UltiSnipsExpandTrigger="<A-l>"
let g:UltiSnipsJumpForwardTrigger="<A-j>"
let g:UltiSnipsJumpBackwardTrigger="<A-k>"Plug 'sbdchd/neoformat'Plug 'nvim-treesitter/nvim-treesitter'
Plug 'terryma/vim-multiple-cursors'
Plug 'norcalli/nvim-colorizer.lua'