This commit is contained in:
QQ 2023-10-08 22:40:40 +08:00
parent 4cc25ed0a7
commit 10cda71a9d
2 changed files with 11 additions and 7 deletions

View File

@ -29,16 +29,16 @@ local vscodeplugs = require('vscode.plug')
local neovimplugs = require('neovim.plug')
if G.g.vscode then
plugs = {vscodeplugs, normalplugs}
normalplugs = {vscodeplugs, normalplugs}
else
plugs = {neovimplugs, normalplugs}
normalplugs = {neovimplugs, normalplugs}
end
require("lazy").setup(plugs)
require("lazy").setup(normalplugs)
if G.g.vscode then
require('vscode.vscode')
else
else
require('neovim.neovim')
end

View File

@ -2,7 +2,6 @@ return {
{
'neoclide/coc.nvim',
config = function()
G.opt.backup = false
G.opt.writebackup = false
@ -11,7 +10,10 @@ return {
G.g.coc_global_extensions = {
'coc-pyright',
'coc-java',
'coc-sh',
'coc-sumneko-lua',
'coc-word',
'coc-lists',
'coc-pairs',
'coc-marketplace',
@ -27,8 +29,9 @@ return {
G.map({
{ "i", "<TAB>", 'coc#pum#visible() ? coc#pum#next(1) : v:lua.check_back_space() ? "<TAB>" : coc#refresh()', opts },
{ "i", "<S-TAB>", [[coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"]], opts },
-- { "i", "<TAB>", 'coc#pum#visible() ? coc#pum#next(1) : v:lua.check_back_space() ? "<TAB>" : coc#refresh()', opts },
-- { "i", "<S-TAB>", [[coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"]], opts },
{ "i", "<cr>", [[coc#pum#visible() ? coc#pum#confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"]], opts },
{ "n", "gd", "<Plug>(coc-definition)", {silent = true} },
@ -142,6 +145,7 @@ return {
-- provide custom statusline: lightline.vim, vim-airline
vim.opt.statusline:prepend("%{coc#status()}%{get(b:,'coc_current_function','')}")
-- Mappings for CoCList
-- code actions and coc stuff
---@diagnostic disable-next-line: redefined-local