nvim-config/init.lua

77 lines
2.2 KiB
Lua
Raw Normal View History

--[[
=====================================================================
==================== READ THIS BEFORE CONTINUING ====================
=====================================================================
Kickstart.nvim is *not* a distribution.
Kickstart.nvim is a template for your own configuration.
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.
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/
And then you can explore or search through `:help lua-guide`
- https://neovim.io/doc/user/lua-guide.html
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
-- 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 = ' '
-- [[ Install `lazy.nvim` plugin manager ]]
2023-10-22 09:44:31 +00:00
require('lazy-bootstrap')
2022-06-24 03:35:53 +00:00
-- [[ Configure plugins ]]
2023-10-22 09:50:38 +00:00
require('lazy-plugins')
2022-06-24 03:35:53 +00:00
-- [[ Setting options ]]
2023-10-22 10:13:07 +00:00
require('options')
-- [[ Basic Keymaps ]]
2023-10-22 10:16:17 +00:00
require('keymaps')
2022-06-24 03:35:53 +00:00
-- [[ Configure Telescope ]]
-- (fuzzy finder)
2023-10-22 10:24:25 +00:00
require('telescope-setup')
2022-06-24 03:35:53 +00:00
-- [[ Configure Treesitter ]]
-- (syntax parser for highlighting)
2023-10-22 10:27:28 +00:00
require('treesitter-setup')
2022-06-24 03:35:53 +00:00
-- [[ Configure LSP ]]
-- (Language Server Protocol)
2023-10-22 10:31:11 +00:00
require('lsp-setup')
2022-06-24 03:35:53 +00:00
-- [[ Configure nvim-cmp ]]
-- (completion)
2023-10-22 10:37:32 +00:00
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