nvim: after/ftplugin/rust: Remove format on save
Formatting on save tends to go completely wrong sometimes for some reason. Just remove it.
This commit is contained in:
parent
ab597f3f45
commit
7ca6a1c1b8
1 changed files with 0 additions and 7 deletions
|
@ -12,13 +12,6 @@ vim.keymap.set('n', 'cbd', ":Dispatch! cargo doc<CR>" , { noremap=true, bu
|
||||||
vim.keymap.set('n', 'cdD', ":Dispatch! cargo doc --open<CR>", { noremap=true, buffer=0 })
|
vim.keymap.set('n', 'cdD', ":Dispatch! cargo doc --open<CR>", { noremap=true, buffer=0 })
|
||||||
vim.keymap.set('n', 'cbu', ":Dispatch! cargo update<CR>" , { noremap=true, buffer=0 })
|
vim.keymap.set('n', 'cbu', ":Dispatch! cargo update<CR>" , { noremap=true, buffer=0 })
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
|
||||||
buffer = 0,
|
|
||||||
callback = function()
|
|
||||||
vim.lsp.buf.format({async=true})
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, {
|
vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, {
|
||||||
pattern = { "*/git/checkouts/*", "*/toolchains/*", "*cargo/registry/*" },
|
pattern = { "*/git/checkouts/*", "*/toolchains/*", "*cargo/registry/*" },
|
||||||
callback = function()
|
callback = function()
|
||||||
|
|
Loading…
Reference in a new issue