Compare commits

...

3 commits

Author SHA1 Message Date
2450f6b222 include --with-bdeps in eupgrade alias 2025-04-10 18:10:14 +02:00
1fb71cfa08 add nvim to readme 2025-04-10 18:10:05 +02:00
8a30fffd64 nvim: styles, keybindings, etc 2025-04-10 18:09:58 +02:00
7 changed files with 89 additions and 22 deletions

View file

@ -23,4 +23,5 @@ A short list of what's included in here:
- `emacs`, while I use Zed for a lot these days, Emacs remains the best Lisp interaction mode, hands down
- A barebones `vim` config
- `git` and `hg` configuration
- `neovim` (gotta have it)
- Configuration for things I use very rarely (`helix`, `nushell`, `nix`, `alacritty`)

View file

@ -61,7 +61,7 @@ alias cd.. "cd ../"
alias rmrf "rm -rf"
# portage aliases
alias eupgrade "doas emerge -aguDN @world"
alias eupgrade "doas emerge -aguDN --with-bdeps=t @world"
alias eclean "doas emerge -ac"
# chezmoi aliases

View file

@ -1 +1,2 @@
require("settings")
require("config.lazy")

View file

@ -11,9 +11,46 @@ return {
dashboard = { enabled = true },
indent = { enabled = true, animate = { enabled = false } },
input = { enabled = true },
lazygit = { enabled = true },
lazygit = { enabled = true, configure = true },
picker = { enabled = true },
quickfile = { enabled = true },
statuscolumn = { enabled = true }
}
}
statuscolumn = { enabled = true },
},
keys = {
{
"<leader>gg",
function()
require("snacks").lazygit()
end,
desc = "Open LazyGit",
},
},
},
{
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
lua = { "stylua" },
},
format_on_save = {
timeout_ms = 500,
lsp_format = "fallback",
},
},
},
{
"zapling/mason-conform.nvim",
depends = {
"williamboman/mason.nvim",
"stevearc/conform.nvim",
},
opts = {},
},
{
"mrjones2014/legendary.nvim",
priority = 999,
opts = {
extensions = { lazy_nvim = true },
},
},
}

View file

@ -1,30 +1,37 @@
-- Telescope, and other file picker-related plugins
return {
{
{
"nvim-telescope/telescope.nvim",
config = function()
local telescope = require("telescope")
telescope.setup()
telescope.setup({})
telescope.load_extension("chezmoi")
end
end,
keys = {
{
"<leader><space>",
"<cmd>Telescope find_files<cr>",
desc = "Find files",
},
},
},
{
"xvzc/chezmoi.nvim",
config = function()
require("chezmoi").setup {
-- Treat all files in my chezmoi source directory as source files
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
callback = function(evt)
local bufnr = evt.buf
local edit_watch = function()
require("chezmoi.commands.__edit").watch(bufnr)
end
vim.schedule(edit_watch)
end
})
}
end
require("chezmoi").setup({
-- Treat all files in my chezmoi source directory as source files
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
callback = function(evt)
local bufnr = evt.buf
local edit_watch = function()
require("chezmoi.commands.__edit").watch(bufnr)
end
vim.schedule(edit_watch)
end,
}),
})
end,
},
}

View file

@ -0,0 +1,18 @@
local o = vim.opt
o.number = true -- line numbers
o.clipboard = "unnamedplus" -- use the clipboard register
o.syntax = "on" -- syntaxxxx
o.autoindent = true -- keep indents from prev line
o.cursorline = true -- highlight bg of current line
o.expandtab = true -- in insert, handle <tab> correctly
o.shiftwidth = 2 -- 2 spaces
o.tabstop = 2 -- 2-wide tabs
o.encoding = "UTF-8" -- obligatory
o.ruler = true -- show location of cursor
o.mouse = "a" -- enable mouse on all modes
o.title = true -- update the window title
o.wildmenu = true -- get wild
o.showmatch = true -- jump to matching bracket
o.splitright = true -- split right
o.splitbelow = true -- split below

View file

@ -0,0 +1,3 @@
indent_type = "Spaces"
indent_width = 2
column_width = 120