2024-08-06 16:35:29 +02:00
|
|
|
-- TODO: Rewrite it accordingly to new configuration.
|
|
|
|
-- TODO: Also, make it actually minimal. 😉
|
|
|
|
|
2024-04-27 15:22:39 +02: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 = ' '
|
|
|
|
|
2024-08-11 08:05:58 +02:00
|
|
|
-- Minimal options
|
|
|
|
-- Display relative line numbers
|
|
|
|
-- Except to the active line
|
|
|
|
vim.opt.relativenumber = true
|
|
|
|
vim.opt.number = true
|
|
|
|
|
|
|
|
-- Enable mouse mode
|
|
|
|
vim.opt.mouse = 'a'
|
|
|
|
|
2024-04-27 15:22:39 +02:00
|
|
|
-- 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'
|
|
|
|
if not vim.loop.fs_stat(lazypath) then
|
|
|
|
vim.fn.system {
|
|
|
|
'git',
|
|
|
|
'clone',
|
|
|
|
'--filter=blob:none',
|
|
|
|
'https://github.com/folke/lazy.nvim.git',
|
|
|
|
'--branch=stable', -- latest stable release
|
|
|
|
lazypath,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
|
|
|
|
require('lazy').setup({
|
|
|
|
|
2024-08-11 08:05:58 +02:00
|
|
|
-- {
|
|
|
|
-- "Mofiqul/adwaita.nvim",
|
|
|
|
-- lazy = false,
|
|
|
|
-- priority = 1000,
|
|
|
|
-- config = function()
|
|
|
|
-- vim.cmd('colorscheme adwaita')
|
|
|
|
-- end
|
|
|
|
-- },
|
2024-04-27 15:22:39 +02:00
|
|
|
|
|
|
|
})
|