style: added trouble ft for the next gen trouble

This commit is contained in:
Folke Lemaitre 2023-10-22 21:44:43 +02:00
parent e7130c8250
commit ef5ec9a3bf
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 12 additions and 2 deletions

View file

@ -40,6 +40,12 @@ return {
end,
},
"Trouble",
{
ft = "trouble",
filter = function(buf, win)
return vim.api.nvim_win_get_config(win).relative == ""
end,
},
{ ft = "qf", title = "QuickFix" },
{
ft = "help",
@ -129,7 +135,7 @@ return {
optional = true,
opts = function(_, opts)
opts.open_files_do_not_replace_types = opts.open_files_do_not_replace_types
or { "terminal", "Trouble", "qf", "Outline" }
or { "terminal", "Trouble", "qf", "Outline", "trouble" }
table.insert(opts.open_files_do_not_replace_types, "edgy")
end,
},