Home

Awesome

contextprintf.nvim

neovim plugin to add context aware print debug statements

Installation

Use your favorite plugin manager to install

Plug 'nvim-treesitter/nvim-treesitter'
Plug 'bryall/contextprint.nvim'

Supported Languages / Planned

Options

Call the below statment to change the defaults

    require('contextprint').setup({
        separator_char = "#",  // Global
        <filetype> = {
            separator = "#", // filetype specific
            query = [[ <language specific queries> ]],
            log = function(contents) to return print statement to insert
            type_defaults = vim.tbl_extend to change name defaults
        }
    })

to add context print statement

    require('contextprint').add_statement()

Language Details

contextprint provides the following context for the supplied languages

Lua

Typescript

Python