diff options
Diffstat (limited to 'lua/lv-autocommands/init.lua')
-rw-r--r-- | lua/lv-autocommands/init.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/lv-autocommands/init.lua b/lua/lv-autocommands/init.lua index 02f8f39e..167e6380 100644 --- a/lua/lv-autocommands/init.lua +++ b/lua/lv-autocommands/init.lua @@ -28,6 +28,9 @@ if O.lang.ruby.autoformat then table.insert(auto_formatters, ruby_format) end local go_format = {'BufWritePre', '*.go', 'lua vim.lsp.buf.formatting_sync(nil,1000)'} if O.lang.go.autoformat then table.insert(auto_formatters, go_format) end +local rust_format = {'BufWritePre', '*.rs', 'lua vim.lsp.buf.formatting_sync(nil,1000)'} +if O.lang.rust.autoformat then table.insert(auto_formatters, rust_format) end + utils.define_augroups({ _general_settings = { {'TextYankPost', '*', 'lua require(\'vim.highlight\').on_yank({higroup = \'Search\', timeout = 200})'}, |