From f3aa971cac7ee50f374784974455fcca828fed7a Mon Sep 17 00:00:00 2001 From: Anurag Kumar Singh Date: Mon, 11 May 2026 11:45:21 +0530 Subject: [PATCH 1/2] Github-Action test for stylua --- minimal_config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minimal_config.lua b/minimal_config.lua index 150b79fe..3ae1e5bf 100644 --- a/minimal_config.lua +++ b/minimal_config.lua @@ -15,13 +15,13 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then 'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath, + }) end vim.opt.rtp:prepend(lazypath) -local plugins = { - { +local plugins ={{ 'anurag3301/nvim-platformio.lua', -- Dependencies are lazy-loaded by default unless specified otherwise. From a440662ffff61872dbdf76920650b49851c4bc4c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 11 May 2026 06:25:22 +0000 Subject: [PATCH 2/2] style: auto format lua --- lua/platformio/pioinit.lua | 8 ++++---- lua/platformio/piomenu.lua | 6 +++--- minimal_config.lua | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lua/platformio/pioinit.lua b/lua/platformio/pioinit.lua index 031e51f0..f00ecf6f 100644 --- a/lua/platformio/pioinit.lua +++ b/lua/platformio/pioinit.lua @@ -51,16 +51,16 @@ local function pick_framework(board_details) .new(opts, { prompt_title = 'frameworks', finder = finders.new_table({ - results = vim.list_extend({"none"}, board_details['frameworks']), + results = vim.list_extend({ 'none' }, board_details['frameworks']), }), attach_mappings = function(prompt_bufnr, _) actions.select_default:replace(function() actions.close(prompt_bufnr) local selection = action_state.get_selected_entry() local selected_framework = selection[1] - if selected_framework == "none" then - selected_framework = "" - end + if selected_framework == 'none' then + selected_framework = '' + end local command = 'pio project init --board ' .. board_details['id'] .. ' --project-option "framework=' .. selected_framework .. '"' -- .. utils.extra utils.ToggleTerminal(command, 'float', function() diff --git a/lua/platformio/piomenu.lua b/lua/platformio/piomenu.lua index 713e1312..5072153d 100644 --- a/lua/platformio/piomenu.lua +++ b/lua/platformio/piomenu.lua @@ -31,9 +31,9 @@ function M.piomenu(config) end if not wk.did_setup then - wk.setup({ - preset = 'helix', --'modern', --'classic' - }) + wk.setup({ + preset = 'helix', --'modern', --'classic' + }) end local Config = require('which-key.config') Config.sort = { 'order', 'group', 'manual', 'mod' } diff --git a/minimal_config.lua b/minimal_config.lua index 3ae1e5bf..150b79fe 100644 --- a/minimal_config.lua +++ b/minimal_config.lua @@ -15,13 +15,13 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then 'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath, - }) end vim.opt.rtp:prepend(lazypath) -local plugins ={{ +local plugins = { + { 'anurag3301/nvim-platformio.lua', -- Dependencies are lazy-loaded by default unless specified otherwise.