0.0.1 • Published 4 years ago
coc-f5 v0.0.1
coc-F5
bind F5 with different filetype and list the preset commands to run.
Introduction
this plugin will let F5 to exhale a list with certain commands to execute.
- firstly, the plugin will detect the .cocF5.json in root directory and load it.
- if there is not file satisfying step 1, the plugin will detect configuration of this filetype in coc configuration.
- if there is not configuration record about this filetype, the plugin will use the default configuration of this filetype.
- if there is not default configuration about this filetype, you will obtain an empty list.
and i desire you to make a branch and pr the missing filetype configuration, or just show your configuration about the missing filetype in issues.
Install
:CocInstall coc-F5
Keymaps
this should be set on you own.
nmap <silent> <F5> :CocList F5<CR>
Lists
:CocList F5
to create or update the configuration.
:CocCommand coc_F5.configurate
Configurations
file: .cocF5.json
"load": will cobine with the commands starting with ! and run when when these commands are executed.
{
"load": "export $GOPATH=/",
"filetype": [
"go":[
"test": {
"description": "test the file",
"command": "!go test"
},
"build": {
"description": "build the file",
"command": "!go build"
},
"run": {
"description": "run the file",
"command": "!go build"
}
]
]
}
License
MIT
Issue
not write, just conquer the name.
This extension is created by create-coc-extension