Skip to content

nvim-ts-autotag + blink.cmp + PHP LSP causes cmp issues #1653

@ALameLlama

Description

@ALameLlama

Checklist

  • I have searched through the AstroNvim documentation
  • I have searched through the existing issues of this project
  • I have searched the existing issues of plugins related to this issue
  • I can replicate the bug with the minimal repro.lua provided below

Neovim version (nvim -v)

0.11.4

Operating system/version

Ubuntu 24.04.2

Terminal/GUI

wezterm

Describe the bug

Since we install nvim-ts-autotag into core AstroNvim and also swapped to using blink.cmp the PHP pack doesn't work with blink.cmp menu

doing this will return no menu

$this->

Steps to Reproduce

  1. Have default AstroNvim enabled with the PHP pack

  2. try to get completion for an object

Expected behavior

To get the cmp menu

Screenshots

No response

Additional Context

This has been reported here saghen/blink.cmp#838 and the solution is too disable nvim-ts-autotag e.g

	{
		"windwp/nvim-ts-autotag",
		enabled = false,
	},

Minimal configuration

-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "runtime", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  -- stylua: ignore
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)

-- install plugins
local plugins = {
  { "AstroNvim/AstroNvim", import = "astronvim.plugins" },
  { "AstroNvim/astrocommunity" },
  { import = "astrocommunity.pack.php" },

  -- add any other plugins/customizations here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

-- add anything else here (autocommands, vim.filetype, etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions