Skip to content

anurag3301/nvim-platformio.lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ccca890 · Mar 8, 2025
Apr 1, 2024
Mar 7, 2025
Dec 26, 2024
May 23, 2022
Nov 17, 2024
Jul 31, 2021
Dec 26, 2024
Aug 24, 2024

Repository files navigation

nvim-platfromio.lua

PlatformIO wrapper for Neovim written in Lua.

Demo

pio.mp4

Try the plugin with this minimal standalone config without making any changes to your current plugin. Very useful if you facing error while installation or using

wget https://raw.githubusercontent.com/anurag3301/nvim-platformio.lua/main/minimal_config.lua
nvim -u minimal_config.lua

# Now run :Pioinit

Installation

PlatformIO Core

Check the install instructions on the PlatformIO docs

Plugin

Install the plugin using packer

use {
    'anurag3301/nvim-platformio.lua',
    requires = {
        {'akinsho/nvim-toggleterm.lua'},
        {'nvim-telescope/telescope.nvim'},
        {'nvim-lua/plenary.nvim'},
    }
}

Or Install the plugin using lazy

return {
    "anurag3301/nvim-platformio.lua",
    dependencies = {
        { "akinsho/nvim-toggleterm.lua" },
        { "nvim-telescope/telescope.nvim" },
        { "nvim-lua/plenary.nvim" },
    },
}

Usage :h PlatformIO

Configuration

require('platformio').setup({
    lsp = "ccls" --default: ccls, other option: clangd
                 -- If you pick clangd, it also creates compile_commands.json
})

Lazy loading

It's possible to lazy load the plugin using Lazy.nvim, this will load the plugins only when it is needed, to enable lazy loading, add this plugin spec to your config.

cmd = {
    "Pioinit",
    "Piorun",
    "Piocmd",
    "Piolib",
    "Piomon",
    "Piodebug",
    "Piodb",
},

TODO

  • Connect Piodebug with DAP

About

PlatformIO wrapper for neovim written in lua

Resources

License

Stars

Watchers

Forks

Languages