biblius 2 hónapja
szülő
commit
176078ba25
3 módosított fájl, 25 hozzáadás és 21 törlés
  1. 22 21
      init.lua
  2. 1 0
      lazy-lock.json
  3. 2 0
      lua/custom/lazy.lua

+ 22 - 21
init.lua

@@ -33,15 +33,19 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn
 vim.keymap.set('n', '<leader>-', '<CMD>Oil<CR>', { desc = 'Open parent directory (oil)' })
 
 -- Make window management nice
-vim.api.nvim_set_keymap('n', '<C-Left>', ':vertical resize +3<CR>', { silent = true, noremap = true })
-vim.api.nvim_set_keymap('n', '<C-Right>', ':vertical resize -3<CR>', { silent = true, noremap = true })
-vim.api.nvim_set_keymap('n', '<C-Up>', ':resize -3<CR>', { silent = true, noremap = true })
-vim.api.nvim_set_keymap('n', '<C-Down>', ':resize +3<CR>', { silent = true, noremap = true })
+vim.keymap.set('n', '<C-Left>', ':vertical resize +3<CR>', { silent = true, noremap = true })
+vim.keymap.set('n', '<C-Right>', ':vertical resize -3<CR>', { silent = true, noremap = true })
+vim.keymap.set('n', '<C-Up>', ':resize -3<CR>', { silent = true, noremap = true })
+vim.keymap.set('n', '<C-Down>', ':resize +3<CR>', { silent = true, noremap = true })
 
-vim.api.nvim_set_keymap('n', '<C-h>', '<C-w>h', { silent = true, noremap = true })
-vim.api.nvim_set_keymap('n', '<C-j>', '<C-w>j', { silent = true, noremap = true })
-vim.api.nvim_set_keymap('n', '<C-k>', '<C-w>k', { silent = true, noremap = true })
-vim.api.nvim_set_keymap('n', '<C-l>', '<C-w>l', { silent = true, noremap = true })
+vim.keymap.set('n', '<C-h>', '<C-w>h', { silent = true, noremap = true })
+vim.keymap.set('n', '<C-j>', '<C-w>j', { silent = true, noremap = true })
+vim.keymap.set('n', '<C-k>', '<C-w>k', { silent = true, noremap = true })
+vim.keymap.set('n', '<C-l>', '<C-w>l', { silent = true, noremap = true })
+
+-- Doc comment generation
+vim.api.nvim_set_keymap('n', '<Leader>cd', ":lua require('neogen').generate()<CR>",
+  { noremap = true, silent = true, desc = '[C]ode [D]ocumentation comment' })
 
 -- What you get in abundance when using Nvim
 vim.keymap.set('n', '<leader>f', ':Sex', { silent = true, noremap = true })
@@ -53,9 +57,6 @@ vim.api.nvim_set_keymap('i', '<C-H>', '<C-W>', { noremap = true })
 -- Lazygit
 vim.api.nvim_set_keymap('n', '<leader>gg', ':LazyGit<CR>', { noremap = true, silent = true })
 
--- Doc comment generation
-vim.api.nvim_set_keymap('n', '<Leader>cd', ":lua require('neogen').generate()<CR>", { noremap = true, silent = true })
-
 -- When lyf give you lemons
 vim.keymap.set('n', '<leader>fml', '<cmd>CellularAutomaton make_it_rain<CR>')
 
@@ -324,29 +325,29 @@ require('which-key').add {
 
   -- Suggested Spec:
   {
-    { '<leader>c', group = '[C]ode' },
+    { '<leader>c',  group = '[C]ode' },
     { '<leader>c_', hidden = true },
-    { '<leader>d', group = '[D]ocument' },
+    { '<leader>d',  group = '[D]ocument' },
     { '<leader>d_', hidden = true },
-    { '<leader>g', group = '[G]it' },
+    { '<leader>g',  group = '[G]it' },
     { '<leader>g_', hidden = true },
-    { '<leader>h', group = 'Git [H]unk' },
+    { '<leader>h',  group = 'Git [H]unk' },
     { '<leader>h_', hidden = true },
-    { '<leader>r', group = '[R]ename' },
+    { '<leader>r',  group = '[R]ename' },
     { '<leader>r_', hidden = true },
-    { '<leader>s', group = '[S]earch' },
+    { '<leader>s',  group = '[S]earch' },
     { '<leader>s_', hidden = true },
-    { '<leader>t', group = '[T]oggle' },
+    { '<leader>t',  group = '[T]oggle' },
     { '<leader>t_', hidden = true },
-    { '<leader>w', group = '[W]orkspace' },
+    { '<leader>w',  group = '[W]orkspace' },
     { '<leader>w_', hidden = true },
   },
 }
 -- register which-key VISUAL mode
 -- required for visual <leader>hs (hunk stage) to work
 require('which-key').add {
-  { '<leader>', group = 'VISUAL <leader>', mode = 'v' },
-  { '<leader>h', desc = 'Git [H]unk', mode = 'v' },
+  { '<leader>',  group = 'VISUAL <leader>', mode = 'v' },
+  { '<leader>h', desc = 'Git [H]unk',       mode = 'v' },
 }
 
 -- mason-lspconfig requires that these setup functions are called in this order

+ 1 - 0
lazy-lock.json

@@ -5,6 +5,7 @@
   "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
   "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
   "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
+  "codeium.vim": { "branch": "main", "commit": "fc5a68d6273715f13a1257f02a63d668604d9f27" },
   "fidget.nvim": { "branch": "main", "commit": "d855eed8a06531a7e8fd0684889b2943f373c469" },
   "gitsigns.nvim": { "branch": "main", "commit": "899e993850084ea33d001ec229d237bc020c19ae" },
   "gx.nvim": { "branch": "main", "commit": "28060914ee334da8a7f3c17509fd23cec023a0f7" },

+ 2 - 0
lua/custom/lazy.lua

@@ -315,6 +315,8 @@ require('lazy').setup({
     },
   },
 
+  'Exafunction/codeium.vim',
+
   -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
   --    You can use this folder to prevent any conflicts with this init.lua if you're interested in keeping
   --    up-to-date with whatever is in the kickstart repo.