Skip to content

NeoVim dotfile as VSCode replacement using native lua neovim

License

Notifications You must be signed in to change notification settings

mohamad-supangat/nvim-lua

Repository files navigation

Neovim as main idea

hello in this repo using native LSP from neovim >= 0.5 if you use are using COC.nvim check this repo

https://github.com/mohamad-supangat/nvim

screenshot_20220328-120014.png

Tanks to: Brainf+ck for your simple dotfiles and give me idea to use init.lua and native LSP

Install

  • need to install git, nodejs, neovim, pynvim > 0.5
  • (optional) c compiler and make for compile better highlighting and language parser in neovim nvim-treesitter
  • just clone this repo
git clone https://github.com/mohamad-supangat/nvim-lua.git ~/.config/nvim
  • and run neovim, and viola

Docs

Shortcuts

Some of the shortcuts I use frequently are listed here. In the following shortcuts, <leader> represents ASCII character ,.

Shortcut Mode Description
<ctrl>p Normal Fuzzy file searching in a floating window
<ctrl>n Normal Open sidebar file explorer
<ctrl>t Normal New file
<ctrl>PageDown / <ctrl>PageUp Normal Change tab to next and prev
<space>bd Normal Close Buffer / File
<alt>i / F1 / F2 Normal Toogle floating terminal
<space>uu Normal Open lazy.nvim updater
<space>P Normal Open list of coc commands
F7 Normal Toogle sidebar tags explorer
<space>rr Normal Run current file by code_runner.nvim
`git Normal Run lazygit(install lazygit first) code_runner.nvim

Structure

├── LICENSE
├── README.md
├── assets
│   └── screenshot_20220328-120014.png
├── init.lua
├── lazy-lock.json
└── lua
    ├── colorscheme (colorscheme configurations)
    ├── configs.lua (init script for all plugins)
    ├── keymaps.lua (global keymap)
    ├── lsp         (All lsp configurations here)
    ├── plugins     (some plugins and setting here)
    │   ├── accelerated-jk.lua
    │   ├── autopairs.lua
    │   └── ....  (more plugin)
    ├── pre-settings.lua (global setting than run before lazy.nvim start)
    ├── settings.lua     (global setting)
    └── variables.lua    (global variable to use in some lua file)

Formatter

About

NeoVim dotfile as VSCode replacement using native lua neovim

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published