Skip to content

Commit

Permalink
conform format with explicit keybinding
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Jun 30, 2024
1 parent ea0aa37 commit a35569f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lua/plugins/editing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ return {
{ -- Autoformat
'stevearc/conform.nvim',
enabled = true,
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' },
Expand Down

0 comments on commit a35569f

Please sign in to comment.