mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-30 12:50:29 +00:00
Merge
This commit is contained in:
commit
628cdd34aa
2 changed files with 5 additions and 5 deletions
|
|
@ -123,16 +123,16 @@ In the `settings.json` file you can also put set options locally by specifying a
|
|||
Here is an example which has `tabstospaces` on for all files except Go files, and
|
||||
`tabsize` 4 for all files except Ruby files:
|
||||
|
||||
```
|
||||
```json
|
||||
{
|
||||
"*.go": {
|
||||
"tabstospaces": false
|
||||
},
|
||||
"*.rb": {
|
||||
"tabsize": 2
|
||||
}
|
||||
},
|
||||
"tabstospaces": true,
|
||||
"tabsize": 4,
|
||||
"tabsize": 4
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -68,13 +68,13 @@ what actions are available, see the `keybindings` help topic (`> help keybinding
|
|||
|
||||
If you need more power than the json files provide, you can use the `init.lua`
|
||||
file. Create it in `~/.config/micro`. This file is a lua file that is run
|
||||
when micro starts and is essential a one-file plugin.
|
||||
when micro starts and is essentially a one-file plugin.
|
||||
|
||||
I'll show you how to use the `init.lua` file by giving an example of how to
|
||||
create a binding to `CtrlR` which will execute `go run` on the current file,
|
||||
given that the current file is a Go file.
|
||||
|
||||
You can do that by puttint the following in `init.lua`:
|
||||
You can do that by putting the following in `init.lua`:
|
||||
|
||||
```lua
|
||||
function gorun()
|
||||
|
|
|
|||
Loading…
Reference in a new issue