nvim-cmp-lsp-rs icon indicating copy to clipboard operation
nvim-cmp-lsp-rs copied to clipboard

Refine nvim-cmp completion behavior by applying useful filtering and sorting for candidates from Rust Analyzer. (Won't cause side effects on other cmp sources)

Results 3 nvim-cmp-lsp-rs issues
Sort by recently updated
recently updated
newest added

## current Since the suggestion from https://github.com/zjp-CN/nvim-cmp-lsp-rs/issues/4#issuecomment-2041308464 ```lua local compare = require("cmp").config.compare opts.sorting.comparators = { compare.exact, compare.score, comparators.inscope_inherent_import, comparators.sort_by_label_but_underscore_last, } ``` ![](https://github.com/zjp-CN/nvim-cmp-lsp-rs/assets/25300418/c70d491d-7f31-4fdb-b7db-d40ee98773cd) when press `.` without any extra char, `compare.score`...

bug
enhancement

Currently, `sort_by_kind` is sorting from a fixed list. Given the default kind ordering in this plugin, Method is always prior to Function, then it works fine after typing `.`, but...

enhancement

```toml [package] name = "xxx" version = "0.1.0" edition = "2021" [dependencies] color-eyre = "0.6.3" ratatui = "0.26" ``` ```rust #![allow(unused)] use ratatui::prelude::*; fn main() { let s = S...