mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 05:02:28 +00:00
Require tab for completion-nvim
This commit is contained in:
@@ -132,9 +132,24 @@ autocmd FileType java setlocal omnifunc=javacomplete#Complete
|
|||||||
" vim-prettier
|
" vim-prettier
|
||||||
let g:prettier#autoformat = 1
|
let g:prettier#autoformat = 1
|
||||||
|
|
||||||
" Use completion-nvim in every buffer
|
|
||||||
|
" completion-nvim
|
||||||
|
" Use in every buffer
|
||||||
autocmd BufEnter * lua require'completion'.on_attach()
|
autocmd BufEnter * lua require'completion'.on_attach()
|
||||||
|
|
||||||
|
" Use <Tab> and <S-Tab> to navigate through popup menu
|
||||||
|
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||||
|
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||||
|
|
||||||
|
imap <tab> <Plug>(completion_smart_tab)
|
||||||
|
imap <s-tab> <Plug>(completion_smart_s_tab)
|
||||||
|
|
||||||
|
" Set completeopt to have a better completion experience
|
||||||
|
set completeopt=menuone,noinsert,noselect
|
||||||
|
|
||||||
|
" Avoid showing message extra message when using completion
|
||||||
|
set shortmess+=c
|
||||||
|
|
||||||
lua << EOF
|
lua << EOF
|
||||||
require('lualine').setup()
|
require('lualine').setup()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user