ob-vaults/Phoenix/Note books/terminal/neovim/nvim init config.md
2024-09-12 17:54:01 +03:30

1,020 B

config directory structior

nvim
├── init.lua
└── lua
    └── super
        ├── init.lua
        └── remap.lua
        

nvim init.lua

require("super")

super init.lua

require("super.remap)

remap.lua

in here we make <leader> spacebar and make remap for Ex filemanager

vim.g.mapleader = " "
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)

add packer pluginmanager

first run this command for linux

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

-- 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)