Skip to content

Commit 28f2401

Browse files
committed
Added Config Update
1 parent b992bca commit 28f2401

33 files changed

+722
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "alacritty/themes"]
2+
path = alacritty/themes
3+
url = https://github.com/alacritty/alacritty-theme

alacritty/alacritty.toml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import = [
2+
"~/.config/alacritty/themes/themes/deep_space.toml"
3+
]
4+
5+
live_config_reload = true
6+
7+
[env]
8+
TERM = "xterm-256color"
9+
10+
[scrolling]
11+
history = 10000
12+
13+
[window]
14+
padding.x = 10
15+
padding.y = 10
16+
17+
decorations = "Buttonless"
18+
19+
[colors]
20+
draw_bold_text_with_bright_colors = true
21+
22+
[mouse]
23+
hide_when_typing = true
24+
25+
[cursor]
26+
blink_interval = 500
27+
blink_timeout = 0
28+
unfocused_hollow = false
29+
30+
[cursor.style]
31+
blinking = "Always"
32+
shape = "Block"
33+
34+
[font]
35+
size = 18
36+
37+
[font.bold]
38+
family = "JetBrainsMono Nerd Font"
39+
style = "Bold"
40+
41+
[font.glyph_offset]
42+
x = 0
43+
y = 0
44+
45+
[font.italic]
46+
family = "JetBrainsMono Nerd Font"
47+
48+
[font.normal]
49+
family = "JetBrainsMono Nerd Font"
50+
style = "Regular"
51+
52+
[font.offset]
53+
x = 0
54+
y = 0
55+
56+
[keyboard]
57+
bindings = [
58+
{ key = "Back", mods = "Command", chars = "\u0015" }, # Delete line
59+
{ key = "Back", mods = "Alt", chars = "\u001b\u007f" }, # Delete word
60+
]

alacritty/themes

Submodule themes added at 94e1dc0

nvim/init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Set leader key
2+
vim.g.mapleader = " "
3+
vim.g.maplocalleader = " "
4+
5+
require("core")

nvim/lazy-lock.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
3+
"LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
4+
"alpha-nvim": { "branch": "main", "commit": "bf3c8bb8c02ed3d9644cc5bbc48e2bdc39349cd7" },
5+
"bufferline.nvim": { "branch": "main", "commit": "2e3c8cc5a57ddd32f1edd2ffd2ccb10c09421f6c" },
6+
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
7+
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
8+
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
9+
"copilot.lua": { "branch": "master", "commit": "1a237cf50372830a61d92b0adf00d3b23882e0e1" },
10+
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
11+
"go.nvim": { "branch": "master", "commit": "0d099822d56db4f611f0b9b7c74c75dbedcf8318" },
12+
"guihua.lua": { "branch": "master", "commit": "225db770e36aae6a1e9e3a65578095c8eb4038d3" },
13+
"hardtime.nvim": { "branch": "main", "commit": "6513bf42cd9261669d1ee41ff8b4065dfdc53a09" },
14+
"lazy.nvim": { "branch": "main", "commit": "1159bdccd8910a0fd0914b24d6c3d186689023d9" },
15+
"lazygit.nvim": { "branch": "main", "commit": "56760339a81cd1540d5a72fd9d93010a2677b55d" },
16+
"lspkind.nvim": { "branch": "master", "commit": "59c3f419af48a2ffb2320cea85e44e5a95f71664" },
17+
"lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" },
18+
"mason-lspconfig.nvim": { "branch": "main", "commit": "25c11854aa25558ee6c03432edfa0df0217324be" },
19+
"mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" },
20+
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
21+
"nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
22+
"nvim": { "branch": "main", "commit": "7be452ee067978cdc8b2c5f3411f0c71ffa612b9" },
23+
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
24+
"nvim-lspconfig": { "branch": "master", "commit": "ff69ecca55d83ffc70657f260a799f79a5637831" },
25+
"nvim-tree.lua": { "branch": "master", "commit": "50e919426a4a2053f78b2f8ab001c8ad8eb47ef6" },
26+
"nvim-treesitter": { "branch": "master", "commit": "9b1e607298dd5fc2ee6549488324cc92dafb99c0" },
27+
"nvim-web-devicons": { "branch": "master", "commit": "56f17def81478e406e3a8ec4aa727558e79786f3" },
28+
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
29+
"telescope-cmdline.nvim": { "branch": "main", "commit": "1c6a169d84a5e8f0c796f8275bdbb8019bd3ca14" },
30+
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
31+
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
32+
"trouble.nvim": { "branch": "main", "commit": "254145ffd528b98eb20be894338e2d5c93fa02c2" },
33+
"which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" }
34+
}

