diff options
author | rafa_99 <raroma09@gmail.com> | 2021-07-10 02:27:52 +0100 |
---|---|---|
committer | rafa_99 <raroma09@gmail.com> | 2021-07-10 02:27:52 +0100 |
commit | 9043edb515257b6e24744cc78f84eb266aafcf63 (patch) | |
tree | 20aa4eb0ad363859ef7503988156571714eb09b5 /neovim | |
parent | 691ef4b3967c54eebdfe0bf446c90e7cbfb1f138 (diff) |
Updated Install and Configured Neovim LSP
Diffstat (limited to 'neovim')
-rw-r--r-- | neovim/.config/nvim/init.vim | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index 5f87745..0a4cfef 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -8,6 +8,8 @@ Plug 'airblade/vim-gitgutter' Plug 'RRethy/vim-hexokinase' Plug 'vim-scripts/taglist.vim' Plug 'scrooloose/nerdtree' +Plug 'neovim/nvim-lspconfig' +Plug 'hrsh7th/nvim-compe' call plug#end() " Unused Plugins @@ -42,6 +44,7 @@ set incsearch set wildmode=longest,list,full set relativenumber set termguicolors +set completeopt=menuone,noselect " Autocommands map <F5> :!compiler '%' <CR> @@ -83,3 +86,35 @@ let g:Hexokinase_highlighters = ['backgroundfull'] map <C-t> :TlistToggle<CR> " NERDTree map <C-n> :NERDTreeToggle<CR> + +" LSP Configuration +lua << EOF +require'lspconfig'.clangd.setup{} +EOF + +"" LSP Autocomplete +let g:compe = {} +let g:compe.enabled = v:true +let g:compe.autocomplete = v:true +let g:compe.debug = v:false +let g:compe.min_length = 1 +let g:compe.preselect = 'enable' +let g:compe.throttle_time = 80 +let g:compe.source_timeout = 200 +let g:compe.resolve_timeout = 800 +let g:compe.incomplete_delay = 400 +let g:compe.max_abbr_width = 100 +let g:compe.max_kind_width = 100 +let g:compe.max_menu_width = 100 +let g:compe.documentation = v:true + +let g:compe.source = {} +let g:compe.source.path = v:true +let g:compe.source.buffer = v:true +let g:compe.source.calc = v:true +let g:compe.source.nvim_lsp = v:true +let g:compe.source.nvim_lua = v:true +let g:compe.source.vsnip = v:true +let g:compe.source.ultisnips = v:true +let g:compe.source.luasnip = v:true +let g:compe.source.emoji = v:true |