editor: setting up neovim again
been using helix for a few years now, but wanted to test the neovim waters again. mostly just ripped off "neovim for newbs" https://www.youtube.com/watch?v=zHTeCSVAFNY&list=PLsz00TDipIffreIaUNk64KxTIkQaGguqn
This commit is contained in:
parent
25e22570c8
commit
4db7bcac3b
19 changed files with 333 additions and 33 deletions
|
@ -4,7 +4,7 @@
|
||||||
name = {{ .name }}
|
name = {{ .name }}
|
||||||
email = {{ .email_personal }}
|
email = {{ .email_personal }}
|
||||||
[core]
|
[core]
|
||||||
editor = hx
|
editor = nvim
|
||||||
pager = delta
|
pager = delta
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = delta --color-only
|
diffFilter = delta --color-only
|
||||||
|
|
|
@ -4,8 +4,8 @@ if [[ "$OSTYPE" == darwin* ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Editors
|
# Editors
|
||||||
export EDITOR='hx'
|
export EDITOR='nvim'
|
||||||
export VISUAL='hx'
|
export VISUAL='nvim'
|
||||||
export PAGER='less'
|
export PAGER='less'
|
||||||
|
|
||||||
# Language
|
# Language
|
||||||
|
|
|
@ -59,12 +59,7 @@ for fp in $srcs; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
alias i="ipython3"
|
alias devlog="cd ~/projects/personal/devlog && nvim logs/$(date '+%Y-%m-%d').gmi && cd -"
|
||||||
alias devlog="cd ~/projects/personal/devlog && hx logs/$(date '+%Y-%m-%d').gmi && cd -"
|
|
||||||
|
|
||||||
{{ if eq .chezmoi.hostname "rattusrattus" -}}
|
|
||||||
alias colima_start="colima start --memory 8 --vm-type vz --mount-type virtiofs --dns 8.8.8.8 --dns 8.8.4.4"
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- if eq .chezmoi.hostname "devterm" }}
|
{{- if eq .chezmoi.hostname "devterm" }}
|
||||||
function battery() {
|
function battery() {
|
||||||
|
@ -101,20 +96,20 @@ function brightness_min {
|
||||||
# ttyscheme
|
# ttyscheme
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ if eq .hosttype "work" -}}
|
{{ if eq .hosttype "work" "personal" -}}
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
{{ end }}
|
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
eval "$(jj util completion zsh)"
|
eval "$(jj util completion zsh)"
|
||||||
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"
|
||||||
|
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
function reldate() {
|
function reldate() {
|
||||||
date -v "${1}" "+%Y-%m-%d"
|
date -v "${1}" "+%Y-%m-%d"
|
||||||
}
|
}
|
||||||
|
|
||||||
function _zkhx() {
|
|
||||||
hx --hsplit tasks.xit ${1}
|
|
||||||
}
|
|
||||||
|
|
||||||
[ "$TERM" = "xterm-kitty" ] && alias ssh="TERM=xterm ssh"
|
[ "$TERM" = "xterm-kitty" ] && alias ssh="TERM=xterm ssh"
|
||||||
|
|
||||||
alias strip_jira="sed 's/\[\{0,1\}[a-zA-Z]*-[0-9]*\]\{0,1\}//g'"
|
alias strip_jira="sed 's/\[\{0,1\}[a-zA-Z]*-[0-9]*\]\{0,1\}//g'"
|
||||||
|
alias hx="echo 'oops! you meant nvim, right?'"
|
||||||
|
|
|
@ -1,16 +1,19 @@
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBXQ0tGTHh2cm9Dd3RyVjk1
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBYU2dJZnYvTkh6dUVweXVx
|
||||||
RGw0a2U1dDNhTGxIVVBNOUxIeThuRllBWnc0Cm5wSFd1RTAyaUptaHk3Y05VYkcy
|
V1p0VVlwMDlRb0o0RCtBQ3hiV05sNlJKUWxJCmFOUGJ3MDJzeG52dnRnanl1YzEr
|
||||||
REtiWFdkWkE3NDFHVjZmdk5yMWd5c0UKLS0tIFVySXI4bmFiQ3B6K0ZYQUNpK1VW
|
T3NITFE2dVdTWmZZS21ibEVIOEZxOGsKLS0tIEFDc1FwdXAwcjFYdWQrUHR0Um1h
|
||||||
WWs2QmsxajNWNXdNdW1WN0tqYVltQzAKRt8AYM34DDCutguPZeS2yN9oJ5FCCGCz
|
Q1NEbnBUdUM1VzlSbno2SUNxNXVtVUkKXGUnUKGfQ5cPrOLQzii4i+JuDNLEZCTz
|
||||||
PFmV+aLrqn14Mf8TrsuZvxdMx8th2CAkueZCblvBOQzj+FwETeXW/XTmy0y8Wy7N
|
XFd5xowhxkKP2aVTXZwvmdAZuy19hnH3QU95P79W5E5WU8NjFCnEXaeJRYYCBFIt
|
||||||
F5yNzQfLOig9rW0qyK82sWEglunFM2u6g1rqCul9fZwuhvGOa1vSGYfnHNFwlIIl
|
PfcnXqJZ/ltCz0V4sNkh4kcdiQMGc62dCJmn6KczCQFLH2SZqzC1yGJcxKqj2agG
|
||||||
fPZ8h4HEWOf75p0qakt0mA+KrbAKmvrTFVmPvBcqaVfImka5e+PYNXeJ9lw8Rl8M
|
w4G01mT1RRaXG++SGv86I5RgkKkLLhED8Axfqf5S7L5s53IMVKdGrYhCmveWH01+
|
||||||
5pka+BKBSmDYtfhN8Y9i9UhPbv+UfDULNURCsWT9isx8tAeYmIJPdJ6+VoKHlt1R
|
L1DbgobbhSUDD+pBrD8+m3CKoRSDA7w0+ybcdVJBf7jF+pF2rZnC+KamTqB2O/Ru
|
||||||
gXgg08268d0X+ZFWIKJyluFNLBt35YSFNeNMKGe1DcTzop+VWxjVgS7uSRQj2Sti
|
Ak00RPNUs4thofxchxCPfnafUFdB7Vbr09qA+GQVAZJALwgFkTRxDJere2Kf5b9/
|
||||||
jym2L8m7bfieFvo37IG+wrIC0J1i4tqxIIZqPSYCrM45h5D2pkPT+8IQGnO+PUXu
|
UN0KUaq3x/mnujP+879wgxosmGda4/Mfj56wB/Ah9xuIQI3R3fTRlAjBPm9ul/wH
|
||||||
DbYypym6ndbD5VLY/etETIIYxWBkcHeOVGBEy5d2BR627ii0AW8gxU5pWHW3IZcn
|
iEvCLYwS8JQ2ug06nfyiAI4UkVEh8Fb1k5rCxSeeCTaGTQO6Bo86YCIsLV/Tg7Yc
|
||||||
Diwi5tnq5TD27eIYd4U6DxqneIwmWJvnxfZ3EpUqgAAhg/Wc3ZiTz7SMf9QO8tAW
|
yz8DBi3+rthL5T2myWOLdt662OdbJ0slgiwsTa1ADVAe9lsJWdPWigbIDv5NnxNH
|
||||||
KZQYi3oKd+d44WcM5uhGyKF5j7HB4qicPfGVuTH0fh4YNHF66AhEJuhRhAvZawpa
|
ncUwiUgcQ8QzLZ6CBD90NLfNDUnEA8EFk6uwvxScAOhAESlpHI95+s/20VTHi2vf
|
||||||
9PlqpoIrmMUU1DuD6PSLGe8VmL6EPp1zfg==
|
wrpJs1SbUc8vin1SsJBOL8dT1d4+MhUq19Z4c5MXQ6UUYLiDYxYFPNM8MQV528PL
|
||||||
|
xOKHdkOjANIL6VQjbPGOpdd6cGp8TbFsLoWm7k/jLsq5o6eWzkc1hbQuMSlhbaa8
|
||||||
|
uJTADuYbNTDMc/CkLo/Ynbmpng+E4YMEv/9xukryFWTpJcDQjJAWi64pMztvSLC+
|
||||||
|
6gfXAIGCo5eLMqEIawFp+UYU+4SH
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
|
|
5
home/private_dot_config/nvim/dot_luarc.json
Normal file
5
home/private_dot_config/nvim/dot_luarc.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"diagnostics.globals": [
|
||||||
|
"vim"
|
||||||
|
]
|
||||||
|
}
|
20
home/private_dot_config/nvim/init.lua
Normal file
20
home/private_dot_config/nvim/init.lua
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
-- Bootstrap lazy.nvim
|
||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
|
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||||
|
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||||
|
if vim.v.shell_error ~= 0 then
|
||||||
|
vim.api.nvim_echo({
|
||||||
|
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||||
|
{ out, "WarningMsg" },
|
||||||
|
{ "\nPress any key to exit..." },
|
||||||
|
}, true, {})
|
||||||
|
vim.fn.getchar()
|
||||||
|
os.exit(1)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
-- order matters here!
|
||||||
|
require("vim-options")
|
||||||
|
require("lazy").setup("plugins")
|
28
home/private_dot_config/nvim/lua/plugins/ai-config.lua
Normal file
28
home/private_dot_config/nvim/lua/plugins/ai-config.lua
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
return {
|
||||||
|
"yetone/avante.nvim",
|
||||||
|
opts = {
|
||||||
|
provider = "copilot",
|
||||||
|
},
|
||||||
|
dependencies = {
|
||||||
|
{
|
||||||
|
"zbirenbaum/copilot.lua",
|
||||||
|
config = function()
|
||||||
|
require("copilot").setup({
|
||||||
|
copilot_node_command = vim.fn.expand("$HOME") .. "/.nvm/versions/node/v22.14.0/bin/node",
|
||||||
|
suggestion = { enabled = false },
|
||||||
|
panel = { enabled = false },
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"MeanderingProgrammer/render-markdown.nvim",
|
||||||
|
opts = {
|
||||||
|
file_types = { "markdown", "Avante" },
|
||||||
|
},
|
||||||
|
ft = { "markdown", "Avante" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>a", "", { desc = "+ai" })
|
||||||
|
end,
|
||||||
|
}
|
9
home/private_dot_config/nvim/lua/plugins/catppuccin.lua
Normal file
9
home/private_dot_config/nvim/lua/plugins/catppuccin.lua
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
return {
|
||||||
|
"catppuccin/nvim",
|
||||||
|
lazy = false,
|
||||||
|
name = "catppuccin",
|
||||||
|
priority = 1000,
|
||||||
|
config = function()
|
||||||
|
vim.cmd.colorscheme("catppuccin")
|
||||||
|
end,
|
||||||
|
}
|
38
home/private_dot_config/nvim/lua/plugins/completions.lua
Normal file
38
home/private_dot_config/nvim/lua/plugins/completions.lua
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"zbirenbaum/copilot-cmp",
|
||||||
|
config = function()
|
||||||
|
require("copilot_cmp").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
config = function()
|
||||||
|
local cmp = require("cmp")
|
||||||
|
|
||||||
|
cmp.setup({
|
||||||
|
window = {
|
||||||
|
completion = cmp.config.window.bordered(),
|
||||||
|
documentation = cmp.config.window.bordered(),
|
||||||
|
},
|
||||||
|
mapping = cmp.mapping.preset.insert({
|
||||||
|
["<C-b>"] = cmp.mapping.scroll_docs(-4),
|
||||||
|
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
||||||
|
["<C-Space>"] = cmp.mapping.complete(),
|
||||||
|
["<C-e>"] = cmp.mapping.abort(),
|
||||||
|
["<CR>"] = cmp.mapping.confirm({ select = true }),
|
||||||
|
}),
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = "nvim_lsp" },
|
||||||
|
}, {
|
||||||
|
{ name = "buffer" },
|
||||||
|
}, {
|
||||||
|
{ name = "copilot" },
|
||||||
|
}),
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
33
home/private_dot_config/nvim/lua/plugins/lsp-config.lua
Normal file
33
home/private_dot_config/nvim/lua/plugins/lsp-config.lua
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
config = function()
|
||||||
|
require("mason").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
config = function()
|
||||||
|
require("mason-lspconfig").setup({
|
||||||
|
ensure_installed = { "lua_ls" },
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
config = function()
|
||||||
|
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||||
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
|
-- lua
|
||||||
|
lspconfig.lua_ls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.keymap.set("n", "K", vim.lsp.buf.hover, {})
|
||||||
|
vim.keymap.set("n", "gd", vim.lsp.buf.definition, {})
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>c", "", { desc = "+code" })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>ca", vim.lsp.buf.code_action, { desc = "action" })
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
6
home/private_dot_config/nvim/lua/plugins/lualine.lua
Normal file
6
home/private_dot_config/nvim/lua/plugins/lualine.lua
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
return {
|
||||||
|
"nvim-lualine/lualine.nvim",
|
||||||
|
config = function()
|
||||||
|
require("lualine").setup()
|
||||||
|
end,
|
||||||
|
}
|
12
home/private_dot_config/nvim/lua/plugins/neo-tree.lua
Normal file
12
home/private_dot_config/nvim/lua/plugins/neo-tree.lua
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
return {
|
||||||
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
branch = "v3.x",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
vim.keymap.set("n", "<leader>e", ":Neotree toggle<CR>", { desc = "toggle file tree" })
|
||||||
|
end,
|
||||||
|
}
|
14
home/private_dot_config/nvim/lua/plugins/none-ls.lua
Normal file
14
home/private_dot_config/nvim/lua/plugins/none-ls.lua
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
return {
|
||||||
|
"nvimtools/none-ls.nvim",
|
||||||
|
config = function()
|
||||||
|
local null_ls = require("null-ls")
|
||||||
|
|
||||||
|
null_ls.setup({
|
||||||
|
sources = {
|
||||||
|
null_ls.builtins.formatting.stylua,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>cf", vim.lsp.buf.format, { desc = "format" })
|
||||||
|
end,
|
||||||
|
}
|
39
home/private_dot_config/nvim/lua/plugins/telescope.lua
Normal file
39
home/private_dot_config/nvim/lua/plugins/telescope.lua
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
tag = "0.1.8",
|
||||||
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
|
config = function()
|
||||||
|
local builtin = require("telescope.builtin")
|
||||||
|
vim.keymap.set("n", "<leader>f", builtin.find_files, { desc = "find files" })
|
||||||
|
vim.keymap.set("n", "<leader>b", builtin.buffers, { desc = "find buffers" })
|
||||||
|
vim.keymap.set("n", "<leader>/", builtin.live_grep, { desc = "live grep" })
|
||||||
|
vim.keymap.set("n", "<leader>j", builtin.jumplist, { desc = "jumplist" })
|
||||||
|
|
||||||
|
local actions = require("telescope.actions")
|
||||||
|
require("telescope").setup({
|
||||||
|
defaults = {
|
||||||
|
mappings = {
|
||||||
|
i = {
|
||||||
|
["<esc>"] = actions.close,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"nvim-telescope/telescope-ui-select.nvim",
|
||||||
|
config = function()
|
||||||
|
require("telescope").setup({
|
||||||
|
extensions = {
|
||||||
|
["ui-select"] = {
|
||||||
|
require("telescope.themes").get_dropdown({}),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
require("telescope").load_extension("ui-select")
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
56
home/private_dot_config/nvim/lua/plugins/testing-config.lua
Normal file
56
home/private_dot_config/nvim/lua/plugins/testing-config.lua
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-neotest/neotest",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-neotest/nvim-nio",
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"antoinemadec/FixCursorHold.nvim",
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("neotest").setup({
|
||||||
|
adapters = {
|
||||||
|
require("neotest-python"),
|
||||||
|
require("rustaceanvim.neotest"),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>t", "", { desc = "+testing" })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>tt", function()
|
||||||
|
require("neotest").run.run(vim.fn.expand("%"))
|
||||||
|
end, { desc = "run file" })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>tT", function()
|
||||||
|
require("neotest").run.run(vim.uv.cwd())
|
||||||
|
end, { desc = "run all test files" })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>tr", function()
|
||||||
|
require("neotest").run.run()
|
||||||
|
end, { desc = "run nearest" })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>tl", function()
|
||||||
|
require("neotest").run.run_last()
|
||||||
|
end, { desc = "run last" })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>ts", function()
|
||||||
|
require("neotest").summary.toggle()
|
||||||
|
end, { desc = "toggle summary" })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>to", function()
|
||||||
|
require("neotest").output.open({ enter = true, auto_close = true })
|
||||||
|
end, { desc = "show output" })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>to", function()
|
||||||
|
require("neotest").output_panel.toggle()
|
||||||
|
end, { desc = "toggle output panel" })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>ts", function()
|
||||||
|
require("neotest").run.stop()
|
||||||
|
end, { desc = "stop" })
|
||||||
|
vim.keymap.set({ "n", "v" }, "<leader>tw", function()
|
||||||
|
require("neotest").watch.toggle(vim.fn.expand("%"))
|
||||||
|
end, { desc = "toggle watch" })
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"nvim-neotest/neotest-python",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mrcjkb/rustaceanvim",
|
||||||
|
version = "^5",
|
||||||
|
lazy = false,
|
||||||
|
},
|
||||||
|
}
|
15
home/private_dot_config/nvim/lua/plugins/treesitter.lua
Normal file
15
home/private_dot_config/nvim/lua/plugins/treesitter.lua
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
return {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
build = ":TSUpdate",
|
||||||
|
config = function()
|
||||||
|
local configs = require("nvim-treesitter.configs")
|
||||||
|
|
||||||
|
configs.setup({
|
||||||
|
ensure_installed = { "lua", "vim", "query", "javascript", "html", "python", "rust" },
|
||||||
|
sync_install = false,
|
||||||
|
auto_install = true,
|
||||||
|
highlight = { enable = true },
|
||||||
|
indent = { enable = true },
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
14
home/private_dot_config/nvim/lua/plugins/which-key.lua
Normal file
14
home/private_dot_config/nvim/lua/plugins/which-key.lua
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
return {
|
||||||
|
"folke/which-key.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = {},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>?",
|
||||||
|
function()
|
||||||
|
require("which-key").show({ global = false })
|
||||||
|
end,
|
||||||
|
desc = "buffer local keymaps (which-key)",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
9
home/private_dot_config/nvim/lua/vim-options.lua
Normal file
9
home/private_dot_config/nvim/lua/vim-options.lua
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
vim.g.maplocalleader = "\\"
|
||||||
|
|
||||||
|
vim.o.cursorline = true
|
||||||
|
vim.o.expandtab = true
|
||||||
|
vim.o.number = true
|
||||||
|
vim.o.shiftwidth = 2
|
||||||
|
vim.o.softtabstop = 2
|
||||||
|
vim.o.tabstop = 2
|
|
@ -10,7 +10,6 @@ sudo apt install \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
lynx \
|
lynx \
|
||||||
ripgrep \
|
ripgrep \
|
||||||
tmux \
|
|
||||||
tree \
|
tree \
|
||||||
wget \
|
wget \
|
||||||
zsh \
|
zsh \
|
||||||
|
@ -30,6 +29,8 @@ brew install \
|
||||||
helix \
|
helix \
|
||||||
jj \
|
jj \
|
||||||
kitty \
|
kitty \
|
||||||
|
neovim \
|
||||||
|
nvm \
|
||||||
ripgrep \
|
ripgrep \
|
||||||
sqlite \
|
sqlite \
|
||||||
tree \
|
tree \
|
||||||
|
@ -42,6 +43,11 @@ brew install \
|
||||||
zlib \
|
zlib \
|
||||||
zsh
|
zsh
|
||||||
|
|
||||||
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"
|
||||||
|
nvm install 22
|
||||||
|
nvm use 22
|
||||||
|
|
||||||
{{ else if eq .hosttype "wsl" -}}
|
{{ else if eq .hosttype "wsl" -}}
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install \
|
sudo apt install \
|
||||||
|
@ -50,13 +56,11 @@ sudo apt install \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
ripgrep \
|
ripgrep \
|
||||||
tmux \
|
|
||||||
tree \
|
tree \
|
||||||
wget \
|
wget \
|
||||||
yazi \
|
yazi \
|
||||||
-y
|
-y
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if eq .hosttype "work" -}}
|
{{ else if eq .hosttype "work" -}}
|
||||||
{{ join .chezmoi.sourceDir "encrypted_work_packages.age" | include | decrypt -}}
|
{{ join .chezmoi.sourceDir "encrypted_work_packages.age" | include | decrypt -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue