diff --git a/.config/nvim/lua/my/coding.lua b/.config/nvim/lua/my/coding.lua index 6248a6f..27f0496 100644 --- a/.config/nvim/lua/my/coding.lua +++ b/.config/nvim/lua/my/coding.lua @@ -61,6 +61,7 @@ vim.api.nvim_create_autocmd({ 'FileType' }, { command = [[set nolist]] }) +require("nvim-autopairs").setup({}) require('luasnip.loaders.from_lua').load({ paths = vim.fn.stdpath('config') .. '/snippets' diff --git a/.config/nvim/lua/my/plugins.lua b/.config/nvim/lua/my/plugins.lua index 14e5e7f..7296589 100644 --- a/.config/nvim/lua/my/plugins.lua +++ b/.config/nvim/lua/my/plugins.lua @@ -67,12 +67,7 @@ require('packer').startup(function(use) -- tools local nerdfont_installed = require('my.functions').nerdfont_installed() - use { - 'https://github.com/folke/which-key.nvim', - config = function() - require('which-key').setup({}) - end - } + use { 'https://github.com/folke/which-key.nvim' } use { 'https://github.com/nvim-telescope/telescope.nvim', tag = '*', @@ -115,10 +110,7 @@ require('packer').startup(function(use) }, } use { 'https://github.com/gentoo/gentoo-syntax' } - use { - 'https://github.com/windwp/nvim-autopairs', - config = function() require("nvim-autopairs").setup {} end - } + use { 'https://github.com/windwp/nvim-autopairs' } use { 'https://github.com/L3MON4D3/LuaSnip' } use { 'https://github.com/tpope/vim-fugitive', @@ -134,9 +126,7 @@ require('packer').startup(function(use) use { -- embed nvim in browsers 'https://github.com/glacambre/firenvim', tag = '*', - run = function() - vim.fn['firenvim#install'](0) - end + run = [[call firenvim#install(0)]] } -- ensure plugins are installed and compiled diff --git a/.config/nvim/lua/my/tools.lua b/.config/nvim/lua/my/tools.lua index a6685c6..e6bde44 100644 --- a/.config/nvim/lua/my/tools.lua +++ b/.config/nvim/lua/my/tools.lua @@ -1,5 +1,7 @@ require('my/plugins') +require('which-key').setup({}) + local map = require('my.functions').map local telescope = require('telescope') local t_actions = require('telescope.actions')