nvim/lazyvim.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extras": [
3+
4+
],
5+
"news": {
6+
"NEWS.md": "6520"
7+
},
8+
"version": 6
9+
}

nvim/lua/core/autocmd.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- Run gofmt + goimports on save
2+
3+
local format_sync_grp = vim.api.nvim_create_augroup("goimports", {})
4+
vim.api.nvim_create_autocmd("BufWritePre", {
5+
pattern = "*.go",
6+
callback = function()
7+
require('go.format').goimports()
8+
end,
9+
group = format_sync_grp,
10+
})

nvim/lua/core/init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require("core.options")
2+
require("core.keymaps")
3+
require("core.lazy")
4+
require("core.autocmd")
5+

nvim/lua/core/keymaps.lua

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
-- Set leader key
2+
vim.g.mapleader = " "
3+
vim.g.maplocalleader = " "
4+
5+
local map = vim.keymap.set
6+
7+
-- telescope
8+
map("n", "<leader>fw", "<cmd>Telescope live_grep<CR>", { desc = "telescope live grep" })
9+
map("n", "<leader>fb", "<cmd>Telescope buffers<CR>", { desc = "telescope find buffers" })
10+
map("n", "<leader>fh", "<cmd>Telescope help_tags<CR>", { desc = "telescope help page" })
11+
map("n", "<leader>fz", "<cmd>Telescope current_buffer_fuzzy_find<CR>", { desc = "telescope find in current buffer" })
12+
map("n", "<leader>ff", "<cmd>Telescope find_files<cr>", { desc = "telescope find files" })
13+
map(
14+
"n",
15+
"<leader>fa",
16+
"<cmd>Telescope find_files follow=true no_ignore=true hidden=true<CR>",
17+
{ desc = "telescope find all files" }
18+
)
19+
20+
-- LSP Config
21+
map('n','gD','<cmd>lua vim.lsp.buf.declaration()<CR>', { desc = "Go to declaration" })
22+
map('n','gd','<cmd>lua vim.lsp.buf.definition()<CR>', { desc = "Go to definition" })
23+
24+
-- telescope cmdline
25+
map("n", "<leader><leader>", ':Telescope cmdline<CR>', { noremap = true, desc = "Cmdline" })
26+
27+
-- set NvimTree
28+
map("n", "<leader>ee", "<cmd>NvimTreeToggle<CR>", { desc = "Toggle file explorer" }) -- toggle file explorer
29+
map("n", "<leader>ef", "<cmd>NvimTreeFindFileToggle<CR>", { desc = "Toggle file explorer on current file" }) -- toggle file explorer on current file
30+
map("n", "<leader>ec", "<cmd>NvimTreeCollapse<CR>", { desc = "Collapse file explorer" }) -- collapse file explorer
31+
map("n", "<leader>er", "<cmd>NvimTreeRefresh<CR>", { desc = "Refresh file explorer" }) -- refresh file explorer
32+
33+
-- tabufline
34+
map("n", "<leader>b", "<cmd>enew<CR>", { desc = "buffer new" })
35+
map("n", "<leader>x", "<cmd>bd<CR>", { desc = "buffer delete current" })
36+
37+
-- golang
38+
map("n", "<leader>gr", "<cmd>GoIfErr<CR>", { desc = "Autocreate Golang if/err snippet" })

nvim/lua/core/lazy.lua

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2+
3+
if not (vim.uv or vim.loop).fs_stat(lazypath) then
4+
-- bootstrap lazy.nvim
5+
-- stylua: ignore
6+
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
7+
end
8+
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
9+
10+
require("lazy").setup({
11+
spec = {
12+
{ import = "plugins" },
13+
},
14+
-- automatically check for plugin updates
15+
checker = { enabled = true },
16+
concurrency = 3,
17+
performance = {
18+
rtp = {
19+
-- disable some rtp plugins
20+
disabled_plugins = {
21+
"gzip",
22+
-- "matchit",
23+
-- "matchparen",
24+
-- "netrwPlugin",
25+
"tarPlugin",
26+
"tohtml",
27+
"tutor",
28+
"zipPlugin",
29+
},
30+
},
31+
},
32+
})

0 commit comments

Comments
 (0)