feat: Add format paragraph keybinding and enable python formatting

This commit is contained in:
Max Lübke 2025-02-26 10:09:11 +01:00
parent 3b2a050ed0
commit 3f22fd91c8

View File

@ -198,6 +198,8 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
vim.keymap.set('n', '<leader>tt', '<cmd>Neotree<CR>', { desc = 'Toggle Neo[T]ree' })
vim.keymap.set('n', '<m-q>', 'gqap', { desc = 'Format paragraph' })
local map = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }
@ -795,7 +797,7 @@ require('lazy').setup({
c = { 'clang-format' },
cpp = { 'clang-format' },
-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
python = { 'isort', 'black' },
--
-- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true },