From 28bbfe32231b861f2ac7f4258c8380c6ee082768 Mon Sep 17 00:00:00 2001 From: 0xfa1z Date: Mon, 4 Dec 2023 08:56:33 +0100 Subject: [PATCH] first init adjustments --- init.lua | 39 ++++++++------------------------------- 1 file changed, 8 insertions(+), 31 deletions(-) diff --git a/init.lua b/init.lua index 0722517e..343b4a1d 100644 --- a/init.lua +++ b/init.lua @@ -1,42 +1,13 @@ --[[ -===================================================================== -==================== 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 :) ---]] + ]] -- Set as the leader key -- See `:help mapleader` @@ -111,6 +82,10 @@ require('lazy').setup({ }, }, + { + 'github/copilot.vim' + }, + -- Useful plugin to show you pending keybinds. { 'folke/which-key.nvim', opts = {} }, { @@ -243,6 +218,7 @@ vim.o.hlsearch = false -- Make line numbers default vim.wo.number = true +vim.wo.relativenumber = true -- Enable mouse mode vim.o.mouse = 'a' @@ -263,7 +239,7 @@ vim.o.ignorecase = true vim.o.smartcase = true -- Keep signcolumn on by default -vim.wo.signcolumn = 'auto' +vim.wo.signcolumn = 'number' -- Decrease update time vim.o.updatetime = 250 @@ -373,6 +349,7 @@ vim.keymap.set('n', 'sg', require('telescope.builtin').live_grep, { desc vim.keymap.set('n', 'sG', ':LiveGrepGitRoot', { desc = '[S]earch by [G]rep on Git Root' }) vim.keymap.set('n', 'sd', require('telescope.builtin').diagnostics, { desc = '[S]earch [D]iagnostics' }) vim.keymap.set('n', 'sr', require('telescope.builtin').resume, { desc = '[S]earch [R]esume' }) +vim.keymap.set('n', 'e', ':NvimTreeToggle') -- [[ Configure Treesitter ]] -- See `:help nvim-treesitter`