From 85a7f4610fb757554085d3f3f52cd87cb4c69cba Mon Sep 17 00:00:00 2001 From: Goldyr Date: Tue, 27 Feb 2024 16:07:50 -0300 Subject: [PATCH] gruvbox theme && relativenumbers --- init.lua | 8 +++----- lua/custom/plugins/init.lua | 7 ++++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 0506b3e6..d9428b16 100644 --- a/init.lua +++ b/init.lua @@ -99,7 +99,7 @@ vim.g.maplocalleader = ' ' vim.opt.number = true -- You can also add relative line numbers, for help with jumping. -- Experiment for yourself to see if you like it! --- vim.opt.relativenumber = true +vim.opt.relativenumber = true -- Enable mouse mode, can be useful for resizing splits for example! vim.opt.mouse = 'a' @@ -146,11 +146,9 @@ vim.opt.inccommand = 'split' vim.opt.cursorline = true -- Minimal number of screen lines to keep above and below the cursor. -vim.opt.scrolloff = 10 - +vim.opt.scrolloff = 15 -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` - -- Set highlight on search, but clear on pressing in normal mode vim.opt.hlsearch = true vim.keymap.set('n', '', 'nohlsearch') @@ -809,7 +807,7 @@ require('lazy').setup { -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- For additional information see: :help lazy.nvim-lazy.nvim-structuring-your-plugins - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, } -- The line beneath this is called `modeline`. See `:help modeline` diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d8..61a05724 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -2,4 +2,9 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information -return {} +return { + 'morhetz/gruvbox', + config = function() + vim.cmd.colorscheme 'gruvbox' + end, +}