File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ require("cmake-tools").setup {
163163 refresh_rate_ms = 100 , -- how often to iterate icons
164164 },
165165 cmake_virtual_text_support = true , -- Show the target related to current file using virtual text (at right corner)
166+ cmake_use_scratch_buffer = false , -- A buffer that shows what cmake-tools has done
166167}
167168```
168169
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ local const = {
134134 refresh_rate_ms = 100 , -- how often to iterate icons
135135 },
136136 cmake_virtual_text_support = true , -- Show the target related to current file using virtual text (at right corner)
137+ cmake_use_scratch_buffer = false , -- A buffer that shows what cmake-tools has done
137138}
138139
139140return const
Original file line number Diff line number Diff line change @@ -1524,7 +1524,7 @@ function cmake.register_autocmd_provided_by_users()
15241524end
15251525
15261526function cmake .register_scratch_buffer (executor , runner )
1527- if cmake .is_cmake_project () then
1527+ if cmake .is_cmake_project () and const . cmake_use_scratch_buffer then
15281528 vim .schedule (function ()
15291529 scratch .create (executor , runner )
15301530 end )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function scratch.create(executor, runner)
1414 " THIS IS A SCRATCH BUFFER FOR cmake-tools.nvim, YOU CAN SEE WHICH COMMAND THIS PLUGIN EXECUTES HERE." ,
1515 " EXECUTOR: " .. executor .. " RUNNER: " .. runner ,
1616 })
17- vim .api .nvim_buf_set_option (scratch .buffer , " buflisted" , false )
17+ vim .api .nvim_buf_set_option (scratch .buffer , " buflisted" , true )
1818end
1919
2020function scratch .append (cmd )
You can’t perform that action at this time.
0 commit comments