From fa9ea104a2e809de502b4966df5853e43c496b55 Mon Sep 17 00:00:00 2001 From: QQ <1770362456@qq.com> Date: Sun, 19 Mar 2023 15:41:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coc-settings.json => lua/Plugin/coc-settings.json | 5 ++--- lua/Plugin/coc.lua | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) rename coc-settings.json => lua/Plugin/coc-settings.json (67%) diff --git a/coc-settings.json b/lua/Plugin/coc-settings.json similarity index 67% rename from coc-settings.json rename to lua/Plugin/coc-settings.json index 07e058b..954df77 100644 --- a/coc-settings.json +++ b/lua/Plugin/coc-settings.json @@ -1,9 +1,8 @@ { - "snippets.ultisnips.pythonPrompt": false, "explorer.icon.enableNerdfont": true, "explorer.toggle": true, "outline.autoWidth": true, - "outline.autoPreview": true - // "outline.togglePreviewKey": "p" + "outline.autoPreview": true, + "data.home": "~", } diff --git a/lua/Plugin/coc.lua b/lua/Plugin/coc.lua index 2e24601..ee5c7ce 100644 --- a/lua/Plugin/coc.lua +++ b/lua/Plugin/coc.lua @@ -1,5 +1,7 @@ local G = require('G') +G.g.coc_user_config = G.fn.stdpath('config') .. 'lua/Plugin/coc-settings.json' + G.g['coc_global_extensions'] = { "coc-clangd", "coc-python", @@ -135,3 +137,6 @@ G.api.nvim_create_user_command("OR", "call CocActionAsync('runCommand', 'editor. -- provide custom statusline: lightline.vim, vim-airline G.opt.statusline:prepend("%{coc#status()}%{get(b:,'coc_current_function','')}") + + +