From 1d1039dfd58c3295c03f98a1890fb67f1bf98a46 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 19 Sep 2023 18:14:31 -0400 Subject: Nvim lua test --- .config/nvim/lua/ben/init.lua | 3 +++ .config/nvim/lua/ben/packer.lua | 43 +++++++++++++++++++++++++++++++++++++++++ .config/nvim/lua/ben/remap.lua | 2 ++ 3 files changed, 48 insertions(+) create mode 100644 .config/nvim/lua/ben/init.lua create mode 100644 .config/nvim/lua/ben/packer.lua create mode 100644 .config/nvim/lua/ben/remap.lua (limited to '.config/nvim/lua') 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", "pv", vim.cmd.Ex) -- cgit v1.2.3