44 lines
1,020 B
Markdown
44 lines
1,020 B
Markdown
## config directory structior
|
|
```bash
|
|
nvim
|
|
├── init.lua
|
|
└── lua
|
|
└── super
|
|
├── init.lua
|
|
└── remap.lua
|
|
|
|
```
|
|
### nvim init.lua
|
|
``` lua
|
|
require("super")
|
|
```
|
|
### super init.lua
|
|
```lua
|
|
require("super.remap)
|
|
```
|
|
### remap.lua
|
|
in here we make `<leader>` spacebar and make remap for Ex filemanager
|
|
```lua
|
|
vim.g.mapleader = " "
|
|
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
|
|
```
|
|
### add [packer](https://github.com/wbthomason/packer.nvim) pluginmanager
|
|
first run this command for linux
|
|
```bash
|
|
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
|
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
|
```
|
|
then make file packer.lua in super and add this to it
|
|
```lua
|
|
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
|
|
|
|
-- 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'
|
|
|
|
end)
|
|
```
|