2023-02-17 21:31:57 +00:00
|
|
|
--[[
|
|
|
|
|
|
|
|
=====================================================================
|
|
|
|
==================== READ THIS BEFORE CONTINUING ====================
|
|
|
|
=====================================================================
|
|
|
|
|
|
|
|
Kickstart.nvim is *not* a distribution.
|
|
|
|
|
|
|
|
Kickstart.nvim is a template for your own configuration.
|
2023-05-22 18:29:42 +00:00
|
|
|
The goal is that you can read every line of code, top-to-bottom, understand
|
|
|
|
what your configuration is doing, and modify it to suit your needs.
|
2023-02-17 21:31:57 +00:00
|
|
|
|
|
|
|
Once you've done that, you should start exploring, configuring and tinkering to
|
|
|
|
explore Neovim!
|
|
|
|
|
|
|
|
If you don't know anything about Lua, I recommend taking some time to read through
|
|
|
|
a guide. One possible example:
|
|
|
|
- https://learnxinyminutes.com/docs/lua/
|
|
|
|
|
2023-08-10 19:00:15 +00:00
|
|
|
|
2023-02-17 21:31:57 +00:00
|
|
|
And then you can explore or search through `:help lua-guide`
|
2023-08-10 19:00:15 +00:00
|
|
|
- https://neovim.io/doc/user/lua-guide.html
|
2023-02-17 21:31:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
Kickstart Guide:
|
|
|
|
|
|
|
|
I have left several `:help X` comments throughout the init.lua
|
|
|
|
You should run that command and read that help section for more information.
|
|
|
|
|
|
|
|
In addition, I have some `NOTE:` items throughout the file.
|
|
|
|
These are for you, the reader to help understand what is happening. Feel free to delete
|
|
|
|
them once you know what you're doing, but they should serve as a guide for when you
|
|
|
|
are first encountering a few different constructs in your nvim config.
|
|
|
|
|
|
|
|
I hope you enjoy your Neovim journey,
|
|
|
|
- TJ
|
|
|
|
|
|
|
|
P.S. You can delete this when you're done too. It's your config now :)
|
|
|
|
--]]
|
2023-10-22 09:44:31 +00:00
|
|
|
|
2023-02-17 21:31:57 +00:00
|
|
|
-- Set <space> as the leader key
|
|
|
|
-- See `:help mapleader`
|
|
|
|
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
|
|
|
|
vim.g.mapleader = ' '
|
|
|
|
vim.g.maplocalleader = ' '
|
|
|
|
|
2023-10-22 09:44:31 +00:00
|
|
|
-- Install lazy plugin manager
|
|
|
|
require('lazy-bootstrap')
|
2022-06-24 03:35:53 +00:00
|
|
|
|
2023-10-22 09:50:38 +00:00
|
|
|
-- Setup lazy plugin manager - configure plugins
|
|
|
|
require('lazy-plugins')
|
2022-06-24 03:35:53 +00:00
|
|
|
|
2023-10-22 10:13:07 +00:00
|
|
|
-- Set options
|
|
|
|
require('options')
|
2023-02-17 21:31:57 +00:00
|
|
|
|
2023-10-22 10:16:17 +00:00
|
|
|
-- Configure keymaps
|
|
|
|
require('keymaps')
|
2022-06-24 03:35:53 +00:00
|
|
|
|
2023-10-22 10:24:25 +00:00
|
|
|
-- Configure Telescope (fuzzy finder)
|
|
|
|
require('telescope-setup')
|
2022-06-24 03:35:53 +00:00
|
|
|
|
2023-10-22 10:27:28 +00:00
|
|
|
-- Configure Treesitter (syntax parser for highlighting)
|
|
|
|
require('treesitter-setup')
|
2022-06-24 03:35:53 +00:00
|
|
|
|
2023-10-22 10:31:11 +00:00
|
|
|
-- Configure LSP (Language Server Protocol)
|
|
|
|
require('lsp-setup')
|
2022-06-24 03:35:53 +00:00
|
|
|
|
2023-10-22 10:37:32 +00:00
|
|
|
-- Configure CMP (completion)
|
|
|
|
require('cmp-setup')
|
2022-06-24 03:35:53 +00:00
|
|
|
|
|
|
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
|
|
|
-- vim: ts=2 sts=2 sw=2 et
|