feat: Neovim config mit LSP, Treesitter und PlatformIO
This commit is contained in:
parent
c2b9c8f3c9
commit
824ff44370
9 changed files with 345 additions and 0 deletions
31
nvim/lua/plugins/platformio.lua
Normal file
31
nvim/lua/plugins/platformio.lua
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
return {
|
||||
-- Terminal Toggle
|
||||
{
|
||||
'akinsho/toggleterm.nvim',
|
||||
version = '*',
|
||||
opts = {
|
||||
size = 15,
|
||||
open_mapping = [[<C-t>]],
|
||||
direction = 'float',
|
||||
},
|
||||
},
|
||||
|
||||
-- PlatformIO Keymaps (custom)
|
||||
{
|
||||
'folke/which-key.nvim',
|
||||
config = function()
|
||||
local wk = require('which-key')
|
||||
wk.setup()
|
||||
|
||||
-- PlatformIO Befehle
|
||||
wk.add({
|
||||
{ '<leader>p', group = 'PlatformIO' },
|
||||
{ '<leader>pb', '<cmd>!pio run<cr>', desc = 'Build' },
|
||||
{ '<leader>pu', '<cmd>!pio run -t upload<cr>', desc = 'Upload' },
|
||||
{ '<leader>pc', '<cmd>!pio run -t clean<cr>', desc = 'Clean' },
|
||||
{ '<leader>pm', '<cmd>TermExec cmd="pio device monitor"<cr>', desc = 'Serial Monitor' },
|
||||
{ '<leader>pi', '<cmd>!pio init<cr>', desc = 'Init Project' },
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue