diff --git a/init.lua b/init.lua index f500805..1b6d36d 100644 --- a/init.lua +++ b/init.lua @@ -3,7 +3,6 @@ G = require('G') local lazypath = G.fn.stdpath("data") .. "/lazy/lazy.nvim" if not G.loop.fs_stat(lazypath) then - G.fn.system({ "git", "clone", @@ -20,7 +19,6 @@ if not G.loop.fs_stat(lazypath) then "credential.helper", "store", }) - end G.opt.rtp:prepend(lazypath) @@ -36,5 +34,3 @@ else }) end - - diff --git a/lua/plugs/edit-plugs.lua b/lua/plugs/edit-plugs.lua index 90568b4..53a8b9a 100644 --- a/lua/plugs/edit-plugs.lua +++ b/lua/plugs/edit-plugs.lua @@ -34,6 +34,13 @@ return { 'github/copilot.vim', -- github copilot }, { - - } + 'windwp/nvim-autopairs', + event = "InsertEnter", + opts = {},-- this is equalent to setup({}) function + config = function () + require('nvim-autopairs').setup({ + disable_filetype = { "vim" }, + }) + end + }, } diff --git a/lua/plugs/nvim-lspconfig.lua b/lua/plugs/nvim-lspconfig.lua index ca04028..8ff50a8 100644 --- a/lua/plugs/nvim-lspconfig.lua +++ b/lua/plugs/nvim-lspconfig.lua @@ -133,7 +133,7 @@ return { } require("symbols-outline").setup(opts) G.map({ - { "n", "o", ":SymbolsOutline" }, + { "n", "", ":SymbolsOutline" }, }) end },