Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lua/platformio/pioinit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 3 additions & 3 deletions lua/platformio/piomenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down