first videos

This commit is contained in:
TJ DeVries
2024-12-01 03:17:38 -05:00
commit db9e81a764
4 changed files with 83 additions and 0 deletions

27
01 - Introduction.md Normal file
View File

@@ -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`

View File

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

13
03 - Lua Configuration.md Normal file
View File

@@ -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,
})
```

25
README.md Normal file
View File

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