Initial commit

This commit is contained in:
2025-04-30 04:59:01 -05:00
commit 7274197b00
58 changed files with 8010 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
-- Options
vim.g.mapleader = '<space>'
vim.o.number = true
vim.o.relativenumber = true
vim.o.termguicolors = true
vim.o.background = light
vim.o.wrap = true
vim.o.tabstop = 4
vim.o.shiftwidth = 4
vim.o.clipboard = 'unnamedplus'
vim.o.mouse = 'a'
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.smartindent = false
vim.o.undofile = true
vim.o.swapfile = true
vim.o.autochdir = true
vim.o.scrolloff = 15
-- Plugin Manager
require("config.lazy")
-- Theme
vim.cmd.colorscheme("everforest")
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
-- Binds
vim.keymap.set("n", "<leader>f", function() vim.lsp.buf.format() end)
-- Autocompletion
vim.diagnostic.config({ virtual_text = { current_line = true } })
vim.lsp.enable({ "lua_ls", "rust_analyzer", "ts_ls", "pyright", "html", "cssls", "gopls", "lemminx" });
+28
View File
@@ -0,0 +1,28 @@
{
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"blink.cmp": { "branch": "main", "commit": "cb5e346d9e0efa7a3eee7fd4da0b690c48d2a98e" },
"everforest-nvim": { "branch": "main", "commit": "135cc21a45756e688dd1a3cbeb1c80a04b569b46" },
"friendly-snippets": { "branch": "main", "commit": "fc8f183479a472df60aa86f00e295462f2308178" },
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
"lualine-macro-recording.nvim": { "branch": "main", "commit": "e2dcf63ba74e6111b53e1520a4f8a17a3d7427a1" },
"lualine.nvim": { "branch": "master", "commit": "15884cee63a8c205334ab13ab1c891cd4d27101a" },
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
"noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
"nui.nvim": { "branch": "main", "commit": "8d5b0b568517935d3c84f257f272ef004d9f5a59" },
"nvim-autopairs": { "branch": "master", "commit": "4d74e75913832866aa7de35e4202463ddf6efd1b" },
"nvim-lint": { "branch": "master", "commit": "9dfb77ef6c5092a19502883c02dc5a02ec648729" },
"nvim-lspconfig": { "branch": "master", "commit": "2e3f389aa06c7b7c29600ec2e67ee64c332077eb" },
"nvim-treesitter": { "branch": "master", "commit": "3b308861a8d7d7bfbe9be51d52e54dcfd9fe3d38" },
"nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" },
"nvim-web-devicons": { "branch": "master", "commit": "50b5b06bff13a9b4eab946de7c7033649a6618a1" },
"oil.nvim": { "branch": "master", "commit": "685cdb4ffa74473d75a1b97451f8654ceeab0f4a" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"solarized.nvim": { "branch": "main", "commit": "c0dfe1cbfabd93b546baf5f1408f5df7e02e2050" },
"telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" },
"toggleterm.nvim": { "branch": "main", "commit": "9a88eae817ef395952e08650b3283726786fb5fb" },
"tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" },
"vim-illuminate": { "branch": "master", "commit": "fbc16dee336d8cc0d3d2382ea4a53f4a29725abf" },
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
}
+5
View File
@@ -0,0 +1,5 @@
local builtin = require('telescope.builtin')
vim.keymap.set('n', ',', builtin.find_files, {desc = "Telescope find files"})
vim.keymap.set('n', '<A-,>', builtin.live_grep, {desc = "Telescope live grep"})
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = "Open parent directory" })
vim.keymap.set({'n','v','i','t'}, '<A-.>', '<CMD>ToggleTerm<CR>', { desc = "Toggle Terminal" })
+35
View File
@@ -0,0 +1,35 @@
-- 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)
-- 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 = "\\"
-- 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
checker = { enabled = true },
})
+5
View File
@@ -0,0 +1,5 @@
return {
"windwp/nvim-autopairs",
event = "InsertEnter",
opts = {}
}
+22
View File
@@ -0,0 +1,22 @@
return {
'saghen/blink.cmp',
dependencies = { 'rafamadriz/friendly-snippets' },
version = '1.*',
opts = {
keymap = {
preset = 'default',
['<Tab>'] = {'accept', 'fallback'},
['<A-k>'] = {'select_prev', 'fallback'},
['<A-j>'] = {'select_next', 'fallback'},
},
appearance = {
nerd_font_variant = 'mono'
},
completion = { documentation = { auto_show = false } },
sources = {
default = { 'lsp', 'path', 'snippets', 'buffer' },
},
fuzzy = { implementation = "prefer_rust_with_warning" }
},
opts_extend = { "sources.default" }
}
+5
View File
@@ -0,0 +1,5 @@
return {
'numToStr/Comment.nvim',
opts = {
}
}
+9
View File
@@ -0,0 +1,9 @@
return {
"neanias/everforest-nvim",
lazy = true,
priority = 1000,
config = function ()
background = "soft"
ui_contrast = "low"
end
}
@@ -0,0 +1,7 @@
return {
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
---@module "ibl"
---@type ibl.config
opts = {},
}
+12
View File
@@ -0,0 +1,12 @@
return {
"neovim/nvim-lspconfig",
dependencies = {
"folke/lazydev.nvim",
ft = "lua",
opts = {
library = {
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
},
},
}
}
@@ -0,0 +1,13 @@
return {
"nvim-lualine/lualine.nvim",
dependencies = {
-- display macro recording
{ "yavorski/lualine-macro-recording.nvim" }
},
opts = {
sections = {
-- add to section of your choice
lualine_c = { "macro_recording", "%S" },
},
}
}
+9
View File
@@ -0,0 +1,9 @@
return {
'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
opts = {
options = {
theme = 'everforest'
}
}
}
+4
View File
@@ -0,0 +1,4 @@
return {
"williamboman/mason.nvim",
opts = {}
}
+10
View File
@@ -0,0 +1,10 @@
return {
"folke/noice.nvim",
event = "VeryLazy",
opts = {
-- add any options here
},
dependencies = {
"MunifTanjim/nui.nvim",
}
}
+17
View File
@@ -0,0 +1,17 @@
return {
"mfussenegger/nvim-lint",
event = {
"BufReadPre",
"BufNewFile",
},
-- config = function ()
-- local lint = require("lint")
-- local lint_augroup = vim.api.nvim_create_augroup("lint", {clear = true})
-- vim.api.nvim_create_autocmd({"BufEnter", "BufWritePost", "InsertLeave"}, {
-- group = lint_augroup,
-- callback = function ()
-- lint.try_lint()
-- end,
-- })
-- end
}
@@ -0,0 +1,8 @@
return {
"windwp/nvim-ts-autotag",
lazy = false,
dependencies = {
"nvim-treesitter/nvim-treesitter",
},
opts = {}
}
+6
View File
@@ -0,0 +1,6 @@
return { "stevearc/oil.nvim",
keys = {
{'-', '<CMD>Oil<CR>', desc = "Open parent directory" }
},
opts = { delete_to_trash = true }
}
+13
View File
@@ -0,0 +1,13 @@
return {
'maxmx03/solarized.nvim',
lazy = false,
priority = 1000,
---@type solarized.config
opts = {},
config = function(_, opts)
vim.o.termguicolors = true
vim.o.background = 'light'
require('solarized').setup(opts)
vim.cmd.colorscheme 'solarized'
end,
}
+8
View File
@@ -0,0 +1,8 @@
return {
"nvim-telescope/telescope.nvim",
keys = {
{',', "<cmd>Telescope find_files<cr>", desc = "Telescope find files"},
{'<A-,>', "<cmd>Telescope live_grep<cr>", desc = "Telescope live grep"}
},
requires = { "nvim-lua/plenary.nvim", "BurntSushi/ripgrep" },
}
+7
View File
@@ -0,0 +1,7 @@
return {
"akinsho/toggleterm.nvim",
keys = {
{'<A-.>', '<CMD>ToggleTerm<CR>', mode = {"n","v","i","t"}, desc = "Toggle Terminal" }
},
opts = {}
}
+6
View File
@@ -0,0 +1,6 @@
return {
"folke/tokyonight.nvim",
lazy = true,
priority = 1000,
opts = {}
}
+14
View File
@@ -0,0 +1,14 @@
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function ()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html" },
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end
}
@@ -0,0 +1,7 @@
return {
"RRethy/vim-illuminate",
lazy = false,
config = function()
require('illuminate').configure({})
end
}
+18
View File
@@ -0,0 +1,18 @@
return {
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
triggers = {
{ "<leader>", mode = { "n", "v" } },
}
},
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
}
+73
View File
@@ -0,0 +1,73 @@
-- Plugins
return require('packer').startup(function()
use "wbthomason/packer.nvim"
use "folke/tokyonight.nvim"
use "mikavilpas/yazi.nvim"
use {"akinsho/toggleterm.nvim", tag = '*', config = function()
require("toggleterm").setup()
end}
use {"nvim-treesitter/nvim-treesitter",
run = ':TSUpdate',
config = function()
require('nvim-treesitter.configs').setup {
ensure_installed = {'bash', 'c', 'css', 'dockerfile', 'fish', 'html', 'java', 'javascript', 'json', 'lua', 'luadoc', 'luap', 'markdown', 'markdown_inline', 'nix', 'python', 'query', 'regex', 'ruby', 'rust', 'scss', 'svelte', 'tsx', 'typescript', 'vim', 'vimdoc', 'vue', 'yaml',},
sync_install = false,
auto_install = true,
highlight = {
enabled = true,
additional_vim_regex_highlighting = false
},
indent = {
enable = true,
},
autotag = {
enable = true,
},
rainbow = {
enable = true,
extended_mode = true,
max_file_lines = 1000,
},
}
end
}
use {"windwp/nvim-autopairs",
event="InsertEnter",
config = function ()
require("nvim-autopairs").setup {}
end
}
use {"nvim-telescope/telescope.nvim",
tag = '0.1.8',
requires = {
"nvim-lua/plenary.nvim",
"BurntSushi/ripgrep"
}
}
use {"stevearc/oil.nvim",
config = function()
require("oil").setup({
delete_to_trash = true,
})
end,
}
-- LSP Setup
use "williamboman/mason.nvim"
use { "neovim/nvim-lspconfig",
dependencies = {
"folke/lazydev.nvim",
ft = "lua",
opts = {
library = {
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
},
},
},
config = function()
require("lspconfig").lua_ls.setup() {}
end,
}
end)