fix(nvim): coc settings and ctrl-p search

This commit is contained in:
Tine Jozelj 2022-05-31 09:04:14 +02:00
parent a9e30e26bc
commit f8703fba6d
6 changed files with 52 additions and 0 deletions

1
bin/.bin Symbolic link
View file

@ -0,0 +1 @@
/home/tine/projects/workspace/bin

View file

@ -17,3 +17,12 @@
[diff]
external = difft
[url "https://mentos1386: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@github.com/Bird-Buddy/terraform"]
insteadOf = https://github.com/Bird-Buddy/terraform
[url "https://mentos1386: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@github.com/Bird-Buddy/terraform"]
insteadOf = https://github.com/Bird-Buddy/terraform
[pull]
ff = only

View file

@ -90,3 +90,5 @@ sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
workspace_backup .config/nvim/init.vim
workspace_link nvim/init.vim .config/nvim/init.vim
workspace_backup .config/nvim/coc-settings.json
workspace_link nvim/coc-settings.json .config/nvim/coc-settings.json

37
nvim/coc-settings.json Normal file
View file

@ -0,0 +1,37 @@
{
"git.addedSign.hlGroup": "GitGutterAdd",
"git.changedSign.hlGroup": "GitGutterChange",
"git.removedSign.hlGroup": "GitGutterDelete",
"git.topRemovedSign.hlGroup": "GitGutterDelete",
"git.changeRemovedSign.hlGroup": "GitGutterChangeDelete",
"languageserver": {
"terraform": {
"command": "terraform-ls",
"args": ["serve"],
"filetypes": ["terraform", "tf"],
"initializationOptions": {},
"settings": {}
}
},
"prettier.disableSuccessMessage": true,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"json",
"graphql",
"prisma",
"terraform"
],
"tsserver.formatOnType": true,
"coc.preferences.formatOnType": true,
"yaml.schemaStore.enable": true,
"yaml.schemas": {
"kubernetes": [
"/**/kubernetes/**/*.yaml",
"/**/k8s/**/*.yaml"
],
"https://json.schemastore.org/github-workflow.json": "/.github/workflows/*.yaml"
}
}

View file

@ -211,6 +211,7 @@ nnoremap <SPACE> <Nop>
let mapleader = " "
" Telescope
nnoremap <c-p> <cmd>Telescope find_files<cr>
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
" Telescope git

View file

@ -45,6 +45,8 @@ bindkey -M vicmd "/" history-incremental-search-forward
alias gicm="git checkout main && git pull"
alias gic="git checkout"
alias vim="nvim"
# PATH
export PATH=$PATH:$HOME/.bin:$HOME/go/bin