vim-ccls
rust-tools.nvim
vim-ccls | rust-tools.nvim | |
---|---|---|
6 | 90 | |
92 | 2,165 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | 4 months ago | |
Vim Script | Lua | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vim-ccls
- Vim-ccls: Vim plugin for the ccls language server
-
Getting neovim setup for C++ dev - CCLS
I've tried ccls.nvim and vim-ccls - any other recommendations?
-
State of the call hierarchy functionality
There is Litee's Calltree but I couldn't make it work. For C/C++, there is the Vim-Ccls plugin that adds those functionalities (although I don't like the UI). But in order to use it I had to switch from Clangd to Ccls and it broke the symbol tree of 2 plugins I had : Sidebar.nvim (which I actively used) and symbols-outline.nvim (an old plugin I tried to use again, but is broken by the change as well).
-
Extension like rust-tools.nvim, but for clangd (C & C++)
First I strip down ccls like this lua local cinit = function(client) require("mappings").nvim_lsp() local rc = client.resolved_capabilities rc.document_formatting = false rc.document_range_formatting = false rc.document_highlight = false rc.document_symbol = false rc.workspace_symbol = false rc.rename = false rc.hover = false rc.completion = false rc.code_action = false end require('lspconfig').ccls.setup{ on_init = cinit, handlers = { ["textDocument/publishDiagnostics"] = function(...) return nil end, ["textDocument/signatureHelp"] = function(...) return nil end, }, single_file_support = true, root_dir = Lsp.util.root_pattern("compile_commands.json", "compile_flags.txt", ".git"), } and then use vim-ccls for the AST extensions, config it with mappings.
-
GitHub - ldelossa/calltree.nvim: Neovim's missing call-hierarchy UI. (Help Test!!)
I use https://github.com/m-pilia/vim-ccls, and was hoping to find something more general. Thank you for making this.
-
Switching to nvim-lsp
you could go the route of writing your on handlers. I was incredibly lazy. there exists Martin Pilla' amazing plugin that does just that. All the hierarchy based jumps provided by ccls are inside that plugin.
rust-tools.nvim
-
[Experimental] Auto find Rust executables for DAP | Linux
This is not a robust solution to the problem. I haven't worked on a large Rust project, so I do not know if this is valid for all kinds of Rust projects. Maybe there is a better debugging config setups/plugins out there (simrat39/rust-tools.nvim is one from what I have searched for). I plan to keep using this config, till it breaks; and try and fix it when it does.
-
NeoVim IDE setup
rust-tools is what I'm currently using, https://github.com/simrat39/rust-tools.nvim
-
What editor are you using for Rust?
I then took the snippet from, I also changed the path to the correct install path of the above. https://github.com/simrat39/rust-tools.nvim/wiki/Debugging
-
Neovim & Rust
rust-tools.nvim and crates.nvim should be helpful for you. :)
-
What's your current Vim+Rust setup?
I'd start with nvim-treesitter, nvim-lspconfig, and use rust-tools.nvim as an accelerant. Any remaining advice I'd have is about Neovim but not about Rust. That advice would also be mostly questions of taste for this-or-that decisions.
-
Refactoring
Are you using https://github.com/simrat39/rust-tools.nvim/ ?
-
Rust + Neovim setup gotcha
TIL that if you install Rust via Homebrew (like brew install rust), auto formatting (or more specifically, lsp formatting) doesn't work properly. I used both Rust Analyzer and rust-tools) to setup rust lsp and configured it with tons of options, thinking maybe something will work but somehow, one thing never did - auto formatting. This is the command I use for setting up auto formatting via lsp:
-
What setup do you use to program in rust?
neovim + native lsp with rust-tools.nvim, running nixos so I use flakes for my dev environments
- [Neovim] Rust-tools.nvim: outils pour des fonctionnalités supplémentaires sur Rust Analyzer
-
NVim, Rust, LSP (rust-analyzer + rust-tools) issue
I opened an issue https://github.com/simrat39/rust-tools.nvim/issues/369 after searching for such behavior in existing ones. But I also ask here in case it's a known problem.
What are some alternatives?
ale - Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
NvChad - Blazing fast Neovim config providing solid defaults and a beautiful UI, enhancing your neovim experience.
litee-calltree.nvim - Neovim's missing call hierarchy UI
LunarVim - 🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
litee.nvim - A framework for building Neovim plugins
helix - A post-modern modal text editor.
symbols-outline.nvim - A tree like view for symbols in Neovim using the Language Server Protocol. Supports all your favourite languages.
nvim-cmp - A completion plugin for neovim coded in Lua.
vim-yggdrasil - Vim library to generate tree-like views
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
dotfiles
lsp_extensions.nvim - Repo to hold a bunch of info & extension callbacks for built-in LSP. Use at your own risk :wink: