diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-04-13 19:05:14 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-04-13 19:05:14 +0200 |
| commit | 4ccdc231b3fb4cc3a9c9aad626de46a32bc9a628 (patch) | |
| tree | 5fdf940d48642b35e783a0b204e5b91dd5d4b8d8 /config/vis | |
| parent | 6969d669c9b613e0d147a5b32b505271b5902a57 (diff) | |
| download | dotfiles-4ccdc231b3fb4cc3a9c9aad626de46a32bc9a628.tar.gz dotfiles-4ccdc231b3fb4cc3a9c9aad626de46a32bc9a628.zip | |
vis: cleanup visrc
* Use local variables
* Remove unused parameter
Diffstat (limited to 'config/vis')
| -rw-r--r-- | config/vis/visrc.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua index f7abdc2..df1078f 100644 --- a/config/vis/visrc.lua +++ b/config/vis/visrc.lua @@ -18,7 +18,8 @@ if next(lspc) then lspc.ls_map.go = {name = 'go', cmd = 'gopls'} end -fzf_open = require('plugins/vis-fzf-open') + +local fzf_open = require('plugins/vis-fzf-open') fzf_open.fzf_path = "FZF_DEFAULT_COMMAND='rg --hidden -g !.git -l \"\"' fzf" @@ -37,8 +38,8 @@ end) -- seperate default settings into per file and per window to not override settings from -- vis-editorconf which are set on FILE_OPEN -- default file settings -vis.events.subscribe(vis.events.FILE_OPEN, function(file) - tabwidth = 4 +local tabwidth = 4 +vis.events.subscribe(vis.events.FILE_OPEN, function() vis:command('set tabwidth '..tabwidth) vis:command('set autoindent') end) |
