This commit is contained in:
2026-02-06 13:38:25 -06:00
parent e1a0c21a6e
commit 4126124208
8 changed files with 71 additions and 15 deletions

View File

@@ -1,4 +1,3 @@
-- 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"
@@ -15,21 +14,20 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
end
vim.opt.rtp:prepend(lazypath)
-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
vim.g.maplocalleader = " "
require("config.maps")
require("config.opts")
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- import your plugins
{ import = "plugins" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "habamax" } },
-- automatically check for plugin updates
install = { colorscheme = { "tokyonight" } },
checker = { enabled = true },
})
vim.cmd[[colorscheme tokyonight]]
require("bufferline").setup{}

3
lua/config/maps.lua Normal file
View File

@@ -0,0 +1,3 @@
local map = vim.keymap.set
map("n", "<leader>e", "<cmd>NvimTreeToggle<CR>", { desc = "NvimTree" })

7
lua/config/opts.lua Normal file
View File

@@ -0,0 +1,7 @@
vim.opt.termguicolors = true
vim.opt.expandtab = true
vim.opt.shiftwidth = 2
vim.opt.tabstop = 2
vim.opt.smartindent = true
vim.opt.autoindent = true

View File

15
lua/plugins/format.lua Normal file
View File

@@ -0,0 +1,15 @@
return {
{
'windwp/nvim-autopairs',
event = "InsertEnter",
config = true
},
{
"folke/ts-comments.nvim",
event = "VeryLazy",
opts = {},
},
{
"hrsh7th/nvim-cmp",
}
}

View File

@@ -1,6 +1,11 @@
return {
{
"nvim-tree/nvim-tree.lua",
cmd = { "NvimTreeToggle", "NvimTreeFocus" },
}
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
require("nvim-tree").setup {}
end,
}

13
lua/plugins/theme.lua Normal file
View File

@@ -0,0 +1,13 @@
return {
{
"folke/tokyonight.nvim",
lazy = false,
priority = 1000,
opts = {},
},
{
'akinsho/bufferline.nvim',
version = "*",
dependencies = 'nvim-tree/nvim-web-devicons'
}
}

15
lua/plugins/which.lua Normal file
View File

@@ -0,0 +1,15 @@
return {
{
"folke/which-key.nvim",
event = "VeryLazy",
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
}
}