cmp-buffer
nvim-cmp source for buffer words (by hrsh7th)
packer.nvim
A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config (by wbthomason)
Our great sponsors
cmp-buffer | packer.nvim | |
---|---|---|
10 | 180 | |
512 | 7,591 | |
- | - | |
0.0 | 3.4 | |
5 months ago | about 2 months ago | |
Lua | Lua | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
cmp-buffer
Posts with mentions or reviews of cmp-buffer.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-13.
- Best way to limit string length tokenized for completion suggestion in cmp/buffer?
-
Need some help with cmp suggestion priority / order
sources = cmp.config.sources({ { name = "nvim_lsp", priority = 1, group_index = 1 }, { name = "luasnip" }, { group_index = 2, name = "buffer", priority = 5, option = { -- https://github.com/hrsh7th/cmp-buffer get_bufnrs = function() return vim.api.nvim_list_bufs() end, }, }, { name = "nvim_lsp_signature_help" }, { name = "path" }, }),
-
Make lsp-zero.nvim coexists with other plugins instead of controlling them
cmp-buffer: Completion source. It provides suggestions based on the current file.
-
Why use cmp-buffer?
Then what is the purpose of using cmp-buffer?
-
nvim-cmp source for working with snake case and camel case
Okay I sat down and did exactly what I said in my previous comment. Essentially it's a complete rewrite of my old code that makes things much more generic and flexible. You can take a look at the PR here: https://github.com/hrsh7th/cmp-buffer/pull/60.
-
Autocomplete lines in the current buffer | nvim-cmp-buffer-lines
Good work but can you tell how is it different from https://github.com/hrsh7th/cmp-buffer
-
My Neovim setup for React, TypeScript, Tailwind CSS, etc
hrsh7th/cmp-buffer - nvim-cmp source for buffer words
- Nvim-cmp nonlatin characters
-
Neovim LSP: Setup nvim-lspconfig + nvim-cmp
cmp-buffer
-
LSP omnifunc fuzzy completion?
nvim-cmp is just the autocompletion engine w/ fuzzy matching and other filtering options. To get items to be filled from cmp you will need sources, for example: hrsh7th/cmp-nvim-lsp plugin will provide items from a LSP server to cmp, so you can get items you can fuzzy match in. Another one is items from buffers: hrsh7th/cmp-buffer
packer.nvim
Posts with mentions or reviews of packer.nvim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-21.
-
thethethe.nvim - neovim friendly autocorrect plugin
packer
-
Help Enablin Powerline Font for Lightline in Kitty NeoVim
-- Check if Packer.nvim is already installed if fn.empty(fn.glob(install_path)) > 0 then -- If not installed, clone it from GitHub fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) -- Load Packer.nvim vim.cmd [[packadd packer.nvim]] return true end return false end
-
Installing neovim on windows 10 does not work (no really, it doesn't)
local ensure_packer = function() local fn = vim.fn local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) vim.cmd [[packadd packer.nvim]] return true end return false end
-
Issue with treesitter highlights, disappears after 5 seconds each time
local fn = vim.fn -- Automatically install packer local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then PACKER_BOOTSTRAP = fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path, }) print("Installing packer close and reopen Neovim...") vim.cmd([[packadd packer.nvim]]) end -- Autocommand that reloads neovim whenever you save the plugins.lua file vim.cmd([[ augroup packer_user_config autocmd! autocmd BufWritePost plugins.lua source | PackerSync augroup end ]]) -- Use a protected call so we don't error out on first use local status_ok, packer = pcall(require, "packer") if not status_ok then return end -- Have packer use a popup window packer.init({ display = { open_fn = function() return require("packer.util").float({ border = "rounded" }) end, }, }) -- Install your plugins here return packer.startup(function(use) -- My plugins here use({ "wbthomason/packer.nvim" }) -- Have packer manage itself use({ "nvim-lua/plenary.nvim" }) -- Useful lua functions used by lots of plugins use({ "windwp/nvim-autopairs" }) -- Autopairs, integrates with both cmp and treesitter use({ "numToStr/Comment.nvim" }) use({ "JoosepAlviste/nvim-ts-context-commentstring" }) use({ "kyazdani42/nvim-web-devicons" }) use({ "akinsho/bufferline.nvim" }) use({ "moll/vim-bbye" }) use({ "nvim-lualine/lualine.nvim" }) use({ "akinsho/toggleterm.nvim" }) use({ "ahmedkhalf/project.nvim" }) use({ "lewis6991/impatient.nvim" }) use({ "lukas-reineke/indent-blankline.nvim" }) use({ "goolord/alpha-nvim" }) use("folke/which-key.nvim") -- Colorschemes use({ "folke/tokyonight.nvim" }) use("lunarvim/darkplus.nvim") use("bluz71/vim-moonfly-colors") use("fcpg/vim-fahrenheit") use("rainglow/vim") use("wojciechkepka/vim-github-dark") use("gavinok/spaceway.vim") use({"mcchrish/zenbones.nvim", requires = "rktjmp/lush.nvim"}) use({ "ellisonleao/gruvbox.nvim" }) -- Gruvbox theme -- LSP use({ "neovim/nvim-lspconfig" }) -- enable LSP use({ "williamboman/nvim-lsp-installer" }) -- simple to use language server installer use({ "jose-elias-alvarez/null-ls.nvim" }) -- for formatters and linters -- Telescope use({ "nvim-telescope/telescope.nvim" }) -- Treesitter use("nvim-treesitter/nvim-treesitter", {run = ':TSUpdate'}) use("nvim-treesitter/nvim-treesitter-context") use("nvim-treesitter/playground") -- Editor plugins use({ "karb94/neoscroll.nvim" }) -- Git use({ "lewis6991/gitsigns.nvim" }) -- LSP Zero use { 'VonHeikemen/lsp-zero.nvim', requires = { -- LSP Support {'neovim/nvim-lspconfig'}, -- Required {'williamboman/mason.nvim'}, -- Optional {'williamboman/mason-lspconfig.nvim'}, -- Optional -- Autocompletion {'hrsh7th/nvim-cmp'}, -- Required {'hrsh7th/cmp-buffer'}, {'hrsh7th/cmp-path'}, {'hrsh7th/cmp-nvim-lua'}, {'hrsh7th/cmp-nvim-lsp'}, -- Required {'L3MON4D3/LuaSnip'}, -- Required {'rafamadriz/friendly-snippets'}, } } -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins if PACKER_BOOTSTRAP then require("packer").sync() end end)
-
Editing init.lua with lua_ls on gives "Undefined global : vim" ?
require('packer').startup(function(use) use 'https://github.com/wbthomason/packer.nvim' use 'https://github.com/neovim/nvim-lspconfig' end)
- error message whenever I write a file
-
[Help] Packer.nvim
git clone --depth 1 https://github.com/wbthomason/packer.nvim\ ~/.local/share/nvim/site/pack/packer/start/packer.nvim
-
Pyright Won't Let me Quit Python Files
``` vim.g.maplocalleader = " " vim.g.mapleader = " " local ensure_packer = function() local fn = vim.fn local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }) vim.cmd([[packadd packer.nvim]]) return true end return false end
- [Neovim] Gestionnaire de packages basé à Lua
What are some alternatives?
When comparing cmp-buffer and packer.nvim you can also consider the following projects:
cmp-nvim-lsp - nvim-cmp source for neovim builtin LSP client
vim-plug - :hibiscus: Minimalist Vim Plugin Manager
cmp-rg - ripgrep source for nvim-cmp
lazy.nvim - 💤 A modern plugin manager for Neovim
cmp-git - Git source for nvim-cmp
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
nvim-cmp - A completion plugin for neovim coded in Lua.
nvim-lspconfig - Quickstart configs for Nvim LSP
mason-lspconfig.nvim - Extension to mason.nvim that makes it easier to use lspconfig with mason.nvim.
paq-nvim - 🌚 Neovim package manager
friendly-snippets - Set of preconfigured snippets for different languages.
gruvbox.nvim - Lua port of the most famous vim colorscheme
cmp-buffer vs cmp-nvim-lsp
packer.nvim vs vim-plug
cmp-buffer vs cmp-rg
packer.nvim vs lazy.nvim
cmp-buffer vs cmp-git
packer.nvim vs nvim-treesitter
cmp-buffer vs nvim-cmp
packer.nvim vs nvim-lspconfig
cmp-buffer vs mason-lspconfig.nvim
packer.nvim vs paq-nvim
cmp-buffer vs friendly-snippets
packer.nvim vs gruvbox.nvim