Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

Commit

Permalink
Move coc data to plug-config/coc/. Fine tune explorer. Change <TAB>
Browse files Browse the repository at this point in the history
bindings.
  • Loading branch information
PasiBergman committed Jan 6, 2021
1 parent c40a1b6 commit ca86e1f
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ undodir/*
# Exclude the dummy.txt file
!undodir/dummy.txt

plug-config/coc/data/*
# Exclude the directory
!plug-config/coc/data
# Exclude the dummy.txt file
!plug-config/coc/data/dummy.txt

slowsave
.netrwhist
tags

files/info/viminfo

Expand Down
41 changes: 34 additions & 7 deletions coc-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,24 +89,51 @@
"wxss.validate": false,

// explorer
"explorer.width": 30,
"explorer.file.root.template": "[icon] [git] [hidden & 1][root]",
"explorer.width": 36,
"explorer.quitOnOpen": true,
"explorer.debug": false,
"explorer.icon.enableNerdfont": true,
"explorer.previewAction.onHover": false,
"explorer.previewAction.onHover": "labeling",
"explorer.icon.enableVimDevicons": false,
"explorer.file.showHiddenFiles": true,
"explorer.git.showIgnored": true,
"explorer.datetime.format": "dd.MM.yyyy HH:mm:ss",
"explorer.file.git.showUntrackedFiles": true,
"explorer.git.icon.status.unmerged": "C",
"explorer.git.icon.rootStatus.modified": "U",
"explorer.git.icon.status.modified": "U",
"explorer.git.icon.status.added": "+",
"explorer.git.icon.rootStatus.modified": "M",
"explorer.git.icon.rootStatus.ahead": "",
"explorer.git.icon.rootStatus.behind": "",
"explorer.git.icon.rootStatus.added": "A",
"explorer.git.icon.rootStatus.stashed": "S",
"explorer.git.icon.rootStatus.deleted": "D",
"explorer.git.icon.rootStatus.conflicted": "",
"explorer.git.icon.status.modified": "M",
"explorer.git.icon.status.added": "A",
// "explorer.git.icon.status.mixed": "◎",
"explorer.git.icon.status.deleted": "D",
"explorer.git.icon.status.renamed": "R",
"explorer.git.icon.status.copied": "C",
"explorer.file.git.showUntrackedFiles": false,
"explorer.git.icon.status.untracked": "U",
/* "ˣ" */
"explorer.git.icon.status.ignored": "",
"explorer.keyMappings.global": {
"<cr>": ["expandable?", "expand", "open"],
"v": "open:vsplit"
},
"explorer.sources": [
{
"name": "bookmark",
"expand": false
},
{
"name": "buffer",
"expand": true
},
{
"name": "file",
"expand": true
}
],

//"languageserver": {
// "lua": {
Expand Down
2 changes: 1 addition & 1 deletion keys/mappings.vim
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ else
" Alternate way to save
nnoremap <silent> <C-s> :w<CR>
" <TAB>: completion.
inoremap <silent> <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
" inoremap <silent> <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"

" Better window navigation
nnoremap <C-h> <C-w>h
Expand Down
11 changes: 7 additions & 4 deletions plug-config/coc/coc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ command! -nargs=0 Prettier :CocCommand prettier.formatFile
hi CocErrorSign ctermfg=9 guifg=#ff5500

" Bookmarks (coc-bookmark)
" nmap <Leader>Bt <Plug>(coc-bookmark-toggle)
" nmap <Leader>Bn <Plug>(coc-bookmark-next)
" nmap <Leader>Bp <Plug>(coc-bookmark-prev)
" nmap <Leader>Ba <Plug>(coc-bookmark-annotate)
nmap <Leader>Bt <Plug>(coc-bookmark-toggle)
nmap <Leader>Bn <Plug>(coc-bookmark-next)
nmap <Leader>Bp <Plug>(coc-bookmark-prev)
nmap <Leader>Ba <Plug>(coc-bookmark-annotate)
let g:coc_data_home="$HOME/.config/nvim/plug-config/coc/data"

1 change: 1 addition & 0 deletions plug-config/coc/data/dummy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Placeholder file to ensure folder creation.

0 comments on commit ca86e1f

Please sign in to comment.