commit db9e81a76423ad2633696ee2df9678eb9cfa64a3 Author: TJ DeVries Date: Sun Dec 1 03:17:38 2024 -0500 first videos diff --git a/01 - Introduction.md b/01 - Introduction.md new file mode 100644 index 0000000..62f320c --- /dev/null +++ b/01 - Introduction.md @@ -0,0 +1,27 @@ +# Introduction to Neovim + +## Why Do I Use Neovim? + +## Why Do I Use Neovim? + +- I find it very satisfying to make things just the way I like +- It makes my day more fun - both hacking on it and eliminating frustrations +- I like modal editing - it clicks with my brain. + +## How to Use Neovim? + +- Download and/or Package Manager: + - https://neovim.io/doc/ +- Build From Source: + - https://github.com/neovim/neovim/blob/master/BUILD.md + +## First Configuration: + +- Open `$HOME/.config/nvim/init.lua` +- `print("Hello World")` in `init.lua` +- Re-open Neovim, check `:messages` + +## Reload Configuration: + +- `:source %` +- `:lua ...` or `:'<,'>lua` diff --git a/02 - Tutor and Modal Editing.md b/02 - Tutor and Modal Editing.md new file mode 100644 index 0000000..ef9cd5a --- /dev/null +++ b/02 - Tutor and Modal Editing.md @@ -0,0 +1,18 @@ +# Vim Tutor: Explained + +## First + +- You have to actually practice +- Don't just listen to me + +## How to practice? + +Open Neovim. + +`:Tutor` + +## How to practice? + +> But it's confusing?! + +Ok, I will do it with you :) diff --git a/03 - Lua Configuration.md b/03 - Lua Configuration.md new file mode 100644 index 0000000..f266a5c --- /dev/null +++ b/03 - Lua Configuration.md @@ -0,0 +1,13 @@ + +```lua +-- Highlight when yanking (copying) text +-- Try it with `yap` in normal mode +-- See `:help vim.highlight.on_yank()` +vim.api.nvim_create_autocmd('TextYankPost', { + desc = 'Highlight when yanking (copying) text', + group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }), + callback = function() + vim.highlight.on_yank() + end, +}) +``` diff --git a/README.md b/README.md new file mode 100644 index 0000000..cc81328 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# Advent of `nvim` + +25 Mini Lessons to get started with Neovim. +- We'll build a working configuration that resembles kickstart.nvim, but we'll do it completely from scratch. + +- Install Neovim and Open (with some reasons why) +- Tutor / Modal Editing +- Lua Configuration (Options / Keymaps) +- Plugin Manager +- `tree-sitter`, Colorschemes, and `statusline` +- LSP (Keymaps and Settings) +- LSP Installation / Management +- Snippets +- Autoformat +- Autocomplete +- Telescope +- Quickfix: `:cdo` and others +- Oil.nvim +- text-objects: `mini.*` +- Tree-sitter: text-objects +- Language Configuration +- Window Navigation +- Clipboard +- Terminal (Escape, Floating, Usages) +- Advanced Telescope: multi-ripgrep