mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 09:48:59 +02:00
style: added trouble ft for the next gen trouble
This commit is contained in:
parent
e7130c8250
commit
ef5ec9a3bf
4 changed files with 12 additions and 2 deletions
|
@ -21,6 +21,7 @@ return {
|
||||||
illuminate = true,
|
illuminate = true,
|
||||||
indent_blankline = { enabled = true },
|
indent_blankline = { enabled = true },
|
||||||
lsp_trouble = true,
|
lsp_trouble = true,
|
||||||
|
trouble = true,
|
||||||
mason = true,
|
mason = true,
|
||||||
mini = true,
|
mini = true,
|
||||||
native_lsp = {
|
native_lsp = {
|
||||||
|
|
|
@ -52,7 +52,7 @@ return {
|
||||||
end,
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
sources = { "filesystem", "buffers", "git_status", "document_symbols" },
|
sources = { "filesystem", "buffers", "git_status", "document_symbols" },
|
||||||
open_files_do_not_replace_types = { "terminal", "Trouble", "qf", "Outline" },
|
open_files_do_not_replace_types = { "terminal", "Trouble", "trouble", "qf", "Outline" },
|
||||||
filesystem = {
|
filesystem = {
|
||||||
bind_to_cwd = false,
|
bind_to_cwd = false,
|
||||||
follow_current_file = { enabled = true },
|
follow_current_file = { enabled = true },
|
||||||
|
|
|
@ -40,6 +40,12 @@ return {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
"Trouble",
|
"Trouble",
|
||||||
|
{
|
||||||
|
ft = "trouble",
|
||||||
|
filter = function(buf, win)
|
||||||
|
return vim.api.nvim_win_get_config(win).relative == ""
|
||||||
|
end,
|
||||||
|
},
|
||||||
{ ft = "qf", title = "QuickFix" },
|
{ ft = "qf", title = "QuickFix" },
|
||||||
{
|
{
|
||||||
ft = "help",
|
ft = "help",
|
||||||
|
@ -129,7 +135,7 @@ return {
|
||||||
optional = true,
|
optional = true,
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
opts.open_files_do_not_replace_types = opts.open_files_do_not_replace_types
|
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")
|
table.insert(opts.open_files_do_not_replace_types, "edgy")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
|
@ -228,6 +228,7 @@ return {
|
||||||
"dashboard",
|
"dashboard",
|
||||||
"neo-tree",
|
"neo-tree",
|
||||||
"Trouble",
|
"Trouble",
|
||||||
|
"trouble",
|
||||||
"lazy",
|
"lazy",
|
||||||
"mason",
|
"mason",
|
||||||
"notify",
|
"notify",
|
||||||
|
@ -259,11 +260,13 @@ return {
|
||||||
"dashboard",
|
"dashboard",
|
||||||
"neo-tree",
|
"neo-tree",
|
||||||
"Trouble",
|
"Trouble",
|
||||||
|
"trouble",
|
||||||
"lazy",
|
"lazy",
|
||||||
"mason",
|
"mason",
|
||||||
"notify",
|
"notify",
|
||||||
"toggleterm",
|
"toggleterm",
|
||||||
"lazyterm",
|
"lazyterm",
|
||||||
|
"trouble",
|
||||||
},
|
},
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.b.miniindentscope_disable = true
|
vim.b.miniindentscope_disable = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue