Add startify + autopair
This commit is contained in:
parent
cd47d8f48b
commit
4b962e75fc
3 changed files with 23 additions and 9 deletions
|
@ -2,20 +2,22 @@ function configure_packages()
|
||||||
call_with_helpers(require('plugins.lspconfig').init)
|
call_with_helpers(require('plugins.lspconfig').init)
|
||||||
call_with_helpers(require('plugins.compe').init)
|
call_with_helpers(require('plugins.compe').init)
|
||||||
call_with_helpers(require('plugins.nvim-treesitter').init)
|
call_with_helpers(require('plugins.nvim-treesitter').init)
|
||||||
call_with_helpers(require('plugins.web-devicons').init)
|
call_with_helpers(require('plugins.nvim-web-devicons').init)
|
||||||
call_with_helpers(require('plugins.nvim-comment').init)
|
call_with_helpers(require('plugins.nvim-comment').init)
|
||||||
|
call_with_helpers(require('plugins.nvim-autopairs').init)
|
||||||
end
|
end
|
||||||
|
|
||||||
function install_packages()
|
function install_packages()
|
||||||
-- Packer can manage itself
|
-- Packer can manage itself
|
||||||
use 'wbthomason/packer.nvim'
|
use 'wbthomason/packer.nvim'
|
||||||
|
|
||||||
use {'dracula/vim'}
|
use 'dracula/vim'
|
||||||
use {'whatyouhide/vim-gotham'}
|
use 'whatyouhide/vim-gotham'
|
||||||
use {'neovim/nvim-lspconfig'}
|
use 'neovim/nvim-lspconfig'
|
||||||
use {'kabouzeid/nvim-lspinstall'}
|
use 'kabouzeid/nvim-lspinstall'
|
||||||
use {'hrsh7th/nvim-compe'}
|
use 'hrsh7th/nvim-compe'
|
||||||
use {'shaunsingh/moonlight.nvim'}
|
use 'shaunsingh/moonlight.nvim'
|
||||||
|
use 'windwp/nvim-autopairs'
|
||||||
|
|
||||||
-- Telescope project search
|
-- Telescope project search
|
||||||
use {
|
use {
|
||||||
|
@ -23,12 +25,13 @@ function install_packages()
|
||||||
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}
|
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}
|
||||||
}
|
}
|
||||||
|
|
||||||
use {'nvim-treesitter/nvim-treesitter'}
|
use 'nvim-treesitter/nvim-treesitter'
|
||||||
|
|
||||||
use 'kyazdani42/nvim-web-devicons' -- removing this line doesn't change the error
|
use 'kyazdani42/nvim-web-devicons' -- removing this line doesn't change the error
|
||||||
use 'kyazdani42/nvim-tree.lua'
|
use 'kyazdani42/nvim-tree.lua'
|
||||||
use 'kdheepak/lazygit.nvim'
|
use 'kdheepak/lazygit.nvim'
|
||||||
use 'terrortylor/nvim-comment'
|
use 'terrortylor/nvim-comment'
|
||||||
|
use 'mhinz/vim-startify' -- The fancy start screen for Vim.
|
||||||
end
|
end
|
||||||
|
|
||||||
function init()
|
function init()
|
||||||
|
|
11
configs/nvim/lua/plugins/nvim-autopairs.lua
Normal file
11
configs/nvim/lua/plugins/nvim-autopairs.lua
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
local function init()
|
||||||
|
require('nvim-autopairs').setup()
|
||||||
|
require("nvim-autopairs.completion.compe").setup({
|
||||||
|
map_cr = true, -- map <CR> on insert mode
|
||||||
|
map_complete = true -- it will auto insert `(` after select function or method item
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
init = init
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue