mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
add: auto switch to conform if use default config language
This commit is contained in:
parent
22202bc11b
commit
fbd69d94ec
7 changed files with 295 additions and 258 deletions
|
@ -20,6 +20,7 @@ if pcode.active_javascript_config.active then
|
|||
"stevearc/conform.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = function(_, opts)
|
||||
opts.formatters_by_ft = opts.formatters_by_ft or {}
|
||||
local package = "prettier"
|
||||
require("user.utils.masoncfg").try_install(package)
|
||||
opts.formatters_by_ft.javascript = { package }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue