[IMP] [QCI-100] Bump TF version and language server, coc.nvim fixes
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -19,6 +19,7 @@ logs/*
|
|||||||
**/wslu
|
**/wslu
|
||||||
**/TabNine
|
**/TabNine
|
||||||
**/firebase
|
**/firebase
|
||||||
|
**/pypoetry
|
||||||
|
|
||||||
# pytest
|
# pytest
|
||||||
**/__pycache__
|
**/__pycache__
|
||||||
|
|||||||
@@ -8,3 +8,4 @@
|
|||||||
# References:
|
# References:
|
||||||
# https://unix.stackexchange.com/questions/192521/loading-profile-from-bash-profile-or-not-using-bash-profile-at-all
|
# https://unix.stackexchange.com/questions/192521/loading-profile-from-bash-profile-or-not-using-bash-profile-at-all
|
||||||
# https://www.stefaanlippens.net/my_bashrc_aliases_profile_and_other_stuff/
|
# https://www.stefaanlippens.net/my_bashrc_aliases_profile_and_other_stuff/
|
||||||
|
if [ -e /home/andrejus/.nix-profile/etc/profile.d/nix.sh ]; then . /home/andrejus/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|
||||||
|
|||||||
@@ -41,8 +41,22 @@ set nowrap
|
|||||||
" two lines for command line
|
" two lines for command line
|
||||||
set cmdheight=2
|
set cmdheight=2
|
||||||
|
|
||||||
|
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
|
||||||
|
" delays and poor user experience.
|
||||||
set updatetime=300
|
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 === "
|
" === UI === "
|
||||||
" ============================================================================ "
|
" ============================================================================ "
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
{
|
{
|
||||||
|
"suggest.echodocSupport": true,
|
||||||
|
"python.jediEnabled": false,
|
||||||
|
"python.linting.pylintEnabled": false,
|
||||||
|
"python.linting.flake8Enabled": true,
|
||||||
"languageserver": {
|
"languageserver": {
|
||||||
"terraform": {
|
"terraform": {
|
||||||
"command": "terraform-lsp",
|
"command": "terraform-ls",
|
||||||
|
"args": ["serve"],
|
||||||
"filetypes": ["tf", "terraform"],
|
"filetypes": ["tf", "terraform"],
|
||||||
"initializationOptions": {}
|
"initializationOptions": {},
|
||||||
|
"settings": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ inoremap <silent><expr> <TAB>
|
|||||||
\ pumvisible() ? "\<C-n>" :
|
\ pumvisible() ? "\<C-n>" :
|
||||||
\ <SID>check_back_space() ? "\<TAB>" :
|
\ <SID>check_back_space() ? "\<TAB>" :
|
||||||
\ coc#refresh()
|
\ coc#refresh()
|
||||||
|
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||||
|
|
||||||
function! s:check_back_space() abort
|
function! s:check_back_space() abort
|
||||||
let col = col('.') - 1
|
let col = col('.') - 1
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source "$(dirname $0)/utils.sh"
|
source "$(dirname $0)/utils.sh"
|
||||||
|
|
||||||
|
tf_version="0.13.5"
|
||||||
if not_installed "terraform"; then
|
if not_installed "terraform"; then
|
||||||
echo "Installing terraform..."
|
echo "Installing terraform..."
|
||||||
wget https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_linux_amd64.zip
|
tf_archive="terraform_${tf_version}_linux_amd64.zip"
|
||||||
unzip terraform_0.12.24_linux_amd64.zip -d "$dotfiles_dir/tmp"
|
wget "https://releases.hashicorp.com/terraform/${tf_version}/${tf_archive}"
|
||||||
rm terraform_0.12.24_linux_amd64.zip
|
unzip "$tf_archive" -d "$dotfiles_dir/tmp"
|
||||||
|
rm "$tf_archive"
|
||||||
mkdir -p ~/.local/bin
|
mkdir -p ~/.local/bin
|
||||||
mv "$dotfiles_dir/tmp/terraform" ~/.local/bin
|
mv "$dotfiles_dir/tmp/terraform" ~/.local/bin
|
||||||
rm "$dotfiles_dir/tmp/terraform"
|
rm "$dotfiles_dir/tmp/terraform"
|
||||||
@@ -14,12 +16,16 @@ fi
|
|||||||
echo "terraform is installed"
|
echo "terraform is installed"
|
||||||
terraform --version
|
terraform --version
|
||||||
|
|
||||||
if not_installed "terraform-lsp"; then
|
tf_lsp_version="0.8.0"
|
||||||
echo "Installing terraform-lsp..."
|
if not_installed "terraform-ls"; then
|
||||||
wget https://github.com/juliosueiras/terraform-lsp/releases/download/v0.0.11-beta2/terraform-lsp_0.0.11-beta2_linux_amd64.tar.gz
|
echo "Installing terraform-ls..."
|
||||||
tar -C "$dotfiles_dir/tmp" -xzf terraform-lsp_0.0.11-beta2_linux_amd64.tar.gz
|
tf_lsp_archive="terraform-ls_${tf_lsp_version}_linux_amd64.zip"
|
||||||
rm terraform-lsp_0.0.11-beta2_linux_amd64.tar.gz
|
wget "https://releases.hashicorp.com/terraform-ls/${tf_lsp_version}/${tf_lsp_archive}"
|
||||||
mv "$dotfiles_dir/tmp/terraform-lsp" ~/.local/bin
|
unzip "${tf_lsp_archive}" -d "$dotfiles_dir/tmp"
|
||||||
|
rm "${tf_lsp_archive}"
|
||||||
|
mkdir -p ~/.local/bin
|
||||||
|
mv "$dotfiles_dir/tmp/terraform-ls" ~/.local/bin
|
||||||
|
rm "$dotfiles_dir/tmp/terraform-ls"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "terraform-lsp is installed"
|
echo "terraform-lsp is installed"
|
||||||
|
|||||||
Reference in New Issue
Block a user