From cb329007c5e96795a05dcfed0c8b30a076dfc461 Mon Sep 17 00:00:00 2001 From: Matthew Schumaecker Date: Sat, 3 Aug 2024 16:35:47 -0400 Subject: [PATCH] first git commit --- .DS_Store | Bin 0 -> 6148 bytes desktop.ini | Bin 0 -> 282 bytes init.lua | 92 ++++++++++++---------------------------------------- 3 files changed, 21 insertions(+), 71 deletions(-) create mode 100644 .DS_Store create mode 100644 desktop.ini diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..706a7a2a0618578dc90a292578aea8e4d63b26eb GIT binary patch literal 6148 zcmeHKy-ve05I(o5XkqEdz~Gqy=o^G8hzIBkKpWH|wMqwygv5}E9Ucg=z@soQvm)`G z@7l(MG9rZTB>QvjC!hT#ien;j{YBm*>Jm{Kjj_=|_l zGR^T<72s!=&;gCzQoMisnN{Jf9}zRM04%NAj?aRQaE8SNvL6 z<*i3!J}-PztouCX+rJBZAyVagysz+SbiK}cH0CRr&&(7s1x$gZ0@$z2zYiXbF;y%D!>0pXI066@xPxKLzm#0#6;s7h5D}P@QlOMNJz_X1hu>>ns#pq2 zIXOLiIAwNvLUDl|_xB;4TqaZy77TvR17NCH3c>@kAAul)b*8|tD)0&Va(Wv8 literal 0 HcmV?d00001 diff --git a/desktop.ini b/desktop.ini new file mode 100644 index 0000000000000000000000000000000000000000..c3a4af455b014558387e4d4641a96787d17e816e GIT binary patch literal 282 zcmb7;y9&Zk5JXQc_!)K@(14F3AXo`vp`}^`jT%S{7%lYU)sujTcCzfD9>FyV?UUS2@~r+`0_tGpZ9zbt%mB>l^*$mYOH#V6L-We))A764qWX1=lhJ literal 0 HcmV?d00001 diff --git a/init.lua b/init.lua index e1014041..3ad433ba 100644 --- a/init.lua +++ b/init.lua @@ -1,8 +1,4 @@ ---THIS IS THIS TEST GIT COMMIT --[[ - -===================================================================== -==================== READ THIS BEFORE CONTINUING ==================== ===================================================================== ======== .-----. ======== ======== .----------------------. | === | ======== @@ -21,56 +17,10 @@ ===================================================================== ===================================================================== -What is Kickstart? - - Kickstart.nvim is *not* a distribution. - - Kickstart.nvim is a starting point 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 can start exploring, configuring and tinkering to - make Neovim your own! That might mean leaving Kickstart just the way it is for a while - or immediately breaking it into modular pieces. It's up to you! - - If you don't know anything about Lua, I recommend taking some time to read through - a guide. One possible example which will only take 10-15 minutes: - - https://learnxinyminutes.com/docs/lua/ - - After understanding a bit more about Lua, you can use `:help lua-guide` as a - reference for how Neovim integrates Lua. - - :help lua-guide - - (or HTML version): https://neovim.io/doc/user/lua-guide.html - Kickstart Guide: TODO: The very first thing you should do is to run the command `:Tutor` in Neovim. - If you don't know what this means, type the following: - - - - : - - Tutor - - - - (If you already know the Neovim basics, you can skip this step.) - - Once you've completed that, you can continue working through **AND READING** the rest - of the kickstart init.lua. - - Next, run AND READ `:help`. - This will open up a help window with some basic information - about reading, navigating and searching the builtin help documentation. - - This should be the first place you go to look when you're stuck or confused - with something. It's one of my favorite Neovim features. - - MOST IMPORTANTLY, we provide a keymap "sh" to [s]earch the [h]elp documentation, - which is very useful when you're not exactly sure of what you're looking for. - - I have left several `:help X` comments throughout the init.lua - These are hints about where to find more information about the relevant settings, - plugins or Neovim features used in Kickstart. - NOTE: Look for lines like this Throughout the file. These are for you, the reader, to help you understand what is happening. @@ -92,18 +42,19 @@ 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 -- [[ Setting options ]] -- See `:help vim.opt` -- NOTE: You can change these options as you wish! -- For more options, you can see `:help option-list` - +--- +vim.cmd 'let g:netrw_liststyle = 3' -- Make line numbers default 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' @@ -177,10 +128,10 @@ vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagn vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' }) -- TIP: Disable arrow keys in normal mode --- vim.keymap.set('n', '', 'echo "Use h to move!!"') --- vim.keymap.set('n', '', 'echo "Use l to move!!"') --- vim.keymap.set('n', '', 'echo "Use k to move!!"') --- vim.keymap.set('n', '', 'echo "Use j to move!!"') +vim.keymap.set('n', '', 'echo "Use h to move!!"') +vim.keymap.set('n', '', 'echo "Use l to move!!"') +vim.keymap.set('n', '', 'echo "Use k to move!!"') +vim.keymap.set('n', '', 'echo "Use j to move!!"') -- Keybinds to make split navigation easier. -- Use CTRL+ to switch between windows @@ -190,13 +141,13 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the left wind 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' }) +--use 'jk' as in Insert mode +vim.keymap.set('n', '', 'move +1') +vim.keymap.set('n', '', 'move -2') +vim.keymap.set('i', 'jk', '') +vim.keymap.set('n', 'fp', 'lua MiniFiles.open()') +vim.keymap.set('n', 'TT', 'ToggleTerm') --- [[ Basic Autocommands ]] --- See `:help lua-guide-autocommands` - --- Highlight when yanking (copying) text --- Try it with `yap` in normal mode --- See `:help vim.highlight.on_yank()` vim.api.nvim_create_autocmd('TextYankPost', { desc = 'Highlight when yanking (copying) text', group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }), @@ -225,13 +176,16 @@ vim.opt.rtp:prepend(lazypath) -- You can press `?` in this menu for help. Use `:q` to close the window -- -- To update plugins you can run +-- -- :Lazy update -- +-- This the beginning of and enormous line of code require('lazy').setup({}) +-- -- NOTE: Here is where you install your plugins. require('lazy').setup({ -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically - + { 'echasnovski/mini.nvim', version = false }, -- NOTE: Plugins can also be added by using a table, -- with the first argument being the link and the following -- keys can be used to configure plugin behavior/loading/etc. @@ -290,7 +244,7 @@ require('lazy').setup({ } end, }, - + { 'akinsho/toggleterm.nvim' }, -- NOTE: Plugins can specify dependencies. -- -- The dependencies are proper plugin specifications as well - anything @@ -599,12 +553,6 @@ require('lazy').setup({ }, } - -- Ensure the servers and tools above are installed - -- To check the current status of installed tools and/or manually install - -- other tools, you can run - -- :Mason - -- - -- You can press `g?` for help in this menu. require('mason').setup() -- You can add other tools here that you want Mason to install @@ -820,6 +768,8 @@ require('lazy').setup({ -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren -- - sd' - [S]urround [D]elete [']quotes -- - sr)' - [S]urround [R]eplace [)] ['] + require('toggleterm').setup {} + require('mini.files').setup() require('mini.surround').setup() -- Simple and easy statusline.