mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-25 08:49:02 +00:00
fix(nvim): coc settings and ctrl-p search
This commit is contained in:
parent
a9e30e26bc
commit
f8703fba6d
6 changed files with 52 additions and 0 deletions
1
bin/.bin
Symbolic link
1
bin/.bin
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/home/tine/projects/workspace/bin
|
|
@ -17,3 +17,12 @@
|
||||||
|
|
||||||
[diff]
|
[diff]
|
||||||
external = difft
|
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
|
||||||
|
|
|
@ -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'
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
workspace_backup .config/nvim/init.vim
|
workspace_backup .config/nvim/init.vim
|
||||||
workspace_link nvim/init.vim .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
37
nvim/coc-settings.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
|
@ -211,6 +211,7 @@ nnoremap <SPACE> <Nop>
|
||||||
let mapleader = " "
|
let mapleader = " "
|
||||||
|
|
||||||
" Telescope
|
" Telescope
|
||||||
|
nnoremap <c-p> <cmd>Telescope find_files<cr>
|
||||||
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
||||||
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
||||||
" Telescope git
|
" Telescope git
|
||||||
|
|
|
@ -45,6 +45,8 @@ bindkey -M vicmd "/" history-incremental-search-forward
|
||||||
alias gicm="git checkout main && git pull"
|
alias gicm="git checkout main && git pull"
|
||||||
alias gic="git checkout"
|
alias gic="git checkout"
|
||||||
|
|
||||||
|
alias vim="nvim"
|
||||||
|
|
||||||
# PATH
|
# PATH
|
||||||
export PATH=$PATH:$HOME/.bin:$HOME/go/bin
|
export PATH=$PATH:$HOME/.bin:$HOME/go/bin
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue