Merge branch 'main' of personalgit:d0zingcat/dotfiles

This commit is contained in:
Lee Tang
2023-02-15 23:08:30 +08:00
4 changed files with 28 additions and 23 deletions

View File

@@ -24,6 +24,8 @@ brew "fzf"
brew "git"
brew "gnupg"
brew "go"
brew "node"
brew "graphql-cli"
brew "helm"
brew "zookeeper"
brew "kafka"
@@ -36,7 +38,6 @@ brew "mas"
brew "zlib"
brew "mysql", restart_service: true
brew "neovim"
brew "node"
brew "pinentry-mac"
brew "pnpm"
brew "postgresql@14"
@@ -71,6 +72,7 @@ cask "google-drive"
cask "lark"
cask "logi-options-plus"
cask "logseq"
cask "microsoft-edge"
cask "ngrok"
cask "notion"
cask "rapidapi"
@@ -93,6 +95,7 @@ mas "Notion Web Clipper", id: 1559269364
mas "Reeder", id: 1529448980
mas "Slack", id: 803453959
mas "Twitter", id: 1482454543
mas "Userscripts", id: 1463298887
mas "Vimari", id: 1480933944
mas "WeChat", id: 836500024
mas "Xcode", id: 497799835

View File

@@ -10,6 +10,7 @@ local o, wo, bo = vim.o, vim.wo, vim.bo
local buffer = { o, bo }
local window = { o, wo }
local utils = require('utils')
local map = utils.map
local set = utils.set
@@ -157,10 +158,11 @@ map('i', '<F1>', '<nop>')
-- map('n', '<leader>e', '1<c-w>w')
-- map('n', '<leader>p', ':wincmd p<CR>')
-- map('i', '<C-e>', 'copilot#Accept()', { expr = true })
-- vim.g.copilot_no_tab_map = 1
-- vim.g.copilot_no_maps = 1
-- vim.g.copilot_assume_mapped = 1
map('i', '<C-e>', 'copilot#Accept()', { expr = true })
vim.g.copilot_no_tab_map = 1
vim.g.copilot_no_maps = 1
vim.g.copilot_assume_mapped = 1
require('plugins')
require('funcs')

View File

@@ -24,18 +24,18 @@ cmp.setup({
mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-e>'] = cmp.mapping.complete(),
-- ['<C-e>'] = cmp.mapping.complete(),
--["<C-e>"] = cmp.mapping.close(),
-- ['<C-e>'] = function(fallback)
-- fallback()
-- end,
['<C-e>'] = function(fallback)
fallback()
end,
['<CR>'] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Replace,
select = true,
}),
['<C-y>'] = cmp.mapping.confirm({ select = true }),
-- ['<C-n>'] = cmp.mapping.select_next_item(),
-- ['<C-p>'] = cmp.mapping.select_prev_item(),
-- ['<C-n>'] = cmp.mapping.select_next_item(),
-- ['<C-p>'] = cmp.mapping.select_prev_item(),
--},
}),
sources = {

View File

@@ -127,18 +127,18 @@ return require('packer').startup(function(use)
require('config.lsp_lines')
end,
})
--use({
--'github/copilot.vim',
--setup = function()
--vim.g.copilot_no_tab_map = 1
--vim.g.copilot_no_maps = 1
--vim.g.copilot_assume_mapped = 1
--end,
--config = function()
--local map = require('utils').map
--map('i', '<C-e>', 'copilot#Accept()', { expr = true })
--end,
--})
use({
'github/copilot.vim',
setup = function()
vim.g.copilot_no_tab_map = 1
vim.g.copilot_no_maps = 1
vim.g.copilot_assume_mapped = 1
end,
config = function()
local map = require('utils').map
map('i', '<C-e>', 'copilot#Accept()', { expr = true })
end,
})
use({
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate',