summaryrefslogtreecommitdiff
path: root/.config/nvim/lua
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-09-19 18:14:31 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2023-09-19 18:14:31 -0400
commit1d1039dfd58c3295c03f98a1890fb67f1bf98a46 (patch)
treeb8479436202043fbf1ca75b694e86c781f05c683 /.config/nvim/lua
parent4bbb06a49fc3999bfd9ac17a5f3093963c9e595e (diff)
Nvim lua test
Diffstat (limited to '.config/nvim/lua')
-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)