diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-09-19 18:14:31 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-09-19 18:14:31 -0400 |
commit | 1d1039dfd58c3295c03f98a1890fb67f1bf98a46 (patch) | |
tree | b8479436202043fbf1ca75b694e86c781f05c683 /.config/nvim/lua/ben | |
parent | 4bbb06a49fc3999bfd9ac17a5f3093963c9e595e (diff) |
Nvim lua test
Diffstat (limited to '.config/nvim/lua/ben')
-rw-r--r-- | .config/nvim/lua/ben/init.lua | 3 | ||||
-rw-r--r-- | .config/nvim/lua/ben/packer.lua | 43 | ||||
-rw-r--r-- | .config/nvim/lua/ben/remap.lua | 2 |
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) |