align keymap to vscode

This commit is contained in:
2026-03-20 10:41:10 +02:00
parent 5e8c8e7af2
commit ccf1054eee
4 changed files with 49 additions and 32 deletions

View File

@@ -132,6 +132,13 @@ return {
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<CR>"] = cmp.mapping.confirm({ select = true }),
["<Tab>"] = cmp.mapping(function(fallback) -- add this
if cmp.visible() then
cmp.confirm({ select = true })
else
fallback()
end
end, { "i", "s" }),
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" },

9
lua/plugins/mini-ai.lua Normal file
View File

@@ -0,0 +1,9 @@
return {
"echasnovski/mini.ai",
version = "*",
config = function()
require("mini.ai").setup({
search_method = "next",
})
end,
}

View File

@@ -1,31 +1,31 @@
return {
"nvim-treesitter/nvim-treesitter",
lazy = false,
build = ":TSUpdate",
config = function()
require("nvim-treesitter").setup({
install_dir = vim.fn.stdpath("data") .. "/site",
highlight = { enable = true },
indent = { enable = true },
autotag = { enable = true },
ensure_installed = {
"lua",
"vim",
"vimdoc",
"query",
"dart",
"python",
"dockerfile",
"yaml",
"bash",
"json",
"html",
"css",
"javascript",
"sql",
"markdown",
"markdown_inline",
},
})
end,
"nvim-treesitter/nvim-treesitter",
lazy = false,
build = ":TSUpdate",
config = function()
require("nvim-treesitter").setup({
install_dir = vim.fn.stdpath("data") .. "/site",
highlight = { enable = true },
indent = { enable = true },
autotag = { enable = true },
ensure_installed = {
"lua",
"vim",
"vimdoc",
"query",
"dart",
"python",
"dockerfile",
"yaml",
"bash",
"json",
"html",
"css",
"javascript",
"sql",
"markdown",
"markdown_inline",
},
})
end,
}