Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thomashighbaugh/nvim-forge

My Personal Development Environment
https://github.com/thomashighbaugh/nvim-forge

lazy-nvim lua neovim neovim-conf neovim-config neovim-dotfiles neovim-lua nvim nvim-configs nvim-configuration nvim-lua nvim-settings nvimrc personal-development-enviroment

Last synced: 21 days ago
JSON representation

My Personal Development Environment

Awesome Lists containing this project

README

        

# NeoVim Forge

My [Winchester Mystery](https://en.wikipedia.org/wiki/Winchester_Mystery_House)
NeoVim Configuration, using `lazy.nvim` for plugin management and Lua as its
configuration language. My _Personal Development Environment_ (PDE) and the core tool used in cultivating my Personal Knowledge Base (PKB).

> **Warning**
> This is my personal configuration, subject to experimentation
> and radical rewrites periodically, rebases or substantially modifications
> without prior warning and other things that may make this unstable for you
> to use as it is presented.

With this in mind, **feel free to take from it as you please**, use pieces of
it or the whole thing as a basis for your own and you are more than welcome
to **submit pull requests** if it so pleases you, that's why its on
GitHub |wink |

## Installation

To use this configuration, clone it into your `~/.config/nvim` directory |

```sh

# Back up your old configuration if present
mv ~/.config/nim ~/.config/nvim.bak
# Now clone this one
git clone https://github.com/Thomashighbaugh/nvim-forge ~/.config/nvim

```

And that should be it, if you have the prerequisites installed it should run through the lazy.nvim installation process and handle setting up everything in the process from Treesitter grammars to Mason dependencies, it might just take a few minutes so be patient.

## Configuration Structure

This configuration roughly follows that of LazyVim, with some minor changes that are mostly due to personal taste, which while arbitrary is much easier to quickly locate various things when they are arranged in the way one prefers and not an artificially imposed standard. The lion's share of the configuration exists within the `lua/` subdirectory as is the convention of Lua-based NeoVim configurations.

Unlike many other highly customized NeoVim configurations, as well as most major configuration frameworks, the configuration is not nested within a subdirectory of the Lua subdirectory named after the author, plugin or configuration, I find no need to brand this configuration in a way that makes using its parts elsewhere highly onerous and introduces a needless source of potential errors for me to deal with instead of working on code like I intend to be.

Below is a representation of the structure of the configuration in tree format |
 .
├──  cheatsheet.txt
├──  doc
│ └──  nvim-forge.txt
├──  Dockerfile
├──  init.lua
├──  lazy-lock.json
├──  LICENSE
├──  lua
│ ├──  core
│ │ ├──  autocmds.lua
│ │ ├──  commands.lua
│ │ ├──  icons.lua
│ │ ├──  init.lua
│ │ ├──  keymaps.lua
│ │ ├──  lazy.lua
│ │ ├──  logos.lua
│ │ └──  options.lua
│ ├──  features
│ │ ├──  lsp
│ │ │ ├──  diagnostics.lua
│ │ │ ├──  init.lua
│ │ │ ├──  keymaps.lua
│ │ │ ├──  lang
│ │ │ │ ├──  docker.lua
│ │ │ │ ├──  flutter.lua
│ │ │ │ ├──  go.lua
│ │ │ │ ├──  java.lua
│ │ │ │ ├──  json.lua
│ │ │ │ ├──  markdown.lua
│ │ │ │ ├──  markup.lua
│ │ │ │ ├──  nix.lua
│ │ │ │ ├──  php.lua
│ │ │ │ ├──  python.lua
│ │ │ │ ├──  rust.lua
│ │ │ │ ├──  typescript.lua
│ │ │ │ └──  vue.lua
│ │ │ └──  navic.lua
│ │ ├──  lualine
│ │ │ ├──  components.lua
│ │ │ ├──  config.lua
│ │ │ ├──  init.lua
│ │ │ ├──  palette.lua
│ │ │ └──  theme.lua
│ │ └──  neo-tree
│ │ ├──  init.lua
│ │ └──  sources
│ │ └──  filesystem
│ │ └──  components.lua
│ ├──  init.lua
│ ├──  plugins
│ │ ├──  aisync.lua
│ │ ├──  coding.lua
│ │ ├──  colorscheme.lua
│ │ ├──  editor.lua
│ │ ├──  formatting.lua
│ │ ├──  init.lua
│ │ ├──  linting.lua
│ │ ├──  lsp.lua
│ │ ├──  shared.lua
│ │ ├──  tools.lua
│ │ ├──  treesitter.lua
│ │ └──  ui.lua
│ ├──  profile.lua
│ └──  utils
│ ├──  cmd.lua
│ ├──  init.lua
│ ├──  lsp.lua
│ ├──  lualine.lua
│ ├──  plugin.lua
│ ├──  root.lua
│ ├──  string.lua
│ ├──  table.lua
│ ├──  telescope.lua
│ └──  theme.lua
├──  README.md -> .github/README.md
├──  snippets
│ ├──  all.lua
│ ├──  java.snippets
│ ├──  markdown.lua
│ ├──  package.json
│ ├──  vscode
│ │ ├──  c.json
│ │ ├──  cpp.json
│ │ ├──  css.json
│ │ ├──  fennel.json
│ │ ├──  frameworks
│ │ │ ├──  ejs.json
│ │ │ ├──  flutter.json
│ │ │ ├──  jekyll.json
│ │ │ └──  vue
│ │ │ ├──  html.json
│ │ │ ├──  javascript.json
│ │ │ ├──  pug.json
│ │ │ └──  vue.json
│ │ ├──  gdscript.json
│ │ ├──  gitcommit.json
│ │ ├──  global.json
│ │ ├──  glsl.json
│ │ ├──  go.json
│ │ ├──  haskell.json
│ │ ├──  html.json
│ │ ├──  java.json
│ │ ├──  javascript
│ │ │ ├──  javascript.json
│ │ │ ├──  react-native-ts.json
│ │ │ ├──  react-native.json
│ │ │ ├──  react-ts.json
│ │ │ ├──  react.json
│ │ │ └──  typescript.json
│ │ ├──  kotlin.json
│ │ ├──  kubernetes.json
│ │ ├──  latex
│ │ │ ├──  latex-snippets.json
│ │ │ └──  vscode-latex-snippets.json
│ │ ├──  latex.json
│ │ ├──  lua.json
│ │ ├──  markdown.json
│ │ ├──  meson.json
│ │ ├──  norg.json
│ │ ├──  org.json
│ │ ├──  package.json
│ │ ├──  python
│ │ │ ├──  base.json
│ │ │ ├──  comprehension.json
│ │ │ ├──  debug.json
│ │ │ ├──  python.json
│ │ │ └──  unittest.json
│ │ ├──  rust.json
│ │ ├──  scala.json
│ │ ├──  shell.json
│ │ └──  sql.json
│ └──  yaml.lua
├──  spell
│ ├──  en.dict
│ ├──  en.utf-8.add
│ ├──  en.utf-8.add.spl
│ ├──  es.dict
│ ├──  hi.dict
│ └──  README.md
├──  stylua.toml
└──  ui.lua

```
## Keybindings

Below are the keybind mappings used in this configuration, they are subject to change and are not exhaustive, but they should give you a good idea of how the configuration is set up and how to use it.

### General Keybindings

| \\ | Open a vertical split. |
| / | Open a horizontal split. |
| | Compile the current file. |
| | Inspect the current file. |
| Tab | Move to the next buffer. |
| | Move to the previous buffer. |
| / | Search for text. |
| | Save the current file (works in various modes). |
| w | Save the current file. |
| q | Quit NeoVim. |
| Q | Quit all open buffers in NeoVim. |
| h | Clear highlighting. |
| | Navigate to the previous buffer. |
| g | Access Git functionalities. |
| l | Access LSP functionalities. |
| s | Manage sessions. |
| f | Fold code. |
| g | Go to specific line or location. |
| s | Search for text. |

### Buffer Management

| Change to buffers 1 through 9. |
| Move to the next buffer. |
| Move to the previous buffer. |
| Move buffer to the right. |
| Move buffer to the left. |
d or | Close the current buffer. |

### Session Management

| ss | Restore a saved session. |
| sl | Restore the last saved session.
| sd | Don't save the current session.

### NeoTree
| e | Open NeoTree in the current window. |
| E | Open NeoTree in a floating window. |

### Telescope

| gd | Go to definition. |
| gr | Go to references. |
| gi | Go to implementations. |
| go | Open a recently changed file. |
| gb | Checkout a Git branch. |
| gc | Checkout a Git commit. |
| f | Find files. |
| F | Find text. |
| b | Find buffers. |

### Other Keybindings

| | Toggle the terminal. |
| | Open the dashboard. |
| m | Zoom the current window. |
| r | Open the nvim-forge.core configuration file. |
| P | Preview the current Markdown file. |

## Inspiration

The following projects were instrumental in the crafting of this environment

- [Allaman's nvim](https://github.com/Allaman/nvim)
- [Alexis12119's nvim-config](https://github.com/Alexis12119/nvim-config)
- [glepnir's nvim](https://github.com/glepnir/nvim)
- [ayamir's nvimdots](https://github.com/ayamir/nvimdots)
- [CharlesChiuGit's nvimdots](https://github.com/CharlesChiuGit/nvimdots.lua)
- [dragove's nvim](https://github.com/dragove/nvim)
- [Dharmx's Nvim](https://github.com/dharmx/nvim)
- [loctvl842's nvim'](https://github.com/loctvl842/nvim)

```