Skip to content

gergol/cmake-debugger.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cmake-debugger.nvim

A simple neovim plugin for debugging cmake files.

Installation

This plugin requires cmake >= 0.27 and nvim-dap.

Installation using lazy:

{
  "gergol/cmake-debugger.nvim",
  dependencies = {
    "mfussenegger/nvim-dap",
  },
  -- setup using default opts
  opts = {}
}

Configuration

You can configure the cmake build dir using opts.cmake_build_dir. If not specified, it defaults to ./build.

Either pass a string

opts = {
    cmake_build_dir = './whatever_build_dir'
}

or a function returning a string

opts = {
    cmake_build_dir = function()
      -- In my config, plugins.cmake4vim sets the vim.g.cmake_build_dir variable.
      require('plugins.cmake4vim')
      return vim.g.cmake_build_dir
    end,
}

Usage

Open any CMakeLists.txt file and start debugging.

About

A simple neovim plugin for debugging cmake files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages