mirror of
https://github.com/pnx/dotfiles
synced 2026-07-03 15:03:40 +02:00
nvim/lua/user/plugins/editor.lua: add conform.
This commit is contained in:
parent
25599c77b2
commit
3b751ae249
1 changed files with 13 additions and 0 deletions
|
|
@ -77,6 +77,19 @@ return {
|
||||||
}
|
}
|
||||||
end,
|
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
|
-- Snippets
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue