|
@@ -30,13 +30,28 @@ set nu
|
|
|
set hidden
|
|
|
set undodir=~/.config/nvim/undodir
|
|
|
set undofile
|
|
|
+
|
|
|
+
|
|
|
+" Theme settings
|
|
|
+" https://github.com/kaicataldo/material.vim
|
|
|
+if (has('termguicolors'))
|
|
|
+ set termguicolors
|
|
|
+endif
|
|
|
+let g:material_theme_style = 'darker'
|
|
|
+colorscheme material
|
|
|
+
|
|
|
+
|
|
|
" Lsp configuration for multiple languages
|
|
|
lua require'lspconfig'.bashls.setup{}
|
|
|
lua require'lspconfig'.jsonls.setup{}
|
|
|
-lua require'lspconfig'.jedi_language_server.setup{on_attach=require'completion'.on_attach }
|
|
|
+lua require'lspconfig'.pyls.setup{ on_attach=require'completion'.on_attach }
|
|
|
lua require'lspconfig'.gopls.setup{ on_attach=require'completion'.on_attach }
|
|
|
lua require'lspconfig'.rust_analyzer.setup{ on_attach=require'completion'.on_attach }
|
|
|
lua require'lspconfig'.clangd.setup{ on_attach=require'completion'.on_attach }
|
|
|
+
|
|
|
+" auto complete matching strategy
|
|
|
+let g:completion_matching_strategy_list = ['exact', 'substring', 'fuzzy']
|
|
|
+
|
|
|
" 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>"
|
|
@@ -45,14 +60,6 @@ inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
|
|
" Avoid showing message extra message when using completion
|
|
|
set shortmess+=c
|
|
|
|
|
|
-" Theme settings
|
|
|
-" https://github.com/kaicataldo/material.vim
|
|
|
-if (has('termguicolors'))
|
|
|
- set termguicolors
|
|
|
-endif
|
|
|
-let g:material_theme_style = 'darker'
|
|
|
-colorscheme material
|
|
|
-
|
|
|
|
|
|
" Tree-sitter config
|
|
|
lua require'nvim-treesitter.configs'.setup { highlight = { enable = true } }
|