|
|
@ -764,14 +764,20 @@ require('lazy').setup({
|
|
|
|
lsp_format = 'fallback',
|
|
|
|
lsp_format = 'fallback',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
timeout_ms = 2000,
|
|
|
|
|
|
|
|
lsp_format = lsp_format_opt,
|
|
|
|
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
end,
|
|
|
|
formatters_by_ft = {
|
|
|
|
formatters_by_ft = {
|
|
|
|
lua = { 'stylua' },
|
|
|
|
lua = { 'stylua' },
|
|
|
|
-- Conform can also run multiple formatters sequentially
|
|
|
|
-- Conform can also run multiple formatters sequentially
|
|
|
|
python = { 'ruff_fix', 'ruff_format', 'ruff_organize_imports' },
|
|
|
|
python = { 'ruff_format', 'ruff_organize_imports' },
|
|
|
|
json = {},
|
|
|
|
json = { 'prettier' },
|
|
|
|
-- You can use 'stop_after_first' to run the first available formatter from the list
|
|
|
|
-- You can use 'stop_after_first' to run the first available formatter from the list
|
|
|
|
javascript = { 'prettierd', 'prettier', stop_after_first = true },
|
|
|
|
javascript = { 'prettierd', 'prettier', stop_after_first = true },
|
|
|
|
|
|
|
|
yaml = { 'prettierd', 'prettier', stop_after_first = true },
|
|
|
|
|
|
|
|
typescript = { 'prettierd', 'prettier', stop_after_first = true },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -992,7 +998,7 @@ require('lazy').setup({
|
|
|
|
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
|
|
|
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
|
|
|
--
|
|
|
|
--
|
|
|
|
-- require 'kickstart.plugins.debug',
|
|
|
|
-- require 'kickstart.plugins.debug',
|
|
|
|
-- require 'kickstart.plugins.indent_line',
|
|
|
|
require 'kickstart.plugins.indent_line',
|
|
|
|
-- require 'kickstart.plugins.lint',
|
|
|
|
-- require 'kickstart.plugins.lint',
|
|
|
|
-- require 'kickstart.plugins.autopairs',
|
|
|
|
-- require 'kickstart.plugins.autopairs',
|
|
|
|
-- require 'kickstart.plugins.neo-tree',
|
|
|
|
-- require 'kickstart.plugins.neo-tree',
|
|
|
|