|
1 | 1 | --[[ |
2 | 2 |
|
| 3 | +
|
3 | 4 | ===================================================================== |
4 | 5 | ==================== READ THIS BEFORE CONTINUING ==================== |
5 | 6 | ===================================================================== |
@@ -102,7 +103,7 @@ vim.g.have_nerd_font = false |
102 | 103 | vim.opt.number = true |
103 | 104 | -- You can also add relative line numbers, to help with jumping. |
104 | 105 | -- Experiment for yourself to see if you like it! |
105 | | --- vim.opt.relativenumber = true |
| 106 | +vim.opt.relativenumber = true |
106 | 107 |
|
107 | 108 | -- Enable mouse mode, can be useful for resizing splits for example! |
108 | 109 | vim.opt.mouse = 'a' |
@@ -156,38 +157,8 @@ vim.opt.cursorline = true |
156 | 157 | -- Minimal number of screen lines to keep above and below the cursor. |
157 | 158 | vim.opt.scrolloff = 10 |
158 | 159 |
|
159 | | --- [[ Basic Keymaps ]] |
160 | | --- See `:help vim.keymap.set()` |
161 | | - |
162 | | --- Clear highlights on search when pressing <Esc> in normal mode |
163 | | --- See `:help hlsearch` |
164 | | -vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>') |
165 | | - |
166 | | --- Diagnostic keymaps |
167 | | -vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) |
168 | | - |
169 | | --- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier |
170 | | --- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which |
171 | | --- is not what someone will guess without a bit more experience. |
172 | | --- |
173 | | --- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping |
174 | | --- or just use <C-\><C-n> to exit terminal mode |
175 | | -vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' }) |
176 | | - |
177 | | --- TIP: Disable arrow keys in normal mode |
178 | | --- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>') |
179 | | --- vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>') |
180 | | --- vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>') |
181 | | --- vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>') |
182 | | - |
183 | | --- Keybinds to make split navigation easier. |
184 | | --- Use CTRL+<hjkl> to switch between windows |
185 | | --- |
186 | | --- See `:help wincmd` for a list of all window commands |
187 | | -vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' }) |
188 | | -vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' }) |
189 | | -vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' }) |
190 | | -vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' }) |
| 160 | +--pull in remaps |
| 161 | +require 'remap' |
191 | 162 |
|
192 | 163 | -- [[ Basic Autocommands ]] |
193 | 164 | -- See `:help lua-guide-autocommands` |
@@ -328,7 +299,7 @@ require('lazy').setup({ |
328 | 299 | { '<leader>c', group = '[C]ode', mode = { 'n', 'x' } }, |
329 | 300 | { '<leader>d', group = '[D]ocument' }, |
330 | 301 | { '<leader>r', group = '[R]ename' }, |
331 | | - { '<leader>s', group = '[S]earch' }, |
| 302 | + { '<leader>S', group = '[S]earch' }, |
332 | 303 | { '<leader>w', group = '[W]orkspace' }, |
333 | 304 | { '<leader>t', group = '[T]oggle' }, |
334 | 305 | { '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } }, |
@@ -628,6 +599,7 @@ require('lazy').setup({ |
628 | 599 | local servers = { |
629 | 600 | -- clangd = {}, |
630 | 601 | -- gopls = {}, |
| 602 | + pylsp = {}, |
631 | 603 | -- pyright = {}, |
632 | 604 | -- rust_analyzer = {}, |
633 | 605 | -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs |
@@ -859,8 +831,7 @@ require('lazy').setup({ |
859 | 831 | -- Load the colorscheme here. |
860 | 832 | -- Like many other themes, this one has different styles, and you could load |
861 | 833 | -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. |
862 | | - vim.cmd.colorscheme 'tokyonight-night' |
863 | | - |
| 834 | + vim.cmd.colorscheme 'tokyonight-storm' |
864 | 835 | -- You can configure highlights by doing something like: |
865 | 836 | vim.cmd.hi 'Comment gui=none' |
866 | 837 | end, |
|
0 commit comments