bind F5 with different filetype and list the preset commands to run.
npm install coc-f5bind F5 with different filetype and list the preset commands to run.
this plugin will let F5 to exhale a list with certain commands to execute.
1. firstly, the plugin will detect the .cocF5.json in root directory and load it.
2. if there is not file satisfying step 1, the plugin will detect configuration of this filetype in coc configuration.
3. if there is not configuration record about this filetype, the plugin will use the default configuration of this filetype.
4. 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.
:CocInstall coc-F5
nmap
:CocList F5
to create or update the configuration.:CocCommand coc_F5.configurate
file: .cocF5.json
"load": will cobine with the commands starting with ! and run when when these commands are executed.
`` json``
{
"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"
}
]
]
}
MIT
---
> This extension is created by create-coc-extension