summaryrefslogtreecommitdiff
path: root/lua/lv-autocommands/init.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-06-30 02:19:23 +0430
committerGitHub <[email protected]>2021-06-29 17:49:23 -0400
commit758798b6f9beef165cdffdbe4cc396b6d18b8f8b (patch)
treeed1e9c23380c03bde5a1bb09602010e12bf9c221 /lua/lv-autocommands/init.lua
parentdbad645f9075e54ce1864dba978e61c478b59e64 (diff)
added rust-tools thanks to bob3000 (#544)
* added rust-tools * require_plugin has been removed
Diffstat (limited to 'lua/lv-autocommands/init.lua')
-rw-r--r--lua/lv-autocommands/init.lua3
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})'},