diff --git a/init.lua b/init.lua index 83619893..b9291dc5 100644 --- a/init.lua +++ b/init.lua @@ -90,6 +90,9 @@ P.S. You can delete this when you're done too. It's your config now! :) vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' +require 'custom.options' +require 'custom.keymaps' + -- Set to true if you have a Nerd Font installed and selected in the terminal vim.g.have_nerd_font = false @@ -102,7 +105,7 @@ vim.g.have_nerd_font = false vim.opt.number = 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 +-- vim.opt.relativenumber = true -- Enable mouse mode, can be useful for resizing splits for example! vim.opt.mouse = 'a' @@ -160,18 +163,6 @@ vim.opt.scrolloff = 10 -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` --- Clear highlights on search when pressing in normal mode --- See `:help hlsearch` --- vim.keymap.set('n', '', 'nohlsearch') -vim.keymap.set('n', 'l', ':set hlsearch!', { noremap = true, silent = true, desc = 'Toggle highlight search' }) - --- Map Ctrl-s to save the file in normal and insert mode -vim.keymap.set('n', '', ':w', { noremap = true, silent = true }) -vim.keymap.set('i', '', ':w', { noremap = true, silent = true }) - --- Map Ctrl-c to yank (copy) the selected text in visual mode -vim.api.nvim_set_keymap('v', '', '"+y', { noremap = true, silent = true }) - -- Diagnostic keymaps vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) @@ -617,6 +608,7 @@ require('lazy').setup({ gopls = {}, pyright = {}, rust_analyzer = {}, + bashls = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- -- Some languages (like typescript) have entire language plugins that can be useful: @@ -928,7 +920,7 @@ require('lazy').setup({ -- Uncomment any of the lines below to enable them (you will need to restart nvim). -- require 'kickstart.plugins.debug', - require 'kickstart.plugins.indent_line', + -- require 'kickstart.plugins.indent_line', require 'kickstart.plugins.lint', require 'kickstart.plugins.autopairs', require 'kickstart.plugins.neo-tree', @@ -940,6 +932,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' }, + require 'custom.plugins', }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the