summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/ben
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/ben')
-rw-r--r--.config/nvim/lua/ben/init.lua3
-rw-r--r--.config/nvim/lua/ben/packer.lua43
-rw-r--r--.config/nvim/lua/ben/remap.lua2
3 files changed, 48 insertions, 0 deletions
diff --git a/.config/nvim/lua/ben/init.lua b/.config/nvim/lua/ben/init.lua
new file mode 100644
index 0000000..f774278
--- /dev/null
+++ b/.config/nvim/lua/ben/init.lua
@@ -0,0 +1,3 @@
+require("ben.remap")
+require("ben.packer")
+
diff --git a/.config/nvim/lua/ben/packer.lua b/.config/nvim/lua/ben/packer.lua
new file mode 100644
index 0000000..c17f4e2
--- /dev/null
+++ b/.config/nvim/lua/ben/packer.lua
@@ -0,0 +1,43 @@
+---Only required if you have packer configured as `opt`
+vim.cmd [[packadd packer.nvim]]
+
+return require('packer').startup(function(use)
+ -- Packer can manage itself
+ use 'wbthomason/packer.nvim'
+ use {
+ 'nvim-telescope/telescope.nvim', tag = '0.1.3',
+ -- or , branch = '0.1.x',
+ requires = { {'nvim-lua/plenary.nvim'} }
+ }
+ use({
+ 'sainnhe/everforest',
+ config = function()
+ vim.cmd('colorscheme everforest')
+ end
+ })
+ use ('ChausseBenjamin/friffle-vim')
+ use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
+ use('theprimeagen/harpoon')
+ use('mbbill/undotree')
+ use('tpope/vim-fugitive')
+ use('tpope/vim-surround')
+ use {
+ 'VonHeikemen/lsp-zero.nvim',
+ branch = 'v2.x',
+ requires = {
+ -- LSP Support
+ {'neovim/nvim-lspconfig'}, -- Required
+ {'williamboman/mason.nvim'}, -- Optional
+ {'williamboman/mason-lspconfig.nvim'}, -- Optional
+ -- Autocompletion
+ {'hrsh7th/nvim-cmp'}, -- Required
+ {'hrsh7th/cmp-nvim-lsp'}, -- Required
+ {'L3MON4D3/LuaSnip'}, -- Required
+ }
+ }
+ use {'nvim-treesitter/nvim-treesitter'}
+ use {'nvim-orgmode/orgmode', config = function()
+ require('orgmode').setup{}
+ end}
+ use ('github/copilot.nvim')
+end)
diff --git a/.config/nvim/lua/ben/remap.lua b/.config/nvim/lua/ben/remap.lua
new file mode 100644
index 0000000..b760350
--- /dev/null
+++ b/.config/nvim/lua/ben/remap.lua
@@ -0,0 +1,2 @@
+vim.g.mapleader = " "
+vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)