Comments (1)
Resolved it using
--!nocheck
return {
"hrsh7th/nvim-cmp",
dependencies = {
"hrsh7th/cmp-emoji",
},
---@param opts cmp.ConfigSchema
opts = function(_, opts)
local cmp = require("cmp")
opts.mapping = vim.tbl_extend("force", opts.mapping, {
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
-- You could replace select_next_item() with confirm({ select = true }) to get VS Code autocompletion behavior
cmp.select_next_item()
else
fallback()
end
end, { "i", "s", "c" }),
["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif vim.snippet.active({ direction = -1 }) then
vim.schedule(function()
vim.snippet.jump(-1)
end)
else
fallback()
end
end, { "i", "s" }),
})
end,
}
from lazyvim.
Related Issues (20)
- bug: rename is invalid in vue file
- bug: vtsls outputing incorrect diagnostics in Neovim 0.10.0
- bug: Failed to run `config` for fzf-lua HOT 7
- bug: codelldb adapter path incorrect after removal of mason-nvim-dap.nvim dependency HOT 4
- bug: Symlink config files not found
- feature: Document how to override autocommands HOT 2
- bug: Hover get exited when scrolling to the end HOT 3
- bug: after latest update, there is error in edgy HOT 19
- feature: Add full-featured setup guides for different languages, such as lint HOT 2
- bug: breaking change in conform.nvim HOT 3
- bug: there are 2 suggested supertab configurations in website HOT 2
- bug: nvim-metals does not load when Scala extras is enabled HOT 21
- bug: nvim-treesitter error on read-only file system HOT 6
- bug: which-key set `il`/`al`/`in`/`an` even if they are disabled or remapped in `mini.ai` HOT 1
- bug: relative number not working HOT 2
- bug: HOT 1
- bug: formatting is not working if lang.go and formatting.prettier are installed on relevant files HOT 3
- bug(haskell): LazyVim.root does not detect lsp root dir HOT 4
- bug: cannot use <c-cr> when a suggestion is showing HOT 3
- bug: when open fzf-lua split below, another tab sh appear HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lazyvim.