This commit is contained in:
YuhangQ 2022-11-25 20:56:35 +08:00
parent d1a1b650ae
commit 87076f7d64
4 changed files with 11 additions and 13 deletions

View File

@ -194,8 +194,6 @@ pluginKeys.cmp = function(cmp)
cmp.select_next_item()
elseif vim.fn["vsnip#available"](1) == 1 then
feedkey("<Plug>(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 `<Tab>`.
end

View File

@ -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,

View File

@ -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")

View File

@ -1,15 +1,24 @@
#include <cstdio>
#include <iostream>
#include <istream>
#include <map>
using namespace std;
map<int, int> 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<int, int> mp;
mp.size();
mp.size();
return 0;
map<int, pair<int, int>> mp2;
}