initial commit
This commit is contained in:
commit
0711f60dcb
3 changed files with 130 additions and 0 deletions
21
README.md
Normal file
21
README.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# dotfiles
|
||||
|
||||
these are my personal dotfiles (current as of jan 2026).
|
||||
|
||||
i currently use [gnu stow][stow] to create symlinks from wherever this repo is
|
||||
cloned to.
|
||||
|
||||
i have used some other systems in the past. the repos containing those
|
||||
configurations are available below:
|
||||
|
||||
- [nix, nix-darwin, and
|
||||
home-manager](https://git.sloane.sh/sloanelybutsurely/nix-dotfiles)
|
||||
- [yadm](https://git.sloane.sh/sloanelybutsurely/yadm-dotfiles)
|
||||
|
||||
## setup
|
||||
|
||||
installing configuration for a given program:
|
||||
|
||||
```sh stow <program> -t $HOME --dotfiles ```
|
||||
|
||||
[stow]: https://www.gnu.org/software/stow/
|
||||
8
fish/dot-config/fish/config.fish
Normal file
8
fish/dot-config/fish/config.fish
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fish_add_path -g ~/.local/bin
|
||||
|
||||
if status is-interactive
|
||||
fish_vi_key_bindings
|
||||
zoxide init fish | source
|
||||
|
||||
abbr j jj
|
||||
end
|
||||
101
neovim/dot-config/nvim/init.lua
Normal file
101
neovim/dot-config/nvim/init.lua
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).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)
|
||||
|
||||
-- Leader key
|
||||
vim.g.mapleader = " "
|
||||
|
||||
-- Settings
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.expandtab = true
|
||||
|
||||
-- Keybindings
|
||||
local k = vim.keymap.set
|
||||
k({ "n", "v" }, ";", ":")
|
||||
k({ "n", "v" }, "q;", "q:")
|
||||
k({ "n", "v" }, "<leader>y", '"+y')
|
||||
k({ "n", "v" }, "<leader>Y", '"+Y')
|
||||
k({ "n", "v" }, "<leader>p", '"+p')
|
||||
k({ "n", "v" }, "<leader>P", '"+P')
|
||||
k("n", "<leader>w", "<cmd>w<cr>")
|
||||
k("n", "<leader>q", "<cmd>q<cr>")
|
||||
k("n", "<esc>", "<cmd>nohlsearch<cr>")
|
||||
k("n", '<leader>"', "<cmd>split<cr>")
|
||||
k("n", "<leader>%", "<cmd>vsplit<cr>")
|
||||
k("n", "<C-h>", "<C-w>h")
|
||||
k("n", "<C-j>", "<C-w>j")
|
||||
k("n", "<C-k>", "<C-w>k")
|
||||
k("n", "<C-l>", "<C-w>l")
|
||||
|
||||
-- Plugins
|
||||
require("lazy").setup({
|
||||
{ "catppuccin/nvim", version = "^v1.11.0", name = "catppuccin", priority = 1000 },
|
||||
{ "tpope/vim-abolish", version = "^v1.2" },
|
||||
{ "tpope/vim-commentary", version = "^v1.3" },
|
||||
{ "tpope/vim-repeat", version = "^v1.2" },
|
||||
|
||||
{
|
||||
"windwp/nvim-autopairs",
|
||||
commit = "c2a0dd0",
|
||||
event = "InsertEnter",
|
||||
config = true,
|
||||
},
|
||||
{
|
||||
"kylechui/nvim-surround",
|
||||
version = "^3.0.0",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("nvim-surround").setup({})
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
version = "^v0.2.1",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
keys = {
|
||||
{ "<leader><space>", "<cmd>Telescope find_files<cr>" },
|
||||
{ "<leader>/", "<cmd>Telescope live_grep<cr>" },
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
version = "^1.14.0",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
require("nvim-tree").setup({})
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader><tab>", "<cmd>NvimTreeToggle<cr>" },
|
||||
{ "<leader>fl", "<cmd>NvimTreeFindFile<cr>" },
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
branch = 'master',
|
||||
lazy = false,
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
require('nvim-treesitter.configs').setup({
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
highlight = { enable = true },
|
||||
})
|
||||
end
|
||||
},
|
||||
})
|
||||
|
||||
vim.cmd.colorscheme "catppuccin"
|
||||
Loading…
Reference in a new issue