Merge branch 'main' into zephyrus

This commit is contained in:
2025-08-05 16:28:43 -04:00
10 changed files with 82 additions and 47 deletions

View File

@@ -15,54 +15,11 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
end
vim.opt.rtp:prepend(lazypath)
vim.g.mapleader= " "
vim.o.termguicolors = true
vim.o.number = true
vim.o.relativenumber = true
vim.o.signcolumn = "yes"
vim.o.expandtab = true
vim.o.tabstop = 2
vim.o.softtabstop = 2
vim.o.shiftwidth = 2
vim.o.termguicolors = true
-- Setup lazy.nvim
require("lazy").setup({
spec = {
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
{ "nvim-telescope/telescope.nvim", tag = "0.1.8", dependencies = { "nvim-lua/plenary.nvim" } },
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
{ "neovim/nvim-lspconfig" },
{ "sindrets/diffview.nvim" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
local opts = {
install = { colorscheme = { "catppuccin" } },
-- automatically check for plugin updates
checker = { enabled = true },
})
}
require("catppuccin").setup({
auto_integrations = true,
flavour = "mocha",
background = {
light = "mocha",
dark = "mocha",
},
})
vim.cmd("colorscheme catppuccin-mocha")
local builtin = require("telescope.builtin")
vim.keymap.set("n", "<C-t>", builtin.find_files, {})
vim.keymap.set("n", "<leader>fg", builtin.live_grep, {})
local config = require("nvim-treesitter.configs")
config.setup({
ensure_installed = {"lua", "javascript", "c", "zig", "vim", "rasi", "cpp", "markdown", "markdown_inline"},
highlight = { enable = true },
indent = { enable = true },
})
vim.lsp.enable("zls")
vim.lsp.enable("clangd")
-- Setup lazy.nvim
require("lazy").setup("plugins", opts)

View File

@@ -0,0 +1,2 @@
return {
}

View File

@@ -0,0 +1,17 @@
return {
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
config = function()
local config = require("catppuccin")
config.setup({
auto_integrations = true,
flavour = "mocha",
background = {
light = "mocha",
dark = "mocha",
},
})
vim.cmd.colorscheme "catppuccin-mocha"
end
}

View File

@@ -0,0 +1,3 @@
return {
"sindrets/diffview.nvim"
}

View File

@@ -0,0 +1,7 @@
return {
"neovim/nvim-lspconfig",
config = function()
vim.lsp.enable("zls")
vim.lsp.enable("clangd")
end
}

View 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', '<C-n>', ':Neotree filesystem reveal float<CR>')
end
}

View File

@@ -0,0 +1,10 @@
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", "<C-p>", builtin.find_files, {})
vim.keymap.set("n", "<leader>fg", builtin.live_grep, {})
end
}

View File

@@ -0,0 +1,12 @@
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local config = require("nvim-treesitter.configs")
config.setup({
ensure_installed = {"lua", "javascript", "c", "zig", "vim", "rasi", "cpp", "markdown", "markdown_inline"},
highlight = { enable = true },
indent = { enable = true },
})
end
}

View File

@@ -0,0 +1,10 @@
vim.g.mapleader= " "
vim.o.termguicolors = true
vim.o.number = true
vim.o.relativenumber = true
vim.o.signcolumn = "yes"
vim.o.expandtab = true
vim.o.tabstop = 2
vim.o.softtabstop = 2
vim.o.shiftwidth = 2
vim.o.termguicolors = true

5
.zshrc
View File

@@ -5,6 +5,11 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
bindkey "^A" beginning-of-line
bindkey "^E" end-of-line
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'