update
This commit is contained in:
parent
4cc25ed0a7
commit
10cda71a9d
6
init.lua
6
init.lua
@ -29,12 +29,12 @@ 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')
|
||||
|
@ -3,7 +3,6 @@ return {
|
||||
'neoclide/coc.nvim',
|
||||
config = function()
|
||||
|
||||
|
||||
G.opt.backup = false
|
||||
G.opt.writebackup = false
|
||||
G.opt.updatetime = 300
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user