This commit is contained in:
2023-06-22 17:17:26 +02:00
parent 2d81e0a579
commit b024b8c828
17 changed files with 521 additions and 146 deletions

View File

@ -0,0 +1,10 @@
return {
"vlelo/arduino-helper.nvim",
lazy = false,
setup = function()
vim.notify("Setup")
require("arduino-helper").setup {
ui = "telescope",
}
end
}

View File

@ -1,8 +0,0 @@
return {
"edluffy/hologram.nvim",
ft = "markdown",
lazy = false,
opts = {
auto_display = true,
}
}

View File

@ -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"] = {

View File

@ -1,4 +1,7 @@
return {
"stevearc/oil.nvim",
cmd = {
"Oil"
},
config = true
}

View File

@ -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",