new pluggins
This commit is contained in:
parent
ce804e1a1a
commit
f7b8001852
6 changed files with 29 additions and 13 deletions
|
|
@ -2,16 +2,17 @@ return {
|
|||
{ -- Autoformat
|
||||
'stevearc/conform.nvim',
|
||||
enabled = true,
|
||||
lazy = false,
|
||||
keys = {
|
||||
{ '<leader>cf', '<cmd>lua require("conform").format()<cr>', desc = '[f]ormat' },
|
||||
},
|
||||
config = function()
|
||||
require('conform').setup {
|
||||
notify_on_error = false,
|
||||
-- format_on_save = {
|
||||
-- timeout_ms = 500,
|
||||
-- lsp_fallback = true,
|
||||
-- },
|
||||
format_on_save = {
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
},
|
||||
formatters_by_ft = {
|
||||
lua = { 'mystylua' },
|
||||
python = { 'isort', 'black' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue