feat: Updates to nvim config and git config

This commit is contained in:
2024-11-14 16:26:35 -05:00
parent 15eedbfd1e
commit 49524fef66
5 changed files with 23 additions and 17 deletions

View File

@@ -24,4 +24,5 @@
[credential "https://git.housh.dev"] [credential "https://git.housh.dev"]
username = michael username = michael
[push]
autoSetupRemote = true

View File

@@ -53,19 +53,19 @@ return {
-- with the <Control> key. -- with the <Control> key.
-- Select buffer numbers. -- Select buffer numbers.
vim.keymap.set("n", "<C-y>", vim.keymap.set("n", "<C-S-Y>",
function() harpoon:list():select(1) end, function() harpoon:list():select(1) end,
{ desc = "Select first harpoon buffer." } { desc = "Select first harpoon buffer." }
) )
vim.keymap.set("n", "<C-u>", vim.keymap.set("n", "<C-S-U>",
function() harpoon:list():select(2) end, function() harpoon:list():select(2) end,
{ desc = "Select second harpoon buffer." } { desc = "Select second harpoon buffer." }
) )
vim.keymap.set("n", "<C-i>", vim.keymap.set("n", "<C-S-I>",
function() harpoon:list():select(3) end, function() harpoon:list():select(3) end,
{ desc = "Select third harpoon buffer." } { desc = "Select third harpoon buffer." }
) )
vim.keymap.set("n", "<C-o>", vim.keymap.set("n", "<C-S-O>",
function() harpoon:list():select(3) end, function() harpoon:list():select(3) end,
{ desc = "Select third harpoon buffer." } { desc = "Select third harpoon buffer." }
) )

View File

@@ -9,7 +9,7 @@ return {
local default_options = { noremap = true, silent = true } local default_options = { noremap = true, silent = true }
local actions = require('swift.actions') local actions = require('swift.actions')
vim.keymap.set('n', '<c-b>', actions.build, default_options) vim.keymap.set('n', '<C-b>', actions.build, default_options)
vim.keymap.set('n', '<c-u>', actions.test, default_options) vim.keymap.set('n', '<C-S-U>', actions.test, default_options)
end end
} }

View File

@@ -7,6 +7,7 @@ return {
lazy = true, lazy = true,
config = function() config = function()
local actions = require('telescope.actions') local actions = require('telescope.actions')
local builtin = require('telescope.builtin')
require('telescope').setup({ require('telescope').setup({
defaults = { defaults = {
@@ -68,5 +69,7 @@ return {
buffer_previewer_maker = require'telescope.previewers'.buffer_previewer_maker buffer_previewer_maker = require'telescope.previewers'.buffer_previewer_maker
} }
}) })
vim.keymap.set("n", "<C-A-j>", builtin.jumplist, { silent = true, noremap = true, desc = "Open [J]ump List."})
end end
} }

View File

@@ -27,16 +27,6 @@ require("lazy").setup({
-- Git -- -- Git --
{ import = 'user.plugin.lazygit' }, { import = 'user.plugin.lazygit' },
-- LSP, formatting, etc. --
{ 'folke/neodev.nvim', opts = {} },
{ import = 'user.plugin.lsp' },
{ import = 'user.plugin.lualine' },
{ import = 'user.plugin.treesitter' },
{ import = 'user.plugin.formatter' },
{ import = 'user.plugin.go' },
{ import = 'user.plugin.nvim-lint' },
--{'fladson/vim-kitty', lazy=true, },
-- Navigation -- -- Navigation --
{ import = 'user.plugin.neo-tree' }, { import = 'user.plugin.neo-tree' },
{ import = 'user.plugin.telescope' }, { import = 'user.plugin.telescope' },
@@ -71,4 +61,16 @@ require("lazy").setup({
end end
}, },
-- LSP, formatting, etc. --
{ 'folke/neodev.nvim', opts = {} },
{ import = 'user.plugin.lsp' },
{ import = 'user.plugin.lualine' },
{ import = 'user.plugin.treesitter' },
{ import = 'user.plugin.formatter' },
{ import = 'user.plugin.go' },
{ import = 'user.plugin.nvim-lint' },
--{'fladson/vim-kitty', lazy=true, },
}) })