Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin Not Starting With Lazy.nvim #63

Open
lycheeje11y opened this issue Aug 5, 2024 · 1 comment
Open

Plugin Not Starting With Lazy.nvim #63

lycheeje11y opened this issue Aug 5, 2024 · 1 comment

Comments

@lycheeje11y
Copy link

lycheeje11y commented Aug 5, 2024

I'm on mac sonoma with neovim 0.10.0. My probem is that the plugin does not even start. I used lazy.nvim to install it, and I "vim-arduino" in the loaded plugins. But when I open an ino file, the Blink.ino in the examples repository, for instance, there is no Arduino command set.

Here is my vim-arduino.lua file:

return {
	"stevearc/vim-arduino",
	config = function()
		local keymap = vim.keymap
		keymap.set("n", "<cmd>ArduinoAttach<CR>", "<leader>aa", { desc = "Automatically attach to your board" })
		keymap.set("n", "<cmd>ArduinoVerify<CR>", "<leader>av", { desc = "Compile" })
		keymap.set("n", "<cmd>ArduinoUpload<CR>", "<leader>au", { desc = "Upload" })
		keymap.set(
			"n",
			"<cmd>ArduinoUploadAndSerial<CR>",
			"<leader>aus",
			{ desc = "Build, upload, and connect for debugging" }
		)
		keymap.set("n", "<cmd>ArduinoSerial<CR>", "<leader>as", { desc = "Connect for debugging" })
		keymap.set("n", "<cmd>ArduinoChooseBoard<CR>", "<leader>ab", { desc = "Choose board" })
		keymap.set("n", "<cmd>ArduinoChooseProgrammer", "<leader>ap", { desc = "Choose programmer" })
	end,
}
@SebastianBilek
Copy link

SebastianBilek commented Aug 25, 2024

What worked for me was stating the filetype like so:

return {
  "stevearc/vim-arduino",
  ft = "arduino",
  ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants