mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-10 19:41:15 +02:00
nvim: added conform.nvim and updated plugins
This commit is contained in:
11
.config/nvim/lua/plugins/conform.lua
Normal file
11
.config/nvim/lua/plugins/conform.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
{
|
||||
'stevearc/conform.nvim',
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
python = { "isort", "black" },
|
||||
markdown = { "mdformat" },
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
@@ -8,7 +8,10 @@ return {
|
||||
config = function()
|
||||
require("null-ls").setup({
|
||||
sources = {
|
||||
-- python
|
||||
require("null-ls").builtins.formatting.isort,
|
||||
require("null-ls").builtins.formatting.black,
|
||||
-- markdown
|
||||
require("null-ls").builtins.formatting.mdformat
|
||||
}
|
||||
})
|
||||
@@ -18,7 +21,7 @@ return {
|
||||
'jay-babu/mason-null-ls.nvim',
|
||||
opts = {
|
||||
automatic_installation = true,
|
||||
ensure_installed = { "black", "mdformat" }
|
||||
ensure_installed = { "isort", "black", "mdformat" }
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user