From 2dd3adab2bac35f0b1f3822d918eeed4f53ac233 Mon Sep 17 00:00:00 2001 From: elbiazo Date: Fri, 28 Feb 2025 21:05:50 -0500 Subject: [PATCH] simple edit --- init.lua | 60 ++++++++++++++++++++++++++++++++++++++------------------ test.c | 1 + 2 files changed, 42 insertions(+), 19 deletions(-) create mode 100644 test.c diff --git a/init.lua b/init.lua index 5cac3d14..42e73757 100644 --- a/init.lua +++ b/init.lua @@ -91,7 +91,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed and selected in the terminal -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- ELB: enabling nerd font -- [[ Setting options ]] -- See `:help vim.opt` @@ -156,6 +156,12 @@ vim.opt.cursorline = true -- Minimal number of screen lines to keep above and below the cursor. vim.opt.scrolloff = 10 +-- ELB: Set tabstop as 4 spaces +vim.opt.tabstop = 4 +vim.opt.shiftwidth = 4 +vim.opt.softtabstop = 4 +vim.opt.cindent = true + -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` @@ -189,6 +195,12 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the right win vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +-- ELB: Keybinds + +-- ELB: Keybinds to make tabbing sane +vim.keymap.set('n', 'gn', 'tabnext', { desc = 'Move to the previous tab' }) +vim.keymap.set('n', 'gp', 'tabprevious', { desc = 'Move to the next tab' }) + -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` @@ -884,27 +896,35 @@ require('lazy').setup({ end, }, - { -- You can easily change to a different colorscheme. - -- Change the name of the colorscheme plugin below, and then - -- change the command in the config to whatever the name of that colorscheme is. - -- - -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. - 'folke/tokyonight.nvim', - priority = 1000, -- Make sure to load this before all the other start plugins. - config = function() - ---@diagnostic disable-next-line: missing-fields - require('tokyonight').setup { - styles = { - comments = { italic = false }, -- Disable italics in comments - }, - } + -- ELB: Changing colorscheme to onedarkpro from tokyonight + -- { -- You can easily change to a different colorscheme. + -- -- Change the name of the colorscheme plugin below, and then + -- -- change the command in the config to whatever the name of that colorscheme is. + -- -- + -- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. + -- 'folke/tokyonight.nvim', + -- priority = 1000, -- Make sure to load this before all the other start plugins. + -- init = function() + -- -- Load the colorscheme here. + -- -- Like many other themes, this one has different styles, and you could load + -- -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. + -- vim.cmd.colorscheme 'tokyonight-night' + -- + -- -- You can configure highlights by doing something like: + -- vim.cmd.hi 'Comment gui=none' + -- end, + -- }, + { + 'olimorris/onedarkpro.nvim', + priority = 1000, -- Ensure it loads first + init = function() + vim.cmd.colorscheme 'onedark' - -- Load the colorscheme here. - -- Like many other themes, this one has different styles, and you could load - -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-night' + -- You can configure highlights by doing something like: + vim.cmd.hi 'Comment gui=none' end, }, + -- ELB: end of changing theme -- Highlight todo, notes, etc in comments { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, @@ -977,6 +997,8 @@ require('lazy').setup({ -- place them in the correct locations. -- NOTE: Next step on your Neovim journey: Add/Configure additional plugins for Kickstart + 'github/copilot.vim', -- ELB: Adding copilot + -- -- Here are some example plugins that I've included in the Kickstart repository. -- Uncomment any of the lines below to enable them (you will need to restart nvim). diff --git a/test.c b/test.c new file mode 100644 index 00000000..53c5fdf1 --- /dev/null +++ b/test.c @@ -0,0 +1 @@ +#include