mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-04 10:05:37 +02:00
Add autoformatting for ruby (#305)
This commit is contained in:
parent
9bd32d7f95
commit
1eb8339a47
2 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,9 @@ if O.lua.autoformat then table.insert(auto_formatters, lua_format) end
|
|||
local json_format = {'BufWritePre', '*.json', 'lua vim.lsp.buf.formatting_sync(nil, 1000)'}
|
||||
if O.json.autoformat then table.insert(auto_formatters, json_format) end
|
||||
|
||||
local ruby_format = {'BufWritePre', '*.rb', 'lua vim.lsp.buf.formatting_sync(nil,1000)'}
|
||||
if O.ruby.autoformat then table.insert(auto_formatters, ruby_format) end
|
||||
|
||||
utils.define_augroups({
|
||||
_general_settings = {
|
||||
{'TextYankPost', '*', 'lua require(\'vim.highlight\').on_yank({higroup = \'Search\', timeout = 200})'},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue