1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim/lua/user/plugins/editor.lua: add conform.

This commit is contained in:
Henrik Hautakoski 2024-09-01 14:32:01 +02:00
parent 25599c77b2
commit 3b751ae249

View file

@ -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 })<CR>:<DEL>"
end
},
-- Snippets
{
"L3MON4D3/LuaSnip",