Skip to content

Commit d5b709b

Browse files
committed
feat: updated nvim config
1 parent fab28b1 commit d5b709b

18 files changed

Lines changed: 400 additions & 264 deletions

File tree

modules/ghostty/XDG_CONFIG_HOME.ghostty/ghostty/config

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# custom-shader = shaders/bettercrt.glsl
22
# custom-shader = shaders/retro-terminal.glsl
33

4-
background-opacity = 0.18
4+
theme = Earthsong
5+
# theme = Framer
6+
# theme = Midnight In Mojave
7+
# theme = Shaman
8+
9+
background-opacity = 0.35
510
background-blur = false
6-
background-opacity = 0.1
7-
background = #031b1a
11+
#background = #031b1a
12+
background = #050a0f
813

914
font-family = IosevkaTermNFM
1015
font-family-bold = IosevkaTermNFM

modules/nvim/XDG_CONFIG_HOME.nvim/alias.d/21-nvim.alias

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
alias vim="nvim"
44
alias v="nvim"
5+
alias n="nvim"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extras": [
3+
"lazyvim.plugins.extras.coding.luasnip",
4+
"lazyvim.plugins.extras.coding.mini-surround",
5+
"lazyvim.plugins.extras.editor.illuminate",
6+
"lazyvim.plugins.extras.lang.docker",
7+
"lazyvim.plugins.extras.lang.git",
8+
"lazyvim.plugins.extras.lang.json",
9+
"lazyvim.plugins.extras.lang.markdown",
10+
"lazyvim.plugins.extras.lang.python",
11+
"lazyvim.plugins.extras.lang.toml",
12+
"lazyvim.plugins.extras.lang.yaml",
13+
"lazyvim.plugins.extras.util.gitui",
14+
"lazyvim.plugins.extras.util.mini-hipatterns"
15+
],
16+
"install_version": 8,
17+
"news": {
18+
"NEWS.md": "11866"
19+
},
20+
"version": 8
21+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
-- Keymaps are automatically loaded on the VeryLazy event
22
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
33
-- Add any additional keymaps here
4+

modules/nvim/XDG_CONFIG_HOME.nvim/nvim/lua/config/lazy.lua

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2-
if not vim.loop.fs_stat(lazypath) then
3-
-- bootstrap lazy.nvim
4-
-- stylua: ignore
5-
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
2+
if not (vim.uv or vim.loop).fs_stat(lazypath) then
3+
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
4+
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
5+
if vim.v.shell_error ~= 0 then
6+
vim.api.nvim_echo({
7+
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
8+
{ out, "WarningMsg" },
9+
{ "\nPress any key to exit..." },
10+
}, true, {})
11+
vim.fn.getchar()
12+
os.exit(1)
13+
end
614
end
7-
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
15+
vim.opt.rtp:prepend(lazypath)
816

917
require("lazy").setup({
1018
spec = {
1119
-- add LazyVim and import its plugins
1220
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
13-
-- import any extras modules here
14-
-- { import = "lazyvim.plugins.extras.lang.typescript" },
15-
-- { import = "lazyvim.plugins.extras.lang.json" },
16-
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },
1721
-- import/override with your plugins
1822
{ import = "plugins" },
1923
},
@@ -26,8 +30,11 @@ require("lazy").setup({
2630
version = false, -- always use the latest git commit
2731
-- version = "*", -- try installing the latest stable version for plugins that support semver
2832
},
29-
install = { colorscheme = { "tokyonight", "habamax" } },
30-
checker = { enabled = true }, -- automatically check for plugin updates
33+
install = { colorscheme = { "kanagawa", "tokyonight" } },
34+
checker = {
35+
enabled = true, -- check for plugin updates periodically
36+
notify = false, -- notify on update
37+
}, -- automatically check for plugin updates
3138
performance = {
3239
rtp = {
3340
-- disable some rtp plugins
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
return {
2+
{
3+
"folke/tokyonight.nvim",
4+
opts = {
5+
transparent = true,
6+
styles = {
7+
comments = { italic = false },
8+
keywords = { italic = false },
9+
sidebars = "normal",
10+
floats = "transparent",
11+
},
12+
on_highlights = function(hl, c)
13+
hl.SnacksPickerPathHidden = { fg = c.comment }
14+
hl.SnacksPickerDir = { fg = c.comment }
15+
hl.SnacksPickerGitStatusIgnored = { fg = c.nontext }
16+
hl.SnacksPickerGitStatusUntracked = { fg = c.nontext }
17+
hl.ColorColumn = { bg = c.bg_highlight }
18+
hl.SpellBad = { fg = c.red, undercurl = true }
19+
hl.SpellCap = { fg = c.red, undercurl = true }
20+
hl.SpellLocal = { fg = c.red, undercurl = true }
21+
hl.SpellRare = { fg = c.red, undercurl = true }
22+
end,
23+
},
24+
},
25+
{
26+
"rebelot/kanagawa.nvim",
27+
opts = {
28+
transparent = true,
29+
},
30+
},
31+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
return {
2+
{
3+
"rafamadriz/friendly-snippets",
4+
config = function()
5+
require("luasnip.loaders.from_vscode").lazy_load()
6+
require("luasnip.loaders.from_vscode").lazy_load({
7+
paths = { vim.fn.stdpath("config") .. "/snippets" },
8+
})
9+
end,
10+
},
11+
{
12+
"saghen/blink.cmp",
13+
opts = {
14+
keymap = {
15+
preset = "enter",
16+
["<Tab>"] = { "select_next", "snippet_forward", "fallback" },
17+
["<S-Tab>"] = { "select_prev", "snippet_backward", "fallback" },
18+
},
19+
completion = {
20+
list = {
21+
selection = {
22+
preselect = false,
23+
auto_insert = false,
24+
},
25+
},
26+
ghost_text = { enabled = false },
27+
},
28+
signature = { enabled = true },
29+
cmdline = {
30+
enabled = true,
31+
completion = {
32+
list = { selection = { preselect = false } },
33+
menu = {
34+
auto_show = function(_)
35+
-- Only trigger the menu for :, this avoids triggering it when
36+
-- doing / (search) or other commands.
37+
return vim.fn.getcmdtype() == ":"
38+
end,
39+
},
40+
},
41+
keymap = {
42+
["<CR>"] = { "accept_and_enter", "fallback" },
43+
},
44+
},
45+
sources = {
46+
providers = {
47+
cmdline = {
48+
min_keyword_length = function(ctx)
49+
-- Only show after inputting 4+ characters.
50+
if
51+
ctx.mode == "cmdline" and string.find(ctx.line, " ") == nil
52+
then
53+
return 4
54+
end
55+
56+
return 0
57+
end,
58+
},
59+
},
60+
},
61+
},
62+
},
63+
}

modules/nvim/XDG_CONFIG_HOME.nvim/nvim/lua/plugins/custom.lua

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)