mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-22 15:43:42 +00:00
feat: coc improvements, file search improvements
This commit is contained in:
parent
93398b2df2
commit
5f948f88bd
3 changed files with 23 additions and 6 deletions
|
@ -4,6 +4,7 @@
|
||||||
"git.removedSign.hlGroup": "GitGutterDelete",
|
"git.removedSign.hlGroup": "GitGutterDelete",
|
||||||
"git.topRemovedSign.hlGroup": "GitGutterDelete",
|
"git.topRemovedSign.hlGroup": "GitGutterDelete",
|
||||||
"git.changeRemovedSign.hlGroup": "GitGutterChangeDelete",
|
"git.changeRemovedSign.hlGroup": "GitGutterChangeDelete",
|
||||||
|
"git.addGBlameToVirtualText": true,
|
||||||
"languageserver": {
|
"languageserver": {
|
||||||
"terraform": {
|
"terraform": {
|
||||||
"command": "terraform-ls",
|
"command": "terraform-ls",
|
||||||
|
@ -22,16 +23,14 @@
|
||||||
"json",
|
"json",
|
||||||
"graphql",
|
"graphql",
|
||||||
"prisma",
|
"prisma",
|
||||||
"terraform"
|
"terraform",
|
||||||
|
"jsonc"
|
||||||
],
|
],
|
||||||
"tsserver.formatOnType": true,
|
"tsserver.formatOnType": true,
|
||||||
"coc.preferences.formatOnType": true,
|
"coc.preferences.formatOnType": true,
|
||||||
"yaml.schemaStore.enable": true,
|
"yaml.schemaStore.enable": true,
|
||||||
"yaml.schemas": {
|
"yaml.schemas": {
|
||||||
"kubernetes": [
|
"kubernetes": ["/**/kubernetes/**/*.yaml", "/**/k8s/**/*.yaml"],
|
||||||
"/**/kubernetes/**/*.yaml",
|
|
||||||
"/**/k8s/**/*.yaml"
|
|
||||||
],
|
|
||||||
"https://json.schemastore.org/github-workflow.json": "/.github/workflows/*.yaml"
|
"https://json.schemastore.org/github-workflow.json": "/.github/workflows/*.yaml"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,11 @@ let g:coc_global_extensions = [
|
||||||
\ 'coc-prisma',
|
\ 'coc-prisma',
|
||||||
\ 'coc-sh',
|
\ 'coc-sh',
|
||||||
\ 'coc-typos',
|
\ 'coc-typos',
|
||||||
|
\ 'coc-docker',
|
||||||
|
\ 'coc-go',
|
||||||
|
\ 'coc-html',
|
||||||
|
\ 'coc-sql',
|
||||||
|
\ 'coc-toml',
|
||||||
\ ]
|
\ ]
|
||||||
if isdirectory('./node_modules') && isdirectory('./node_modules/prettier')
|
if isdirectory('./node_modules') && isdirectory('./node_modules/prettier')
|
||||||
let g:coc_global_extensions += ['coc-prettier']
|
let g:coc_global_extensions += ['coc-prettier']
|
||||||
|
@ -156,6 +161,12 @@ require'nvim-treesitter.configs'.setup {
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
"""""
|
||||||
|
"--- Custom Configurations
|
||||||
|
augroup JsonToJsonc
|
||||||
|
autocmd! FileType json set filetype=jsonc
|
||||||
|
augroup END
|
||||||
|
|
||||||
"""""
|
"""""
|
||||||
"--- Telescope Configuration
|
"--- Telescope Configuration
|
||||||
lua <<EOF
|
lua <<EOF
|
||||||
|
@ -209,6 +220,10 @@ set shortmess+=c
|
||||||
"- Custom commands
|
"- Custom commands
|
||||||
command! -nargs=0 Prettier :CocCommand prettier.formatFile
|
command! -nargs=0 Prettier :CocCommand prettier.formatFile
|
||||||
|
|
||||||
|
"""""
|
||||||
|
"- Custom Filetypes
|
||||||
|
au BufRead,BufNewFile *.mdx setfiletype markdown
|
||||||
|
|
||||||
"""""
|
"""""
|
||||||
"- Keybindings
|
"- Keybindings
|
||||||
" Using SPACE as <leader> key
|
" Using SPACE as <leader> key
|
||||||
|
@ -216,7 +231,7 @@ nnoremap <SPACE> <Nop>
|
||||||
let mapleader = " "
|
let mapleader = " "
|
||||||
|
|
||||||
" Telescope
|
" Telescope
|
||||||
nnoremap <c-p> <cmd>Telescope find_files<cr>
|
nnoremap <c-p> <cmd>Telescope git_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
|
||||||
|
|
|
@ -54,6 +54,9 @@ export PATH=$PATH:$HOME/.bin:$HOME/go/bin:/snap/bin
|
||||||
# ENV
|
# ENV
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
|
|
||||||
|
# Nix fix
|
||||||
|
export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive
|
||||||
|
|
||||||
# Starship
|
# Starship
|
||||||
export STARSHIP_CONFIG=~/.starship.toml
|
export STARSHIP_CONFIG=~/.starship.toml
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|
Loading…
Reference in a new issue