Add nvim lsp formatting configuration example

This commit is contained in:
Sonny Bakker 2025-04-03 22:22:09 +02:00
parent 5e0ff0dbc5
commit ca9edc9d38
2 changed files with 34 additions and 1 deletions

14
files/nvim.conform.lua Normal file
View file

@ -0,0 +1,14 @@
-- example of a project specific nvim configuration file using :exrc and conform
local conform = require 'conform';
conform.setup {
formatters_by_ft = {
python = { 'isort', 'black' },
javascript = { 'prettier', },
},
format_on_save = {
lsp_format = 'never',
}
}