mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-14 04:07:18 +00:00
6 lines
182 B
Lua
6 lines
182 B
Lua
|
local vim = require("vim")
|
||
|
local cmd = vim.cmd
|
||
|
|
||
|
-- Always automatically format on write for given filenames
|
||
|
cmd[[autocmd BufWritePre *.js lua vim.lsp.buf.formatting_sync(nil, 100)]]
|