[IMP] [QCI-100] Bump TF version and language server, coc.nvim fixes

This commit is contained in:
Andrejus
2020-10-26 17:01:20 +00:00
parent 6ea4142783
commit e6b80b1190
6 changed files with 40 additions and 11 deletions

View File

@@ -41,8 +41,22 @@ set nowrap
" two lines for command line
set cmdheight=2
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
" delays and poor user experience.
set updatetime=300
" Don't pass messages to |ins-completion-menu|.
set shortmess+=c
" Always show the signcolumn, otherwise it would shift the text each time
" diagnostics appear/become resolved.
if has("patch-8.1.1564")
" Recently vim can merge signcolumn and number column into one
set signcolumn=number
else
set signcolumn=yes
endif
" ============================================================================ "
" === UI === "
" ============================================================================ "

View File

@@ -1,9 +1,15 @@
{
"suggest.echodocSupport": true,
"python.jediEnabled": false,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"languageserver": {
"terraform": {
"command": "terraform-lsp",
"command": "terraform-ls",
"args": ["serve"],
"filetypes": ["tf", "terraform"],
"initializationOptions": {}
"initializationOptions": {},
"settings": {}
}
}
}

View File

@@ -85,6 +85,7 @@ inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
function! s:check_back_space() abort
let col = col('.') - 1