fix: lazy loading of conform and which-key, raise conform timeout
This commit is contained in:
parent
c7d14d5633
commit
77a1e09678
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
-- Some things are from https://www.josean.com/posts/neovim-linting-and-formatting
|
-- Some things are from https://www.josean.com/posts/neovim-linting-and-formatting
|
||||||
return {
|
return {
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
enabled = true,
|
enabled = true,
|
||||||
tag = "stable",
|
tag = "stable",
|
||||||
opts = {},
|
opts = {},
|
||||||
|
|
@ -33,7 +34,7 @@ return {
|
||||||
-- lsp_fallback = true,
|
-- lsp_fallback = true,
|
||||||
lsp_format = "fallback",
|
lsp_format = "fallback",
|
||||||
async = false,
|
async = false,
|
||||||
timeout_ms = 1000, -- default: 1000
|
timeout_ms = 2000, -- default: 1000
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
return {
|
return {
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
--event = { "BufReadPre", "BufNewFile" },
|
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
init = function()
|
init = function()
|
||||||
vim.o.timeout = true
|
vim.o.timeout = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue