Compare commits

...

13 Commits

Author SHA1 Message Date
seajee
143bcdae7c [alacritty] change font 2026-02-03 22:04:32 +01:00
seajee
f8d1ee590a [git] Edit credentials 2026-02-03 21:45:19 +01:00
seajee
c5e33bcea4 [neovim] cursorline and theme 2026-02-03 21:44:59 +01:00
seajee
06d4f5dae5 [neovim] F 2026-01-10 15:28:20 +01:00
seajee
79daa779e5 Revert "[neovim] add dim window plugin"
This reverts commit 8b3013afdc.
2026-01-09 21:20:18 +01:00
seajee
8b3013afdc [neovim] add dim window plugin 2026-01-09 21:18:49 +01:00
seajee
6b7469311f [alacritty] font 2026-01-09 21:18:35 +01:00
seajee
a2d6d1d729 [neovim] Yes 2026-01-09 20:54:16 +01:00
seajee
68360cf475 [bash] Revert PS1 2025-12-02 17:49:18 +01:00
seajee
d96c108b28 [alacritty] Change background color 2025-11-24 15:58:03 +01:00
seajee
6f2e263810 [neovim] Add multi cursor plugin 2025-11-20 20:14:35 +01:00
seajee
3a0931f5ba [neovim] Add plugin for bg trasparency 2025-11-11 23:12:09 +01:00
seajee
1e93eed7f8 [alacritty] Theme changes 2025-11-11 23:11:49 +01:00
6 changed files with 71 additions and 413 deletions

View File

@@ -1,20 +1,20 @@
[window] [window]
startup_mode = "Maximized" startup_mode = "Maximized"
opacity = 1 opacity = 1
dynamic_padding = false dynamic_padding = true
[font] [font]
normal.family = "Iosevka" normal.family = "CaskaydiaMono Nerd Font"
bold.family = "Iosevka" bold.family = "CaskaydiaMono Nerd Font"
italic.family = "Iosevka" italic.family = "CaskaydiaMono Nerd Font"
bold_italic.family = "Iosevka" bold_italic.family = "CaskaydiaMono Nerd Font"
size = 14.0 size = 14.0
[mouse] [mouse]
hide_when_typing = true hide_when_typing = true
[colors.primary] [colors.primary]
background = "#181818" background = "#090909"
foreground = "#CECECE" foreground = "#CECECE"
[colors.cursor] [colors.cursor]

View File

@@ -29,14 +29,7 @@ RED="\[\e[0;91m\]"
YELLOW="\e[0;33m" YELLOW="\e[0;33m"
RESET="\[\e[0m\]" RESET="\[\e[0m\]"
__git_branch() { PS1="[\u@$RED\h$RESET \w]\$$RESET "
local branch="$(git branch --show-current 2>/dev/null)"
if [[ -n "$branch" ]]; then
echo " $YELLOW$branch$RESET"
fi
}
PROMPT_COMMAND='PS1="[\u@$RED\h$RESET \w$(__git_branch)]\$$RESET "'
# Setup zoxide # Setup zoxide
eval "$(zoxide init --cmd cd bash)" eval "$(zoxide init --cmd cd bash)"

View File

@@ -1,6 +1,6 @@
[user] [user]
name = seajee name = seajee
email = teapods@proton.me email =
[core] [core]
editor = nvim editor = nvim

View File

@@ -1,13 +0,0 @@
{
"runtime.version": "LuaJIT",
"runtime.path": [
"lua/?.lua",
"lua/?/init.lua"
],
"diagnostics.globals": ["vim"],
"workspace.checkThirdParty": false,
"workspace.library": [
"$VIMRUNTIME",
"${3rd}/luv/library"
]
}

View File

@@ -12,6 +12,9 @@ opt.relativenumber = true
-- Block cursor -- Block cursor
opt.guicursor = "" opt.guicursor = ""
-- Hightlight cursor line
opt.cursorline = true
-- File options -- File options
opt.undofile = true opt.undofile = true
opt.undodir = os.getenv("HOME") .. "/.vim/nvim_undodir" opt.undodir = os.getenv("HOME") .. "/.vim/nvim_undodir"
@@ -54,7 +57,7 @@ map({ "n", "v" }, "<leader>y", "\"+y")
-- Deletions -- Deletions
map({ "n", "v" }, "<leader>d", "\"_d") map({ "n", "v" }, "<leader>d", "\"_d")
map("n", "<leader>dm", ":delmarks!<CR>") map("n", "<leader>md", ":delmarks!<CR>")
-- Commands -- Commands
map("n", "<leader>x", ":!chmod +x %<CR>") map("n", "<leader>x", ":!chmod +x %<CR>")
@@ -104,38 +107,17 @@ map("n", "<M-Left>", "<cmd>vertical resize -2<CR>")
map("n", "<M-Right>", "<cmd>vertical resize +2<CR>") map("n", "<M-Right>", "<cmd>vertical resize +2<CR>")
-- Listchars -- Listchars
local listchars = { opt.listchars = {
-- eol = "$", -- eol = "$",
tab = "» ", tab = "» ",
space = "·", space = "·",
trail = "-" trail = "-"
} }
opt.listchars = listchars
vim.api.nvim_set_hl(0, "NonText", { fg = "#303030" })
vim.api.nvim_set_hl(0, "Whitespace", { fg = "#303030" })
cmd.match([[TrailingWhitespace /\s\+$/]])
-- Toggle listchars -- Toggle listchars
map("n", "<leader>lc", function() map("n", "<leader>lc", function()
vim.wo.list = not vim.wo.list vim.wo.list = not vim.wo.list
if vim.wo.list then
vim.api.nvim_set_hl(0, "TrailingWhitespace", { link = "Error" })
else
vim.api.nvim_set_hl(0, "TrailingWhitespace", { link = "Whitespace" })
end
end) end)
vim.api.nvim_create_autocmd({ "InsertEnter", "TermEnter" }, {
callback = function()
opt.listchars.trail = nil
vim.api.nvim_set_hl(0, "TrailingWhitespace", { link = "Whitespace" })
end
})
vim.api.nvim_create_autocmd({ "InsertLeave", "TermLeave" }, {
callback = function()
opt.listchars.trail = listchars.space
vim.api.nvim_set_hl(0, "TrailingWhitespace", { link = "Error" })
end
})
-- [[ PLUGINS ]] -- -- [[ PLUGINS ]] --
@@ -162,15 +144,10 @@ opt.rtp:prepend(lazypath)
-- Plugins -- Plugins
require("lazy").setup({ require("lazy").setup({
-- Colorscheme -- Colorscheme
{ { "blazkowolf/gruber-darker.nvim" },
"blazkowolf/gruber-darker.nvim",
opts = { -- Background trasparency
italic = { { "xiyaowong/transparent.nvim" },
strings = false,
comments = false,
}
}
},
-- Fuzzy finder -- Fuzzy finder
{ "echasnovski/mini.pick", opts = {} }, { "echasnovski/mini.pick", opts = {} },
@@ -183,20 +160,70 @@ require("lazy").setup({
{ "lewis6991/gitsigns.nvim", opts = {} }, { "lewis6991/gitsigns.nvim", opts = {} },
-- Text aligning -- Text aligning
{ "Vonr/align.nvim", branch = "v2" } { "Vonr/align.nvim", branch = "v2" },
-- Multi cursor
{ "brenton-leighton/multiple-cursors.nvim", opts = {} },
-- Trailing whitespace
{
"kaplanz/retrail.nvim",
opts = {
hlgroup = "Error",
trim = {
auto = false, -- Auto trim on BufWritePre
}
}
},
-- Indent blankline
{ "lukas-reineke/indent-blankline.nvim", main = "ibl", opts = {} },
-- File tree
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
"nvim-tree/nvim-web-devicons",
},
lazy = false,
opts = {
window = {
width = 32
}
}
}
}) })
-- Colorscheme
cmd.colorscheme("gruber-darker")
-- Plugin keymaps -- Plugin keymaps
map("n", "<leader>f", ":Pick files<CR>") map("n", "<leader>f", ":Pick files<CR>")
map("n", "<leader>b", ":Pick buffers<CR>") map("n", "<leader>b", ":Pick buffers<CR>")
map("n", "<leader>u", ":UndotreeToggle<CR>") map("n", "<leader>u", ":UndotreeToggle<CR>")
map("n", "<leader>gs", ":Git<CR>") map("n", "<leader>gs", ":Git<CR>")
map("n", "<leader>gt", ":Gitsigns toggle_signs<CR>") map("n", "<leader>gt", ":Gitsigns toggle_signs<CR>")
map("n", "<leader>gp", ":Gitsigns preview_hunk<CR>") map("n", "<leader>gp", ":Gitsigns preview_hunk<CR>")
map("n", "<leader>gb", ":Gitsigns toggle_current_line_blame<CR>") map("n", "<leader>gb", ":Gitsigns toggle_current_line_blame<CR>")
map("x", "<leader>a", function()
map("x", "<leader>al", function()
require("align").align_to_string({ preview = true, regex = true }) require("align").align_to_string({ preview = true, regex = true })
end) end)
-- Colorscheme map({ "n", "x" }, "<C-j>", "<cmd>MultipleCursorsAddDown<CR>")
cmd.colorscheme("gruber-darker") map({ "n", "x" }, "<C-k>", "<cmd>MultipleCursorsAddUp<CR>")
map({ "n", "i", "x" }, "<C-Up>", "<cmd>MultipleCursorsAddUp<CR>")
map({ "n", "i", "x" }, "<C-Down>", "<cmd>MultipleCursorsAddDown<CR>")
map({ "n", "i" }, "<C-LeftMouse>", "<cmd>MultipleCursorsMouseAddDelete<CR>")
map({ "n", "v", "x" }, "<C-l>", "<cmd>MultipleCursorsAddJumpNextMatch<CR>")
map({ "n", "x" }, "<leader>D", "<cmd>MultipleCursorsJumpNextMatch<CR>")
map("n", "<leader>|", function()
require("multiple-cursors").align()
end)
map("n", "<leader>p", "<cmd>Neotree toggle<CR>")

View File

@@ -1,349 +0,0 @@
-- Set <space> as the leader key
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- [[ Setting options ]]
-- Fat cursor
-- vim.opt.guicursor = ""
-- Make relative line numbers default
vim.opt.number = true
vim.opt.relativenumber = true
-- Use 4 spaces as tab
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
-- Smart indentantion
vim.opt.smartindent = true
-- Enable mouse mode
vim.opt.mouse = "a"
-- Don't show the mode, since it's already in the status line
vim.opt.showmode = true -- false
-- Enable break indent
vim.opt.breakindent = true
-- Save undo history
vim.opt.undofile = true
vim.opt.undodir = os.getenv("HOME") .. "/.vim/nvim_undodir"
vim.opt.swapfile = false
vim.opt.backup = false
-- Case-insensitive searching UNLESS \C or one or more capital letters in the search term
vim.opt.ignorecase = true
vim.opt.smartcase = true
-- Incremental search
vim.opt.incsearch = true
-- Keep signcolumn on by default
vim.opt.signcolumn = "yes"
vim.opt.colorcolumn = "79" -- RFC 5322
-- Decrease update time
vim.opt.updatetime = 250
-- Decrease mapped sequence wait time
-- Displays which-key popup sooner
vim.opt.timeoutlen = 300
-- Configure how new splits should be opened
vim.opt.splitright = true
vim.opt.splitbelow = false
-- Diable automatic new line at end of file
vim.opt.fixendofline = false
-- Preview substitutions live, as you type!
vim.opt.inccommand = "nosplit"
-- Show which line your cursor is on
vim.opt.cursorline = false
-- Minimal number of screen lines to keep above and below the cursor.
vim.opt.scrolloff = 0
-- [[ Keymaps ]]
-- Set highlight on search, but clear on pressing <Esc> in normal mode
vim.opt.hlsearch = true
vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>")
-- Netrw
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
-- Move through quick fixes
vim.keymap.set("n", "<C-j>", "<cmd>cnext<CR>")
vim.keymap.set("n", "<C-k>", "<cmd>cprev<CR>")
-- Move text in visual mode
vim.keymap.set("v", "J", "<cmd>m '>+1<CR>gv=gv")
vim.keymap.set("v", "K", "<cmd>m '<-2<CR>gv=gv")
-- Query replace selected text in visual mode
vim.keymap.set("v", "<C-r>", "y:%s/<C-r>0//gc<left><left><left>")
-- Center screen with vim motions
-- vim.keymap.set("n", "<C-d>", "<C-d>zz")
-- vim.keymap.set("n", "<C-u>", "<C-u>zz")
vim.keymap.set("n", "n", "nzzzv")
vim.keymap.set("n", "N", "Nzzzv")
-- System clipboard
vim.keymap.set("n", "<leader>y", "\"+y")
vim.keymap.set("v", "<leader>y", "\"+y")
vim.keymap.set("n", "<leader>Y", "\"+Y")
-- Delete without copying
vim.keymap.set("n", "<leader>d", "\"_d")
vim.keymap.set("v", "<leader>d", "\"_d")
-- Delete all marks
vim.keymap.set("n", "<leader>dm", "<cmd>delmarks!<CR>")
-- Make executable
vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true })
-- Change CWD for current tab
vim.keymap.set("n", "<leader>cd", "<cmd>cd %:h | pwd<CR>", { silent = true })
-- Tabs
vim.keymap.set("n", "<leader>tt", "<cmd>tabnew<CR>")
vim.keymap.set("n", "<leader>tw", "<cmd>tabc<CR>")
vim.keymap.set("n", "<leader>tn", "<cmd>tabn<CR>")
vim.keymap.set("n", "<leader>tp", "<cmd>tabp<CR>")
vim.keymap.set("n", "<leader>tr", "<cmd>tabr<CR>")
vim.keymap.set("n", "<leader>tl", "<cmd>tabl<CR>")
-- Buffers
vim.keymap.set("n", "<leader>bc", "<cmd>enew<CR>")
vim.keymap.set("n", "<leader>bn", "<cmd>bn<CR>")
vim.keymap.set("n", "<leader>bp", "<cmd>bp<CR>")
vim.keymap.set("n", "<leader>\\", "<cmd>b term<CR>")
-- Diagnostic keymaps
vim.keymap.set("n", "[d", vim.diagnostic.goto_prev, { desc = "Go to previous [D]iagnostic message" })
vim.keymap.set("n", "]d", vim.diagnostic.goto_next, { desc = "Go to next [D]iagnostic message" })
vim.keymap.set("n", "L", vim.diagnostic.open_float, { desc = "Show diagnostic [E]rror messages" })
vim.keymap.set("n", "<leader>q", vim.diagnostic.setloclist, { desc = "Open diagnostic [Q]uickfix list" })
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
vim.keymap.set("t", "<Esc><Esc>", "<C-\\><C-n>", { desc = "Exit terminal mode" })
-- [[ Install `lazy.nvim` plugin manager ]]
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
vim.fn.system { "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }
end
vim.opt.rtp:prepend(lazypath)
-- [[ Configure and install plugins ]]
require("lazy").setup({
-- "gc" to comment visual regions/lines
{ "numToStr/Comment.nvim" },
-- Adds git related signs to the gutter, as well as utilities for managing changes
{
"lewis6991/gitsigns.nvim",
config = function()
require("gitsigns").setup()
vim.keymap.set("n", "<leader>gp", "<cmd>Gitsigns preview_hunk<CR>")
vim.keymap.set("n", "<leader>gb", "<cmd>Gitsigns toggle_current_line_blame<CR>")
end
},
-- Fuzzy Finder (files, lsp, etc)
{
"nvim-telescope/telescope.nvim",
branch = "0.1.x",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
end
},
-- File manager
--[[
{
"X3eRo0/dired.nvim",
dependencies = { "MunifTanjim/nui.nvim" },
config = function()
require("dired").setup({
path_separator = "/",
show_banner = false,
show_icons = false,
show_hidden = true,
show_dot_dirs = true,
show_colors = true,
})
vim.keymap.set("n", "<leader>pd", vim.cmd.Dired)
end
},
]]--
-- Advanced Undo tree
{
"mbbill/undotree",
config = function()
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
end
},
-- Custom Neovim status line
{
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
require("lualine").setup({
options = {
theme = "auto",
globalstatus = false,
component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" }
}
})
end
},
-- Colorscheme
{
"davidosomething/vim-colors-meh",
config = function()
vim.opt.termguicolors = true
vim.cmd.colorscheme("meh")
end
},
-- Transparency
{ "xiyaowong/transparent.nvim" },
-- Listchars
{
"0xfraso/nvim-listchars",
event = "BufEnter",
config = function()
require("nvim-listchars").setup({
save_state = true,
listchars = {
trail = "-",
-- eol = "↲",
tab = "» ",
space = "·",
},
notifications = true,
lighten_step = 10,
})
-- Decrease initial listchars brightness
vim.cmd("ListcharsDarkenColors")
vim.keymap.set("n", "<leader>lc", "<cmd>ListcharsToggle<CR>")
end
},
-- Multi cursor editing
{ "mg979/vim-visual-multi" },
-- Git integration
{
"tpope/vim-fugitive",
config = function()
vim.keymap.set("n", "<leader>gs", "<cmd>G<CR>")
end
},
-- Place, toggle and display marks
{ "kshenoy/vim-signature" },
-- Center text in the middle of the screen
{ "smithbm2316/centerpad.nvim" },
-- Treesitter
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local configs = require("nvim-treesitter.configs")
configs.setup({
sync_install = false,
highlight = { enable = false },
indent = { enable = false },
})
end
},
-- LSP
-- {
-- "VonHeikemen/lsp-zero.nvim",
-- dependencies = {
-- "williamboman/mason.nvim",
-- "williamboman/mason-lspconfig.nvim",
-- "neovim/nvim-lspconfig",
-- "hrsh7th/cmp-nvim-lsp",
-- "hrsh7th/nvim-cmp",
-- "hrsh7th/cmp-buffer",
-- "L3MON4D3/LuaSnip",
-- },
-- branch = "v3.x",
-- config = function()
-- local lsp_zero = require("lsp-zero")
-- lsp_zero.on_attach(function(client, bufnr)
-- -- LSP keymaps
-- lsp_zero.default_keymaps({ buffer = bufnr })
--
-- local toggle_diagnostics = function()
-- vim.diagnostic.enable(not vim.diagnostic.is_enabled())
-- end
-- vim.diagnostic.enable(false)
-- -- vim.diagnostic.config({ virtual_lines = true })
-- vim.diagnostic.config({ virtual_text = true })
--
-- vim.keymap.set("n", "gr", "<cmd>Telescope lsp_references<cr>", { buffer = bufnr })
-- vim.keymap.set("n", "<leader>td", toggle_diagnostics)
-- end)
-- lsp_zero.set_server_config({
-- on_init = function(client)
-- client.server_capabilities.semanticTokensProvider = nil
-- end,
-- })
--
-- require("mason").setup({})
-- require("mason-lspconfig").setup({
-- ensure_installed = {"lua_ls", "clangd"},
-- handlers = {
-- function(server_name)
-- require("lspconfig")[server_name].setup({})
-- end
-- }
-- })
--
-- local cmp = require("cmp")
-- local cmp_format = require("lsp-zero").cmp_format({ details = true })
--
-- cmp.setup({
-- completion = {
-- autocomplete = false
-- },
-- sources = {
-- { name = "nvim_lsp" },
-- { name = "buffer" },
-- },
-- formatting = cmp_format,
-- })
-- end
-- }
})