helloo
This commit is contained in:
10
configs/nvim/lua/max/plugins/arduino.lua
Normal file
10
configs/nvim/lua/max/plugins/arduino.lua
Normal file
@ -0,0 +1,10 @@
|
||||
return {
|
||||
"vlelo/arduino-helper.nvim",
|
||||
lazy = false,
|
||||
setup = function()
|
||||
vim.notify("Setup")
|
||||
require("arduino-helper").setup {
|
||||
ui = "telescope",
|
||||
}
|
||||
end
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
return {
|
||||
"edluffy/hologram.nvim",
|
||||
ft = "markdown",
|
||||
lazy = false,
|
||||
opts = {
|
||||
auto_display = true,
|
||||
}
|
||||
}
|
@ -31,7 +31,7 @@ return {
|
||||
},
|
||||
should_attach = function()
|
||||
return lsp.util.root_pattern(".eslintrc", ".eslintrc.js", ".eslintrc.cjs", ".eslintrc.yaml", ".eslintrc.json")(
|
||||
vim.fn.expand("%:p")) ~= nil;
|
||||
vim.fn.expand("%:p")) ~= nil;
|
||||
end,
|
||||
})
|
||||
|
||||
@ -162,6 +162,16 @@ return {
|
||||
},
|
||||
}
|
||||
|
||||
-- custom_lsp['arduino_language_server'] = {
|
||||
-- on_new_config = require("arduino").on_new_config,
|
||||
-- }
|
||||
|
||||
-- custom_lsp.clangd = {
|
||||
-- cmd = { "clangd",
|
||||
-- "--query-driver=/home/max/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/**/bin/xtensa-esp32-elf-*" },
|
||||
-- root_dir = lsp.util.root_pattern('build/compile_commands.json', '.git'),
|
||||
-- }
|
||||
|
||||
custom_lsp.rust_analyzer = {
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
|
@ -1,4 +1,7 @@
|
||||
return {
|
||||
"stevearc/oil.nvim",
|
||||
cmd = {
|
||||
"Oil"
|
||||
},
|
||||
config = true
|
||||
}
|
||||
|
@ -22,6 +22,41 @@ return {
|
||||
|
||||
vim.api.nvim_set_keymap("n", "<C-g>", "<cmd>lua _Lazygit_toggle()<CR>", { noremap = true, silent = true })
|
||||
|
||||
|
||||
|
||||
local arduinoMonitor = Terminal:new({
|
||||
cmd = "arduino-cli monitor -p /dev/ttyUSB0",
|
||||
direction = "horizontal",
|
||||
float_opts = {
|
||||
winblend = 0,
|
||||
padding = 10,
|
||||
border = "single",
|
||||
},
|
||||
on_close = function()
|
||||
Terminal:close()
|
||||
end,
|
||||
})
|
||||
vim.api.nvim_create_user_command("ArduinoMonitor", function()
|
||||
arduinoMonitor:toggle()
|
||||
end, {})
|
||||
|
||||
local arduinoUpload = Terminal:new({
|
||||
cmd = "arduino-cli compile --upload",
|
||||
direction = "horizontal",
|
||||
float_opts = {
|
||||
winblend = 0,
|
||||
padding = 10,
|
||||
border = "single",
|
||||
},
|
||||
on_close = function()
|
||||
Terminal:close()
|
||||
end,
|
||||
})
|
||||
vim.api.nvim_create_user_command("ArduinoUpload", function()
|
||||
arduinoUpload:toggle()
|
||||
end, {})
|
||||
|
||||
|
||||
local pnpm = Terminal:new({
|
||||
dir = "git_dir",
|
||||
direction = "float",
|
||||
|
Reference in New Issue
Block a user