@@ -36,7 +36,7 @@ return {
3636 { filetype = " fugitive" },
3737 },
3838 right = {
39- min_width = 46 ,
39+ { filetype = " * " , min_width = 46 } ,
4040 { filetype = " copilot-chat" },
4141 { filetype = " neotest-summary" },
4242 { filetype = { " dapui_watches" , " dapui_scopes" , " dapui_stacks" , " dapui_breakpoints" } },
@@ -48,7 +48,7 @@ return {
4848 { filetype = " noice" }, -- noice opens large notifications in a buffer
4949 },
5050 left = {
51- min_width = 46 ,
51+ { filetype = " * " , min_width = 46 } ,
5252 { filetype = " fugitiveblame" },
5353 { filetype = " fyler" },
5454 { filetype = " neotree" },
@@ -83,41 +83,34 @@ programs.nvf.settings.vim.lazy.plugins = {
8383 main = {
8484 width = 148;
8585 };
86+ # TIP: find a buffer's filetype with :lua print(vim.bo.filetype)
8687 top = [
8788 { filetype = "fugitive"; }
8889 { filetype = "git"; }
8990 { filetype = "man"; }
9091 { filetype = "help"; }
9192 { filetype = "gitcommit"; }
9293 ];
93- right =
94- lib.generators.mkLuaInline # lua
95- ''
96- {
97- min_width = 46,
98- { filetype = "copilot-chat" },
99- { filetype = "neotest-summary" },
100- { filetype = { "dapui_watches", "dapui_scopes", "dapui_stacks", "dapui_breakpoints" } },
101- }
102- '';
94+ right = [
95+ { filetype = "*", min_width = 46 },
96+ { filetype = "copilot-chat" },
97+ { filetype = "neotest-summary" },
98+ { filetype = { "dapui_watches", "dapui_scopes", "dapui_stacks", "dapui_breakpoints" } },
99+ ]
103100 bottom = [
104101 { filetype = "dap-repl"; }
105102 { filetype = "qf"; }
106103 { filetype = "trouble"; }
107104 { filetype = "noice"; } # noice opens large notifications in a buffer
108105 ];
109- left =
110- lib.generators.mkLuaInline # lua
111- ''
112- {
113- min_width = 46,
114- { filetype = "fugitiveblame" },
115- { filetype = "fyler" },
116- { filetype = "neotree" },
117- { filetype = "dbui" },
118- { filetype = { "undotree", "diff" } },
119- }
120- '';
106+ left = [
107+ { filetype = "*", min_width = 46 },
108+ { filetype = "fugitiveblame" },
109+ { filetype = "fyler" },
110+ { filetype = "neotree" },
111+ { filetype = "dbui" },
112+ { filetype = { "undotree", "diff" } },
113+ ]
121114 };
122115 };
123116};
0 commit comments