diff --git a/init.lua b/init.lua index 036eefb8..bd4c49d2 100644 --- a/init.lua +++ b/init.lua @@ -100,6 +100,7 @@ vim.g.have_nerd_font = false -- Make line numbers default vim.opt.number = true +vim.opt.relativenumber = true -- You can also add relative line numbers, to help with jumping. -- Experiment for yourself to see if you like it! -- vim.opt.relativenumber = true @@ -136,8 +137,8 @@ vim.opt.updatetime = 250 vim.opt.timeoutlen = 300 -- Configure how new splits should be opened -vim.opt.splitright = true -vim.opt.splitbelow = true +vim.opt.splitright = false +vim.opt.splitbelow = false -- Sets how neovim will display certain whitespace characters in the editor. -- See `:help 'list'` @@ -185,10 +186,21 @@ vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' } -- Use CTRL+ to switch between windows -- -- See `:help wincmd` for a list of all window commands -vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) -vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) +-- vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) +-- vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) +-- vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) +-- vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) + +-- [[ Motion Keymaps ]] + +-- Keymaps for better window Navigation +vim.keymap.set('n', 'j', '', { silent = true }) + +-- Keymaps for better tab navigation +vim.keymap.set('n', 'k', ':tabnew', { silent = true }) + +-- Keymaps for better filesystem navigation +vim.keymap.set('n', '.', ':Ex', { silent = true }) -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` @@ -303,6 +315,13 @@ require('lazy').setup({ -- -- Use the `dependencies` key to specify the dependencies of a particular plugin + -- toggleterm for floating terminal + { + 'akinsho/toggleterm.nvim', + version = '*', + config = true, + }, + { -- Fuzzy Finder (files, lsp, etc) 'nvim-telescope/telescope.nvim', event = 'VimEnter',