Replies: 16 comments 1 reply
-
I thought its simply configurable in
I am not sure why it didnt work, is already using lazy in the
Initially it only had Anyways you shouldnt have much hard time using ccls, as I assume you already use ccls. You should simply need return {
{
"anurag3301/nvim-platformio.lua",
dependencies = {
"akinsho/toggleterm.nvim",
"nvim-telescope/telescope.nvim",
"nvim-telescope/telescope-ui-select.nvim",
"nvim-lua/plenary.nvim",
"folke/which-key.nvim",
"nvim-treesitter/nvim-treesitter",
},
ft = { "c", "cpp", "h", "hpp" },
cmd = {
"Pioinit",
"Piorun",
"Piocmdh",
"Piocmdf",
"Piolib",
"Piomon",
"Piodebug",
"Piodb",
"PioLSP",
},
config = function()
vim.g.pioConfig = {
lsp = "ccls",
menu_key = "<leader>\\",
debug = false,
}
local ok, platformio = pcall(require, "platformio")
if not ok then
vim.notify("Failed to load PlatformIO plugin", vim.log.levels.ERROR)
return
end
platformio.setup(vim.g.pioConfig)
},
} |
Beta Was this translation helpful? Give feedback.
-
|
I don't use I have no idea how to set it up in my neovim since I can't find anything about it so you can see my predicament... |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Mate...there is no way I will make it out of this sane... HOW TO CCLS!?? "If you use ccls, you can ..." HOOOOOOOOOOOOOOOWWW? This is what I find about CCLS... Lazyvim does not come with ccls...I have ccls installed on my computer and then? |
Beta Was this translation helpful? Give feedback.
-
|
I am not sure about LazyVim, you can just install ccls manually on your linux system, run Open a simple C/C++ file to check if it works. This whole thing is literally nothing to do with plugin, you can simply ignore the plugin and run |
Beta Was this translation helpful? Give feedback.
-
|
Yeah. It's not working. I've been in this rabbit hole enough... I will wait for your clangd mirracle... This is the best experience I've got so far. I know it's not optimal, but |
Beta Was this translation helpful? Give feedback.
-
|
Uh I see. ccls is just not an option for you. I'll try to make things better for clangd this week. There is already a discussion #59. Anyways what do you work on, what board and framework. I test it out. |
Beta Was this translation helpful? Give feedback.
-
|
I will add my own, sorry not to be active the past weeks since I have new jobs and it's bit draining my soul despite being remote but for non technical side of this project i have quite of a gripe
Point number 3 i feel is fine when this project started but as its starting to get tractions, people starting contributing it and people starting to complain, i think we need to see the project as public project instead of personal project we already started somewhere with adding
because here's the thing, i use Lazyvim, a distribution, easy nvim config, and my config for this one is not as autistic as the readme, and i use return {
"anurag3301/nvim-platformio.lua",
-- "dhupee/nvim-platformio.lua",
branch = "main", -- branch
cmd = { -- comment it during development
"Pioinit",
"Piorun",
"Piocmd",
"Piolib",
"Piomon",
"Piodb",
"Piocmdh",
"Piocmdf",
"Piodebug",
"PioTermList",
},
dependencies = {
{ "akinsho/toggleterm.nvim" },
{ "nvim-telescope/telescope.nvim" },
{ "nvim-telescope/telescope-ui-select.nvim" },
{ "nvim-lua/plenary.nvim" },
{ "folke/which-key.nvim" },
{ "nvim-treesitter/nvim-treesitter" },
},
config = function()
require("platformio").setup({
lsp = "clangd",
})
end,
}yes the commands are outdated, im too lazy for now |
Beta Was this translation helpful? Give feedback.
-
Congrats buddy 🥳🥳
I dont know how bad ccls is, but clangd is much more feature rich for sure.
Yeah we need to finalise upon basic setup. The config is changing too frequently and breaking things. I didn't think it will reach to a point that it will become a problem.
Yes you are right, I wrote my nvim config like months and months ago and I just picked that, it would be really helpful if you can provide the mordern and standerd way setup a plugin these day, ill also check it out.
And yeah the project was indeed created as personal project to be used my me. Later I thought the small number of people who does embedded stuff on platfromio and uses neovim may like this. For config it seems lot of poeple use LazyVim so there should a wiki or info about setting it up there. |
Beta Was this translation helpful? Give feedback.
-
|
Now real talk, I feel the major problem is the scope of the project. Originally it was made to provide vscode like setup and I think the project has already acheived that. The continuous issues we are getting is lsp errors people see, to fix that all the stuff happened. What my idea is to leave this manual compile_json generation completely until there is a robust alternative Have only |
Beta Was this translation helpful? Give feedback.
-
|
Since this project started to get bigger with the number of contributor and users both appreciating and complaining(which is good tbh), I think we need to do few things in no particular order for now
basically making sure its up to standard with how community repo should shaped like, since currently its a mess wdyt @anurag3301 @batoaqaa |
Beta Was this translation helpful? Give feedback.
-
Problem is responsibility, I am thinking to make this plugin not reponsible for LSP related issues, there will be only
Will try that
Yes, ill disable direct push to main now
Okay but not sure what that would look like
Yeah it seem pretty needed, before merge to main, format it
I'll look how other people have set it up |
Beta Was this translation helpful? Give feedback.
-
|
I agree that it is cumbersome and too much hassle to include full support for LSP in this plugin as we are dealing with cross-compiler/embedded projects. In each project we have to deal with different mcu setups in clangd lsp nvim config and project .clangd file. I believe plain plugin that supports pltformio in nvim is enough, and it is for the developer to learn and to take care for setting LSP. Just for info: so .ccls = compile_flags.txt. if you have trouble setting ccls, then you can use clangd and then copy/rename .ccls to compile_flas.txt and you are good. So, every time you run "pio init --ide vim" which generates/updates the .ccls file, copy/rename .ccls to compile_flas.txt. |
Beta Was this translation helpful? Give feedback.
-
|
Greetings all, I have updated my repository "nvim-platformio.lua" with mini_nvimPlatformio.lua (minimal standalone config) that you run without modifying your existing nvim setup. Actually 'mini_nvimPlatformio.lua' is enough for inexperienced neovim users. they need only install neovim 0.11+ on their device and download/run this file as shown below. wget https://raw.githubusercontent.com/batoaqaa/nvim-platformio.lua/refs/heads/main/mini_nvimPlatformio.lua Or follow to install the full plugin and try it. clangd is will supported/updated from LLVM and big players. I need you to test it and find out if there are any issues. Regards, |
Beta Was this translation helpful? Give feedback.
-
|
Especially knowing in Clangd's case, the simply only to get rid of any future complaints to cover every LSP in existence with replacement being how to set it via typical commands in real talk, i agree that the plugins already cover basically all vscode plugin months ago, if the pio autocomplete is fast enough i dont think life isnt that annoying |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I've been using this plugin for some time and I've been bashing it as you've seen my attempts on other open discussions. I want to come out as supportive of this plugin. It's better than what
vscodehas so far and I like working with it, but not IN IT!To be clear, IF you want this library to have success the following need to happen
I mean, there is no, how to do it with
ccls, how to do it withclangd. Thankfully, lazy extras has clangd, but as you can see, there are a lot of headaches with it.I just grabbed your minimal setup, put it in my lazyvim and just does not work. Throws errors saying that it was expecting a table, not nil.
If clangd is such a problem as I already pointed it out and you don't have time or don't want to fix it, it needs to go. Force ccls, but PLEASE give a basic setup for it. How to install ccls, how to link it to nvim and so on. You will be surprise how little information you find online about ccls.
I really want to use this plugin. I want it to be good. But I am having a hard time using it...
Beta Was this translation helpful? Give feedback.
All reactions