Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nvim/.config/nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vim.loader.enable()
require "config.options"
require "config.lazy"
require "config.keymaps"
require "config.lazy"
5 changes: 5 additions & 0 deletions nvim/.config/nvim/lua/config/lazy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ vim.opt.rtp:prepend(lazypath)
vim.g.mapleader = " "
vim.g.maplocalleader = " "

-- Add support for the LazyFile event
local Event = require "lazy.core.handler.event"
Event.mappings.LazyFile = { id = "LazyFile", event = { "BufReadPost", "BufNewFile", "BufWritePre" } }
Event.mappings["User LazyFile"] = Event.mappings.LazyFile

-- Setup lazy.nvim
require("lazy").setup {
spec = {
Expand Down
2 changes: 1 addition & 1 deletion nvim/.config/nvim/lua/plugins/auto-tags.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
return {
-- This is nice because it also autorenames html tags
-- Use treesitter to autoclose and autorename html tag
"windwp/nvim-ts-autotag",
event = "InsertEnter",
opts = {},
Expand Down
2 changes: 1 addition & 1 deletion nvim/.config/nvim/lua/plugins/blink.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
return {
"saghen/blink.cmp",
event = "VimEnter",
event = "InsertEnter",
version = "1.*",
dependencies = {
"rafamadriz/friendly-snippets",
Expand Down
2 changes: 1 addition & 1 deletion nvim/.config/nvim/lua/plugins/colorizer.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
return {
"catgoose/nvim-colorizer.lua",
event = "BufReadPre",
event = "LazyFile",
opts = {
tailwind = true,
tailwind_opts = {
Expand Down
2 changes: 1 addition & 1 deletion nvim/.config/nvim/lua/plugins/conform.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
return {
"stevearc/conform.nvim",
event = { "BufWritePre" },
event = "LazyFile",
opts = {
notify_on_error = true,
format_on_save = {
Expand Down
1 change: 1 addition & 0 deletions nvim/.config/nvim/lua/plugins/gitsings.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
return {
"lewis6991/gitsigns.nvim",
event = "LazyFile",
opts = {
signs = {
add = { text = "+" },
Expand Down
2 changes: 1 addition & 1 deletion nvim/.config/nvim/lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
return {
"neovim/nvim-lspconfig",
event = { "BufReadPre", "BufNewFile" },
event = "LazyFile",
dependencies = {
{ "mason-org/mason.nvim", cmd = "Mason", opts = {} },
-- Blink-based completion (no manual capabilities merge needed)
Expand Down
1 change: 1 addition & 0 deletions nvim/.config/nvim/lua/plugins/oil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ return {
{
"stevearc/oil.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
lazy = false,
opts = {
view_options = {
show_hidden = true,
Expand Down
8 changes: 0 additions & 8 deletions nvim/.config/nvim/lua/plugins/tmux-navigator.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
return {
"christoomey/vim-tmux-navigator",
event = "VeryLazy",
cmd = {
"TmuxNavigateLeft",
"TmuxNavigateDown",
"TmuxNavigateUp",
"TmuxNavigateRight",
"TmuxNavigatePrevious",
},
keys = {
{ "<c-h>", "<cmd><C-U>TmuxNavigateLeft<cr>" },
{ "<c-j>", "<cmd><C-U>TmuxNavigateDown<cr>" },
Expand Down
1 change: 1 addition & 0 deletions nvim/.config/nvim/lua/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ return {
dependencies = {
"nvim-treesitter/nvim-treesitter-textobjects",
},
event = "LazyFile",
build = ":TSUpdate",
main = "nvim-treesitter.configs",
opts = {
Expand Down
Loading