diff --git a/lua/keybindings.lua b/lua/keybindings.lua index 6d372c0..1060ff8 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -194,8 +194,6 @@ pluginKeys.cmp = function(cmp) cmp.select_next_item() elseif vim.fn["vsnip#available"](1) == 1 then feedkey("(vsnip-expand-or-jump)", "") - elseif has_words_before() then - cmp.complete() else fallback() -- The fallback function sends a already mapped key. In this case, it's probably ``. end diff --git a/lua/plugin-config/nvim-tree.lua b/lua/plugin-config/nvim-tree.lua index 7f2fe34..647e3ea 100644 --- a/lua/plugin-config/nvim-tree.lua +++ b/lua/plugin-config/nvim-tree.lua @@ -11,12 +11,6 @@ nvim_tree.setup({ git = { enable = false, }, - -- project plugin 需要这样设置 - update_cwd = true, - update_focused_file = { - enable = true, - update_cwd = true, - }, -- 隐藏 .文件 和 node_modules 文件夹 filters = { dotfiles = true, diff --git a/lua/plugins.lua b/lua/plugins.lua index 560f858..b29058e 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -42,9 +42,6 @@ packer.startup({ use("hrsh7th/cmp-path") -- { name = 'path' } use("hrsh7th/cmp-cmdline") -- { name = 'cmdline' } - -- 常见编程语言代码段 - use("rafamadriz/friendly-snippets") - --------------------- colorschemes -------------------- -- tokyonight use("folke/tokyonight.nvim") diff --git a/test.cpp b/test.cpp index 45d61ce..2e7d029 100644 --- a/test.cpp +++ b/test.cpp @@ -1,15 +1,24 @@ #include #include +#include #include using namespace std; +map mp; + +int tree[1000]; +void build_tree(int p, int l, int r) { + int mid = (l + r) >> 1; + build_tree(p << 1, l, mid); + build_tree(p<<1|1, mid+1, r); +} int main (int argc, char *argv[]) { map mp; mp.size(); mp.size(); - - return 0; + map> mp2; } +