Fix ls aliases and add herdr config
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
-- save by pressing Escape
|
||||
vim.keymap.set('n', '<Esc>', ':w<CR>', { desc = 'Save' })
|
||||
-- select all
|
||||
vim.keymap.set('n', '<C-a>', 'ggVG', { desc = 'Select All' })
|
||||
-- pasting over a selection no longer clobbers your clipboard
|
||||
vim.cmd([[ xnoremap <expr> p 'pgv"'.v:register.'y' ]])
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
|
||||
if not vim.uv.fs_stat(lazypath) then
|
||||
vim.fn.system({ 'git', 'clone', '--filter=blob:none',
|
||||
'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath })
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
require('lazy').setup('plugins') -- load every file in lua/plugins/
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
{
|
||||
'NeogitOrg/neogit',
|
||||
dependencies = { 'nvim-lua/plenary.nvim', 'sindrets/diffview.nvim' },
|
||||
keys = { { '<leader>g', function() require('neogit').open() end, desc = 'Neogit' } },
|
||||
},
|
||||
{
|
||||
'lewis6991/gitsigns.nvim',
|
||||
event = 'BufWinEnter',
|
||||
opts = { current_line_blame = true }, -- who last touched this line
|
||||
},
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
return {
|
||||
{
|
||||
'stevearc/oil.nvim',
|
||||
opts = { view_options = { show_hidden = true } },
|
||||
keys = { { '<leader>e', '<cmd>Oil<cr>', desc = 'File Browser' } },
|
||||
},
|
||||
{
|
||||
'folke/snacks.nvim',
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
opts = {
|
||||
picker = { enabled = true },
|
||||
notifier = { enabled = true },
|
||||
input = { enabled = true },
|
||||
},
|
||||
keys = {
|
||||
{ '<leader>f', function() Snacks.picker.files() end, desc = 'Find Files' },
|
||||
{ '<leader>s', function() Snacks.picker.grep() end, desc = 'Search Text' },
|
||||
{ '<leader>b', function() Snacks.picker.buffers() end, desc = 'Buffers' },
|
||||
{ 'gd', function() Snacks.picker.lsp_definitions() end, desc = 'Goto Definition' },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
{
|
||||
'folke/which-key.nvim',
|
||||
lazy = false,
|
||||
config = true, -- popup that shows what my leader keys do
|
||||
},
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
local o = vim.opt
|
||||
vim.g.mapleader = ' ' -- space is the leader key
|
||||
o.expandtab = true -- spaces, not tabs
|
||||
o.shiftwidth = 2 -- 2 spaces per indent level
|
||||
o.number = true -- absolute number on the cursor line, relative elsewhere
|
||||
o.relativenumber = true -- relative line numbers for fast jumps
|
||||
o.ignorecase = true -- search is case-insensitive by default
|
||||
o.smartcase = true -- case-sensitive only if i type a capital
|
||||
o.clipboard = 'unnamedplus' -- share the system clipboard
|
||||
o.scrolloff = 16 -- keep cursor away from the screen edge
|
||||
o.undofile = true -- persistent undo across sessions
|
||||
o.mouse = '' -- no mouse in nvim; also lets Herdr keep host mouse capture off so Escape isn't swallowed
|
||||
|
||||
Reference in New Issue
Block a user