aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2018-10-14 17:51:28 +0200
committerJohn Ankarström <john@ankarstrom.se>2018-10-14 17:52:37 +0200
commit68922d857f75e4a373e4e2273f0c921478609c50 (patch)
treedb28b21e5df86c4afe18ca09bda5d4ab412d82b2
parentff83be22e1d883c9f20222f4bfdccac4b96a9138 (diff)
downloadvis-filetype-settings-68922d857f75e4a373e4e2273f0c921478609c50.tar.gz
changed quote style
-rw-r--r--README.md4
-rw-r--r--vis-filetype-settings.lua6
2 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 9f44909..c6f4123 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@ It expects a global variable called `settings` to be defined:
```lua
settings = {
- markdown = {'set expandtab on', 'set tabwidth 4'}
+ markdown = {"set expandtab on", "set tabwidth 4"}
}
```
@@ -34,7 +34,7 @@ As a suggestion, copy `vis-filetype-settings.lua` into
`~/.config/vis/plugins/` and add the following to your `visrc.lua`:
```lua
-require('plugins/vis-filetype-settings')
+require("plugins/vis-filetype-settings")
settings = {
filetype = settings
diff --git a/vis-filetype-settings.lua b/vis-filetype-settings.lua
index 47ba424..ff4a94c 100644
--- a/vis-filetype-settings.lua
+++ b/vis-filetype-settings.lua
@@ -7,7 +7,7 @@
-- It expects a global variable called `settings` to be defined:
--
-- settings = {
--- markdown = {'set expandtab on', 'set tabwidth 4'}
+-- markdown = {"set expandtab on", "set tabwidth 4"}
-- }
--
-- In this variable, filetypes are mapped to sets of settings that are
@@ -28,11 +28,11 @@
vis.events.subscribe(vis.events.WIN_OPEN, function(win)
local window_settings = settings[win.syntax]
- if type(window_settings) == 'table' then
+ if type(window_settings) == "table" then
for _, setting in pairs(window_settings) do
vis:command(setting)
end
- elseif type(window_settings) == 'function' then
+ elseif type(window_settings) == "function" then
window_settings(win)
end
end)