autoinstall formatters and automatting
This commit is contained in:
parent
743c03a1b6
commit
b290445c7a
7 changed files with 39 additions and 10 deletions
13
lua/custom/plugins/conform.lua
Normal file
13
lua/custom/plugins/conform.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
'stevearc/conform.nvim',
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
python = { "isort", "black" },
|
||||
},
|
||||
format_on_save = {
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -5,4 +5,6 @@
|
|||
return {
|
||||
'mg979/vim-visual-multi',
|
||||
'nvim-treesitter/nvim-treesitter-context',
|
||||
'nvim-lua/plenary.nvim',
|
||||
'ThePrimeagen/harpoon',
|
||||
}
|
||||
|
|
|
|||
8
lua/custom/plugins/mason-null-ls.lua
Normal file
8
lua/custom/plugins/mason-null-ls.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
return {
|
||||
"jay-babu/mason-null-ls.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
dependencies = { "williamboman/mason.nvim", "jose-elias-alvarez/null-ls.nvim" },
|
||||
config = function()
|
||||
require("custom.config.mason-null-ls-config")
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue