Compare commits
2 Commits
02721b097e
...
683215d09d
| Author | SHA1 | Date | |
|---|---|---|---|
| 683215d09d | |||
| 453e599a57 |
@@ -4,6 +4,7 @@ require("romanzy.plugins.lazygit")
|
||||
require("romanzy.plugins.oil")
|
||||
require("romanzy.plugins.telescope")
|
||||
require("romanzy.plugins.nvim-treesitter")
|
||||
require("romanzy.plugins.conform")
|
||||
require("romanzy.plugins.lsp")
|
||||
-- require("romanzy.plugins.header42")
|
||||
|
||||
|
||||
19
nvim/.config/nvim/lua/romanzy/plugins/conform.lua
Normal file
19
nvim/.config/nvim/lua/romanzy/plugins/conform.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
vim.pack.add({
|
||||
{
|
||||
src = "https://github.com/stevearc/conform.nvim",
|
||||
name = "conform.nvim",
|
||||
},
|
||||
})
|
||||
|
||||
require("conform").setup({
|
||||
formatters_by_ft = {
|
||||
javascript = { "prettier" },
|
||||
javascriptreact = { "prettier" },
|
||||
typescript = { "prettier" },
|
||||
typescriptreact = { "prettier" },
|
||||
},
|
||||
format_on_save = {
|
||||
lsp_format = "fallback",
|
||||
timeout_ms = 2000,
|
||||
},
|
||||
})
|
||||
@@ -1,5 +1,9 @@
|
||||
{
|
||||
"plugins": {
|
||||
"conform.nvim": {
|
||||
"rev": "619363c30309d29ffa631e67c8183f2a72caa373",
|
||||
"src": "https://github.com/stevearc/conform.nvim"
|
||||
},
|
||||
"header42.nvim": {
|
||||
"rev": "d41468df1c53081c909fc78248cf233893b59809",
|
||||
"src": "https://codeberg.org/42nerds/header42.nvim"
|
||||
|
||||
Reference in New Issue
Block a user