diff --git a/init.lua b/init.lua index a529cf8..599d626 100644 --- a/init.lua +++ b/init.lua @@ -290,6 +290,7 @@ require('lazy').setup({ ['w'] = { name = '[W]orkspace', _ = 'which_key_ignore' }, ['t'] = { name = '[T]oggle', _ = 'which_key_ignore' }, ['h'] = { name = 'Git [H]unk', _ = 'which_key_ignore' }, + ['g'] = { name = '[G]it Search', _ = 'which_key_ignore' }, } -- visual mode require('which-key').register({ @@ -380,10 +381,15 @@ require('lazy').setup({ vim.keymap.set('n', 'ss', builtin.builtin, { desc = '[S]earch [S]elect Telescope' }) vim.keymap.set('n', 'sw', builtin.grep_string, { desc = '[S]earch current [W]ord' }) vim.keymap.set('n', 'sg', builtin.live_grep, { desc = '[S]earch by [G]rep' }) + vim.keymap.set('n', 'gs', ':Telescope git_status initial_mode=normal', { desc = '[G]it [S]tatus' }) + vim.keymap.set('n', 'gt', ':Telescope git_stash initial_mode=normal', { desc = '[G]it s[T]ash' }) + vim.keymap.set('n', 'gc', builtin.git_commits, { desc = '[G]it [C]ommits' }) vim.keymap.set('n', 'sd', builtin.diagnostics, { desc = '[S]earch [D]iagnostics' }) + vim.keymap.set('n', 'st', builtin.treesitter, { desc = '[S]earch [T]reesitter' }) + vim.keymap.set('n', 'th', builtin.colorscheme, { desc = '[TH]eme Picker' }) vim.keymap.set('n', 'sr', builtin.resume, { desc = '[S]earch [R]esume' }) vim.keymap.set('n', 's.', builtin.oldfiles, { desc = '[S]earch Recent Files ("." for repeat)' }) - vim.keymap.set('n', '', builtin.buffers, { desc = '[ ] Find existing buffers' }) + vim.keymap.set('n', '', ':Telescope buffers initial_mode=normal', { desc = '[ ] Find existing buffers' }) -- Slightly advanced example of overriding default behavior and theme vim.keymap.set('n', '/', function() @@ -609,7 +615,6 @@ require('lazy').setup({ local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { -- Lua - 'lua-language-server', 'stylua', -- TS / JS 'html-lsp', @@ -618,7 +623,6 @@ require('lazy').setup({ 'prettierd', 'typescript-language-server', -- Python - 'ruff-lsp', 'ruff', 'pyright', -- C @@ -800,6 +804,17 @@ require('lazy').setup({ -- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. 'folke/tokyonight.nvim', + opts = { transparent_background = true }, + init = function() + -- Load the colorscheme here. + -- Like many other themes, this one has different styles, and you could load + -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. + vim.cmd.colorscheme 'tokyonight-night' + + -- You can configure highlights by doing something like: + vim.cmd.hi 'Comment gui=none' + end, + priority = 1000, }, -- Highlight todo, notes, etc in comments @@ -858,6 +873,9 @@ require('lazy').setup({ 'vimdoc', 'css', 'python', + 'go', + 'rust', + 'javascript', 'typescript', 'graphql', }, diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 18682e3..be0eb9d 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -2,20 +2,4 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information -return { - { - 'catppuccin/nvim', - name = 'catppuccin', - opts = { transparent_background = true }, - init = function() - -- Load the colorscheme here. - -- Like many other themes, this one has different styles, and you could load - -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'catppuccin' - - -- You can configure highlights by doing something like: - vim.cmd.hi 'Comment gui=none' - end, - priority = 1000, - }, -} +return {} diff --git a/lua/custom/plugins/mappings.lua b/lua/custom/plugins/mappings.lua new file mode 100644 index 0000000..a564707 --- /dev/null +++ b/lua/custom/plugins/mappings.lua @@ -0,0 +1 @@ +return {} diff --git a/lua/custom/plugins/oil.lua b/lua/custom/plugins/oil.lua index e75b86c..5dc116e 100644 --- a/lua/custom/plugins/oil.lua +++ b/lua/custom/plugins/oil.lua @@ -63,10 +63,10 @@ local opt = { ['t'] = { 'actions.select', opts = { tab = true }, desc = 'Open the entry in new tab' }, [''] = 'actions.preview', [''] = 'actions.close', + [''] = 'actions.close', [''] = 'actions.refresh', ['-'] = 'actions.parent', ['_'] = 'actions.open_cwd', - [''] = 'actions.open_cwd', ['`'] = 'actions.cd', ['~'] = { 'actions.cd', opts = { scope = 'tab' }, desc = ':tcd to the current oil directory' }, ['gs'] = 'actions.change_sort',