diff --git a/coc-settings.json b/coc-settings.json index 2f72303..fa7fad5 100644 --- a/coc-settings.json +++ b/coc-settings.json @@ -1,3 +1,4 @@ { - "snippets.ultisnips.pythonPrompt": false + "snippets.ultisnips.pythonPrompt": false, + "coc.preferences.extensionUpdateCheck": "daily" } diff --git a/lazy-lock.json b/lazy-lock.json index 24a8591..6d57cf0 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,5 +1,4 @@ { - "auto-pairs": { "branch": "master", "commit": "39f06b873a8449af8ff6a3eee716d3da14d63a76" }, "bullets.vim": { "branch": "master", "commit": "746f92ae05cdcc988857d8e76418326f07af9494" }, "coc.nvim": { "branch": "release", "commit": "95b43f67147391cf2c69e550bd001b742781d226" }, "colorizer": { "branch": "master", "commit": "72790a003d5a706c287486a1a81e3a6b32158b54" }, diff --git a/lua/coc.lua b/lua/coc.lua index 6cde4ff..1f4d33e 100644 --- a/lua/coc.lua +++ b/lua/coc.lua @@ -6,6 +6,8 @@ vim.cmd([[ \ \ 'coc-explorer', \ 'coc-translator', + \ 'coc-yank', + \ 'coc-pairs', \ ] ]]) @@ -48,3 +50,5 @@ map("n", "rn", "(coc-rename)", {silent = true}) map("x", "i", "(coc-format-selected)", {silent = true}) map("n", "i", "(coc-format-selected)", {silent = true}) +map("n", "tt", ":CocCommand explorer", {silent = true}) + diff --git a/lua/keymap.lua b/lua/keymap.lua index 4716e33..06f2207 100644 --- a/lua/keymap.lua +++ b/lua/keymap.lua @@ -16,10 +16,10 @@ map('n', '', '5k', {noremap = true}) map('n', '', ':nohlsearch', {noremap = true}) -map('n', '', ':wj', {noremap = true}) -map('n', '', ':wh', {noremap = true}) -map('n', '', ':wk', {noremap = true}) -map('n', '', ':wl', {noremap = true}) +map('n', '', 'j', {noremap = true}) +map('n', '', 'h', {noremap = true}) +map('n', '', 'k', {noremap = true}) +map('n', '', 'l', {noremap = true}) map('n', '', ':wq', {noremap = true}) diff --git a/lua/plug.lua b/lua/plug.lua index 0fb8c0d..29bbc0a 100644 --- a/lua/plug.lua +++ b/lua/plug.lua @@ -17,8 +17,8 @@ require("lazy").setup({ 'vim-airline/vim-airline', 'morhetz/gruvbox', + -- lsp 补全 {'neoclide/coc.nvim', branch = 'release'}, - 'jiangmiao/auto-pairs', -- surround 和 wildfire 配合有神奇的效果 'yaocccc/vim-surround',