mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 19:30:01 +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,
|
||||
},
|
||||
-- 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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue