This commit is contained in:
TJ DeVries
2024-12-04 15:22:00 -05:00
parent cbfbcd96e5
commit 916560e22c
4 changed files with 83 additions and 4 deletions

View File

@@ -0,0 +1,43 @@
# Package Manager
## Package Manager
Going to use `lazy.nvim`
- https://lazy.folke.io/installation
NOTE: which is different from LazyVim
## Install
(follow instructions)
`:checkhealth lazy`
## Install a colorscheme
- Tokyo Night Color Scheme
- https://github.com/folke/tokyonight.nvim
```lua
{ "folke/tokyonight.nvim", config = function() vim.cmd.colorscheme "tokyonight" end }
```
## Install `mini`
- Mini.nvim
- https://github.com/echasnovski/mini.nvim
- Setup statusline
```lua
-- lua/custom/plugins/mini.lua
return {
{
'echasnovski/mini.nvim',
config = function()
local statusline = require 'mini.statusline'
statusline.setup { use_icons = true }
end
}
}
```

View File

@@ -0,0 +1,18 @@
print("advent of neovim")
print("advent of neovim")
vim.keymap.set("n", "<space><space>x", "<cmd>source %<CR>")
vim.keymap.set("n", "<space>x", ":.lua<CR>")
vim.keymap.set("v", "<space>x", ":lua<CR>")
-- 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,
})

View File

@@ -3,10 +3,10 @@
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
- [x] Install Neovim and Open (with some reasons why)
- [x] Tutor / Modal Editing
- [x] Lua Configuration (Options / Keymaps)
- [x] Plugin Manager
- `tree-sitter`, Colorschemes, and `statusline`
- LSP (Keymaps and Settings)
- LSP Installation / Management

18
init.lua Normal file
View File

@@ -0,0 +1,18 @@
print("advent of neovim")
require("config.lazy")
vim.keymap.set("n", "<space><space>x", "<cmd>source %<CR>")
vim.keymap.set("n", "<space>x", ":.lua<CR>")
vim.keymap.set("v", "<space>x", ":lua<CR>")
-- 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,
})