diff --git a/nvim/lua/user/plugins/editor.lua b/nvim/lua/user/plugins/editor.lua index 5e91f3d..ec663f1 100644 --- a/nvim/lua/user/plugins/editor.lua +++ b/nvim/lua/user/plugins/editor.lua @@ -77,6 +77,19 @@ return { } end, }, + -- Formatting + { + 'stevearc/conform.nvim', + opts = { + default_format_opts = { + lsp_format = "fallback" + } + }, + init = function() + vim.o.formatexpr = "v:lua.require'conform'.formatexpr()" + user.formatter = ":lua require'conform'.format({ async = true }):" + end + }, -- Snippets { "L3MON4D3/LuaSnip",