2024-08-19 14:55:54 +02:00
|
|
|
-- Based on https://github.com/nvim-lua/kickstart.nvim (MIT)
|
|
|
|
-- Inspiration from https://github.com/dam9000/kickstart-modular.nvim (MIT)
|
|
|
|
|
|
|
|
-- For reference:
|
|
|
|
-- https://github.com/LazyVim/LazyVim - Apache-2.0
|
|
|
|
-- https://github.com/SpaceVim/SpaceVim - GPL-3.0
|
|
|
|
-- https://github.com/NvChad/NvChad - GPL-3.0
|
|
|
|
-- https://github.com/AstroNvim/AstroNvim GPL-3.0
|
|
|
|
-- https://github.com/LunarVim/LunarVim - GPL-3.0
|
2024-07-21 22:10:21 +02:00
|
|
|
|
2023-02-17 22:31:57 +01:00
|
|
|
-- Set <space> as the leader key
|
|
|
|
-- See `:help mapleader`
|
2024-02-26 16:03:53 +01:00
|
|
|
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
|
2023-02-17 22:31:57 +01:00
|
|
|
vim.g.mapleader = ' '
|
|
|
|
vim.g.maplocalleader = ' '
|
|
|
|
|
2024-08-18 16:28:10 +02:00
|
|
|
-- Arch and platform detection. can be used as conditions for certain plugins.
|
|
|
|
-- If there is a better/more idiomatic solution, please enlighten me.
|
|
|
|
-- For a full summary of this table, run ":lua vim.inspect(vim.g.os_uname)"
|
|
|
|
-- Shows up as undefined but executes and behaves flawlessly as of 2024-08-18
|
|
|
|
---@diagnostic disable-next-line: undefined-field
|
|
|
|
vim.g.os_uname = vim.loop.os_uname()
|
|
|
|
vim.g.sysname = vim.g.os_uname.sysname -- "Linux, FreeBSD, ..."
|
|
|
|
vim.g.arch = vim.g.os_uname.machine -- "x86_64, ..."
|
|
|
|
|
2024-04-17 15:59:14 +02:00
|
|
|
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
2024-07-31 20:55:01 +02:00
|
|
|
vim.g.have_nerd_font = true
|
2024-03-06 17:49:44 +01:00
|
|
|
|
2024-02-26 16:03:53 +01:00
|
|
|
-- [[ Setting options ]]
|
2024-07-21 22:02:50 +02:00
|
|
|
require 'options'
|
2024-02-26 16:03:53 +01:00
|
|
|
|
|
|
|
-- [[ Basic Keymaps ]]
|
2024-07-21 22:02:50 +02:00
|
|
|
require 'keymaps'
|
2024-02-26 16:03:53 +01:00
|
|
|
|
2024-08-04 03:28:42 +02:00
|
|
|
-- [[ Setting autocmd's ]]
|
|
|
|
require 'autocmd'
|
|
|
|
|
2023-11-07 11:27:14 +01:00
|
|
|
-- [[ Install `lazy.nvim` plugin manager ]]
|
2024-07-21 22:02:50 +02:00
|
|
|
require 'lazy-bootstrap'
|
2022-06-24 05:35:53 +02:00
|
|
|
|
2024-02-26 16:03:53 +01:00
|
|
|
-- [[ Configure and install plugins ]]
|
2024-07-21 22:05:23 +02:00
|
|
|
require 'lazy-plugins'
|
2022-06-24 05:35:53 +02:00
|
|
|
|
|
|
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
|
|
|
-- vim: ts=2 sts=2 sw=2 et
|