nvim: configure not even simple stuff in plugin file

This commit is contained in:
tastytea 2022-08-19 03:20:29 +02:00
parent 302235731a
commit 15f9aacebd
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
3 changed files with 6 additions and 13 deletions

View File

@ -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'

View File

@ -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

View File

@ -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')