From 0328a8c4c2b4d7b6795998a73a18193d6a9fbbe4 Mon Sep 17 00:00:00 2001 From: Fabi <120835312+JeffreyAnimal@users.noreply.github.com> Date: Mon, 25 Sep 2023 22:15:20 +0200 Subject: [PATCH] basic cleanup --- .config/nvim/init.lua | 53 +++++++------------------------------------ 1 file changed, 8 insertions(+), 45 deletions(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 8bc5e4f..0d3eb17 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -1,48 +1,15 @@ ---[[ +--[[ +-- Lua guide: https://learnxinyminutes.com/docs/lua/ +-- Lua help : ':help lua-guide' +]] -===================================================================== -==================== 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, and understand - what your configuration is doing. - - 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` - - -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 :) ---]] - --- Set as the leader key --- See `:help mapleader` --- NOTE: Must happen before plugins are required (otherwise wrong leader will be used) +-- [[ Leader Key ]] +-- Set as the leader key; ':help mapleader' vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' --- Install package manager +-- [[ Install package manager ]] -- https://github.com/folke/lazy.nvim -- `:help lazy.nvim.txt` for more info local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' @@ -58,11 +25,7 @@ if not vim.loop.fs_stat(lazypath) then end vim.opt.rtp:prepend(lazypath) --- NOTE: Here is where you install your plugins. --- You can configure plugins using the `config` key. --- --- You can also configure plugins after the setup call, --- as they will be available in your neovim runtime. +-- [[ Inatall Plugins ]] require('lazy').setup({ -- NOTE: First, some plugins that don't require any configuration