Civitasv / cmake-tools.nvim

CMake integration in Neovim
GNU General Public License v3.0
380 stars 68 forks source link

Feature:Easier to use #240

Open rgzntrade opened 5 months ago

rgzntrade commented 5 months ago
  1. similar to neovim's compile_commands.json copy function local function copy_compile_commands(source_folder) local filename = 'compile_commands.json' local source = source_folder / filename local destination = Path:new(vim.loop.cwd(), filename) source:copy({ destination = destination.filename }) end
  2. Similar to neovim's working_dir configuration feature, you don't need to configure working_dif when debugging. The configuration is usually in the project home directory, not the compiled executable directory. So the default working_dif should be the project home directory.
  3. similar to neovim's build_dir configuration build_dir = tostring(Path:new('{cwd}', 'build', '{os}-{build_type}')),