Skip to content

Commit

Permalink
colorscheme cleanup; disable flash/leap/hop; key shortcut cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brightpuddle committed Apr 16, 2024
1 parent e3813af commit 30ef212
Show file tree
Hide file tree
Showing 32 changed files with 2,274 additions and 318 deletions.
14 changes: 14 additions & 0 deletions .config/nvim/autotag.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
return {
"windwp/nvim-ts-autotag",
config = function()
require("nvim-ts-autotag").setup({
autotag = {
enable = true,
enable_rename = true,
enable_close = true,
enable_close_on_slash = true,
filetypes = { "html", "xml", "templ", "javascriptreact" },
},
})
end,
}
27 changes: 12 additions & 15 deletions .config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
{
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
"FixCursorHold.nvim": { "branch": "master", "commit": "1900f89dc17c603eec29960f57c00bd9ae696495" },
"LazyVim": { "branch": "main", "commit": "97480dc5d2dbb717b45a351e0b04835f138a9094" },
"LazyVim": { "branch": "main", "commit": "bb36f71b77d8e15788a5b62c82a1c9ec7b209e49" },
"LuaSnip": { "branch": "master", "commit": "be7be2ca7f55bb881a7ffc16b2efa5af034ab06b" },
"Navigator.nvim": { "branch": "master", "commit": "91d86506ac2a039504d5205d32a1d4bc7aa57072" },
"Vim-Jinja2-Syntax": { "branch": "master", "commit": "2c17843b074b06a835f88587e1023ceff7e2c7d1" },
"better-escape.nvim": { "branch": "master", "commit": "7e86edafb8c7e73699e0320f225464a298b96d12" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"conform.nvim": { "branch": "master", "commit": "9d5ba06d6ee7418c674f498634617416d15b6239" },
"conform.nvim": { "branch": "master", "commit": "820eec990d5f332d30cf939954c8672a43a0459e" },
"copilot.lua": { "branch": "master", "commit": "f7612f5af4a7d7615babf43ab1e67a2d790c13a6" },
"dressing.nvim": { "branch": "master", "commit": "18e5beb3845f085b6a33c24112b37988f3f93c06" },
"feline.nvim": { "branch": "main", "commit": "6cfbe0608d2552a7d947c6f521670b10379fbe42" },
"gitsigns.nvim": { "branch": "main", "commit": "c097cb255096f333e14d341082a84f572b394fa2" },
"go.nvim": { "branch": "master", "commit": "39c245285483f7b587d827b3ff3eaa7e9ed00510" },
"flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" },
"gitsigns.nvim": { "branch": "main", "commit": "d96ef3bbff0bdbc3916a220f5c74a04c4db033f2" },
"go.nvim": { "branch": "master", "commit": "591a0b837420f27c734600fa5c6de87f18352e50" },
"guihua.lua": { "branch": "master", "commit": "3b3126ae87c254f6849e708549ba76c39e3f42f8" },
"hop.nvim": { "branch": "v2", "commit": "90db1b2c61b820e230599a04fedcd2679e64bd07" },
"indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" },
"lazy.nvim": { "branch": "main", "commit": "31ddbea7c10b6920c9077b66c97951ca8682d5c8" },
"lsp-zero.nvim": { "branch": "v3.x", "commit": "15d85bad5556b5ea5ea612a80284d20bddac5f0b" },
"lsp-zero.nvim": { "branch": "v3.x", "commit": "ca9eaccc154578064366d99de7b02f8231c383eb" },
"lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "44509689b9bf3984d729cc264aacb31cb7f41668" },
"mason-null-ls.nvim": { "branch": "main", "commit": "de19726de7260c68d94691afb057fa73d3cc53e7" },
"mason.nvim": { "branch": "main", "commit": "751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10" },
"neo-tree.nvim": { "branch": "v2.x", "commit": "80dc74d081823649809f78370fa5b204aa9a853a" },
"neotest": { "branch": "master", "commit": "f03a78cef74db5638e4312e18b767294a90de8da" },
"nginx.vim": { "branch": "master", "commit": "cffaec54f0c7f9518de053634413a20e90eac825" },
"none-ls.nvim": { "branch": "main", "commit": "dca7ddec321a102ec9e792b1b29193702aff5fbb" },
"none-ls.nvim": { "branch": "main", "commit": "09a7c58e9283dda582d9805f6b182b5b9f137ec7" },
"nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" },
"nvim-autopairs": { "branch": "master", "commit": "4f41e5940bc0443fdbe5f995e2a596847215cd2a" },
"nvim-bufdel": { "branch": "main", "commit": "523d58e94e7212fff3e05c247b962dc8f93bcfde" },
Expand All @@ -37,26 +36,24 @@
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
"nvim-dap": { "branch": "master", "commit": "405df1dcc2e395ab5173a9c3d00e03942c023074" },
"nvim-dap-ui": { "branch": "master", "commit": "edfa93f60b189e5952c016eee262d0685d838450" },
"nvim-lspconfig": { "branch": "master", "commit": "e25c4cdecd3d58c0deccce0f372426c8c480bcce" },
"nvim-lspconfig": { "branch": "master", "commit": "b73f30d113ace671bcf1f731dfc66987880410e6" },
"nvim-surround": { "branch": "main", "commit": "a4e30d33add8a9743b4f518b3a788b3c8e5def71" },
"nvim-treesitter": { "branch": "master", "commit": "2bad828b48aed74efe8f7e4ea15550e18c7b482d" },
"nvim-treesitter": { "branch": "master", "commit": "40e8c92f99ef26625ff2206f5e183ac3109f20ba" },
"nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" },
"nvim-web-devicons": { "branch": "master", "commit": "6e355632387a085f15a66ad68cf681c1d7374a04" },
"oil.nvim": { "branch": "master", "commit": "e462a3446505185adf063566f5007771b69027a1" },
"playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
"plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" },
"robotframework-vim": { "branch": "master", "commit": "75d5b371a4da2a090a2872d55bd0dead013f334e" },
"rust-tools.nvim": { "branch": "master", "commit": "676187908a1ce35ffcd727c654ed68d851299d3e" },
"sad.nvim": { "branch": "master", "commit": "869c7f3ca3dcd28fd78023db6a7e1bf8af0f4714" },
"symbols-outline.nvim": { "branch": "master", "commit": "564ee65dfc9024bdde73a6621820866987cbb256" },
"tabular": { "branch": "master", "commit": "339091ac4dd1f17e225fe7d57b48aff55f99b23a" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
"telescope.nvim": { "branch": "master", "commit": "5a701e99906961218b55d7ad6c2a998f066c6fe0" },
"telescope.nvim": { "branch": "master", "commit": "4d4ade7f2b8f403e8816ca50c05ed16e259b21fb" },
"templ.vim": { "branch": "main", "commit": "5cc48b93a4538adca0003c4bc27af844bb16ba24" },
"todo-comments.nvim": { "branch": "main", "commit": "a7e39ae9e74f2c8c6dc4eea6d40c3971ae84752d" },
"trouble.nvim": { "branch": "main", "commit": "b9cf677f20bb2faa2dacfa870b084e568dca9572" },
"vim": { "branch": "main", "commit": "f13f5dfbb784deddbc1d8195f34dfd9ec73e2295" },
"vim-closetag": { "branch": "master", "commit": "d0a562f8bdb107a50595aefe53b1a690460c3822" },
"vim-commentary": { "branch": "master", "commit": "c4b8f52cbb7142ec239494e5a2c4a512f92c4d07" },
"vim-js": { "branch": "master", "commit": "90f340d31907590fad059cd9aab03a55ab49e352" },
"vim-jsx-pretty": { "branch": "master", "commit": "6989f1663cc03d7da72b5ef1c03f87e6ddb70b41" },
"vim-markdown": { "branch": "master", "commit": "a657e697376909c41475a686eeef7fc7a4972d94" },
Expand Down
9 changes: 0 additions & 9 deletions .config/nvim/lua/config/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ g.loaded_python_provider = 1
g.python3_host_prog = "/Users/nathan/.local/share/zinit/plugins/pyenv---pyenv/shims/python"
g.python_host_skip_check = 1
g.python3_host_skip_check = 1
g.closetag_filetypes = "html,xhtml,xml,jsx,gohtmltmpl,jinja,jinja.html,templ,javascriptreact"
g.closetag_xhtml_filenames = "*.xhtml,*.jsx"
g.closetag_regions = {
["typescriptreact"] = "jsxRegion,tsxRegion",
["javascriptreact"] = "jsxRegion",
}

local o = vim.o
o.autoindent = true
Expand All @@ -22,9 +16,6 @@ o.cmdheight = 0
o.copyindent = true
o.expandtab = true
o.foldenable = false
o.foldexpr = "nvim_treesitter#foldexpr()"
o.foldmethod = "expr"
-- o.foldmethod = "syntax"
o.grepprg = "rg --color=never"
o.guicursor = "a:blinkon0,i:ver25-iCursor"
o.ignorecase = true
Expand Down
8 changes: 8 additions & 0 deletions .config/nvim/lua/disabled/bufferline.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
return {
"akinsho/bufferline.nvim",
version = "*",
dependencies = "nvim-tree/nvim-web-devicons",
config = function()
require("bufferline").setup()
end,
}
275 changes: 275 additions & 0 deletions .config/nvim/lua/disabled/feline.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,275 @@
return {
"freddiehaddad/feline.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
event = "BufEnter",
config = function()
local vi_mode = require("feline.providers.vi_mode")
local lsp = require("feline.providers.lsp")
local git = require("feline.providers.git")
local function get_color(group, attr)
local hl = vim.api.nvim_get_hl_by_name(group, true)
if hl and hl[attr] then
return string.format("#%06x", hl[attr])
end
end
local c = {
pri = {
bg = get_color("StatusLineNC", "background"),
fg = get_color("StatusLineNC", "foreground"),
},
sec = {
bg = get_color("StatusLine", "background"),
fg = get_color("StatusLine", "foreground"),
},
diag = {
error = get_color("DiagnosticError", "foreground"),
warning = get_color("DiagnosticWarn", "foreground"),
info = get_color("DiagnosticInfo", "foreground"),
hint = get_color("DiagnosticHint", "foreground"),
},
git = {
add = get_color("DiffAdd", "foreground"),
change = get_color("DiffChange", "foreground"),
remove = get_color("DiffDelete", "foreground"),
},
}

local sep = {
block = "",
left = "",
right = "",
pri = " ",
sec = " ",
}

local comps = {}
-- VIM mode
comps.left = {
provider = sep.left,
hl = { bg = "Normal", fg = c.pri.bg },
}
comps.right = {
provider = sep.right,
hl = { bg = "Normal", fg = c.pri.bg },
}
comps.mode = {
provider = function()
return string.lower(string.sub(vi_mode.get_vim_mode(), 1, 2))
end,
hl = function()
return {
fg = vi_mode.get_mode_color(),
style = "bold,italic",
}
end,
left_sep = sep.sec,
priority = 90,
}

-- File info
comps.file = {
folder = {
provider = function()
return vim.fn.fnamemodify(vim.fn.getcwd(), ":t")
end,
icon = { str = "", hl = { fg = get_color("Comment", "foreground") } },
left_sep = sep.sec,
priority = 50,
},
filename = {
provider = {
name = "file_info",
opts = {
case = "lowercase",
filetype_icon = true,
file_readonly_icon = "",
type = "relative",
},
},
short_provider = {
name = "file_info",
opts = {
case = "lowercase",
filetype_icon = true,
file_readonly_icon = "",
},
},
hl = { style = "italic" },
left_sep = { str = " / ", hl = { fg = get_color("Comment", "foreground") } },
priority = 50,
},
}

-- Git
comps.git = {
branch = {
provider = "git_branch",
left_sep = sep.pri .. sep.left .. sep.block,
hl = { bg = c.sec.bg },
truncate_hide = true,
priority = 10,
},
add = {
provider = "git_diff_added",
icon = "+",
hl = { fg = c.git.add, bg = c.sec.bg },
left_sep = sep.block,
truncate_hide = true,
priority = 10,
},
change = {
provider = "git_diff_changed",
icon = "~",
hl = { fg = c.git.change, bg = c.sec.bg },
left_sep = sep.block,
truncate_hide = true,
priority = 10,
},
remove = {
provider = "git_diff_removed",
icon = "-",
hl = { fg = c.git.remove, bg = c.sec.bg },
left_sep = sep.block,
truncate_hide = true,
priority = 10,
},
sep = {
provider = function()
if git.git_info_exists() then
return sep.block .. sep.right
end
return ""
end,
hl = { fg = c.sec.bg },
truncate_hide = true,
priority = 10,
},
}

-- Diagnostics
comps.diag = {
status = {
provider = function()
if lsp.is_lsp_attached() then
return ""
end
return ""
end,
hl = { bg = c.sec.bg },
right_sep = sep.block,
left_sep = sep.left .. sep.block,
truncate_hide = true,
priority = 20,
},
error = {
provider = "diagnostic_errors",
hl = { fg = c.diag.error, bg = c.sec.bg },
right_sep = sep.block,
truncate_hide = true,
priority = 20,
},
warning = {
provider = "diagnostic_warnings",
hl = { fg = c.diag.warning, bg = c.sec.bg },
right_sep = sep.block,
truncate_hide = true,
priority = 20,
},
info = {
provider = "diagnostic_info",
hl = { fg = c.diag.info, bg = c.sec.bg },
right_sep = sep.block,
truncate_hide = true,
priority = 20,
},
hint = {
provider = "diagnostic_hints",
hl = { fg = c.diag.hint, bg = c.sec.bg },
right_sep = sep.block,
truncate_hide = true,
priority = 20,
},
sep = {
provider = function()
if lsp.is_lsp_attached() then
return sep.right .. sep.pri
end
return ""
end,
hl = { fg = c.sec.bg },
truncate_hide = true,
priority = 20,
},
}

comps.filetype = {
provider = {
name = "file_type",
opts = {
case = "lowercase",
},
},
hl = { fg = get_color("Number", "foreground") },
right_sep = sep.pri,
priority = 80,
}

-- Location information
comps.location = {
percentage = {
provider = "line_percentage",
right_sep = sep.sec,
priority = 90,
},
location = {
provider = {
name = "position",
opts = { padding = true },
},
right_sep = sep.sec,
priority = 90,
},
}

require("feline").setup({
theme = {
bg = c.pri.bg,
fg = c.pri.fg,
},
components = {
active = {
{
comps.left,
-- Mode
-- comps.mode,
-- File info
comps.file.folder,
comps.file.filename,
-- Git
comps.git.branch,
comps.git.change,
comps.git.add,
comps.git.remove,
comps.git.sep,
},
{
-- Diag
comps.diag.status,
comps.diag.error,
comps.diag.warning,
comps.diag.info,
comps.diag.hint,
comps.diag.sep,
-- Filetype
comps.filetype,
-- Location
comps.location.percentage,
comps.location.location,
comps.right,
},
},
inactive = {},
},
})
end,
}
Loading

0 comments on commit 30ef212

Please sign in to comment.