mirror of
https://github.com/Cian-H/dotfiles.git
synced 2025-12-22 19:31:57 +00:00
copied changes manually to fix nix config push issue
This commit is contained in:
31
dot_config/alacritty/alacritty.toml
Normal file
31
dot_config/alacritty/alacritty.toml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
[general]
|
||||||
|
import = ["~/.config/alacritty/tokyo-night.toml"]
|
||||||
|
|
||||||
|
[font]
|
||||||
|
normal = { family = "MonaspiceNeNerdFontMono", style = "Regular" }
|
||||||
|
size = 16.0
|
||||||
|
|
||||||
|
[cursor]
|
||||||
|
style = "Beam"
|
||||||
|
vi_mode_style = { shape = "Block", blinking = "Off" }
|
||||||
|
unfocused_hollow = true
|
||||||
|
|
||||||
|
[terminal.shell]
|
||||||
|
program = "/usr/bin/env"
|
||||||
|
args = ["nu"]
|
||||||
|
|
||||||
|
[mouse]
|
||||||
|
hide_when_typing = true
|
||||||
|
|
||||||
|
[keyboard]
|
||||||
|
bindings = [
|
||||||
|
{ action = "CreateNewWindow", key = "N", mods = "Alt" },
|
||||||
|
{ action = "CreateNewWindow", key = "N", mods = "Alt" },
|
||||||
|
{ action = "CreateNewTab", key = "T", mods = "Alt" },
|
||||||
|
{ action = "SelectNextTab", key = "K", mods = "Alt" },
|
||||||
|
{ action = "SelectNextTab", key = "ArrowUp", mods = "Alt" },
|
||||||
|
{ action = "SelectPreviousTab", key = "J", mods = "Alt" },
|
||||||
|
{ action = "SelectPreviousTab", key = "ArrowDown", mods = "Alt" },
|
||||||
|
{ action = "CopySelection", key = "C", mods = "Control|Shift" },
|
||||||
|
{ action = "PasteSelection", key = "V", mods = "Control|Shift" },
|
||||||
|
]
|
||||||
23
dot_config/alacritty/tokyo-night.toml
Normal file
23
dot_config/alacritty/tokyo-night.toml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
[colors.bright]
|
||||||
|
black = "#444b6a"
|
||||||
|
blue = "#7da6ff"
|
||||||
|
cyan = "#0db9d7"
|
||||||
|
green = "#b9f27c"
|
||||||
|
magenta = "#bb9af7"
|
||||||
|
red = "#ff7a93"
|
||||||
|
white = "#acb0d0"
|
||||||
|
yellow = "#ff9e64"
|
||||||
|
|
||||||
|
[colors.normal]
|
||||||
|
black = "#32344a"
|
||||||
|
blue = "#7aa2f7"
|
||||||
|
cyan = "#449dab"
|
||||||
|
green = "#9ece6a"
|
||||||
|
magenta = "#ad8ee6"
|
||||||
|
red = "#f7768e"
|
||||||
|
white = "#787c99"
|
||||||
|
yellow = "#e0af68"
|
||||||
|
|
||||||
|
[colors.primary]
|
||||||
|
background = "#1a1b26"
|
||||||
|
foreground = "#a9b1d6"
|
||||||
@@ -22,5 +22,5 @@ source = inputs.conf
|
|||||||
source = appearance.conf
|
source = appearance.conf
|
||||||
|
|
||||||
exec-once = pueued -d
|
exec-once = pueued -d
|
||||||
exec-once = waybar
|
|
||||||
exec-once = hyprpaper
|
exec-once = hyprpaper
|
||||||
|
exec-once = sleep 0.5s && waybar
|
||||||
|
|||||||
@@ -26,10 +26,12 @@ decoration {
|
|||||||
vibrancy = 0.1696
|
vibrancy = 0.1696
|
||||||
}
|
}
|
||||||
|
|
||||||
drop_shadow = true
|
shadow {
|
||||||
shadow_range = 4
|
enabled = true
|
||||||
shadow_render_power = 3
|
range = 4
|
||||||
col.shadow = rgba(1a1a1aee)
|
render_power = 3
|
||||||
|
color = rgba(1a1a1aee)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
animations {
|
animations {
|
||||||
|
|||||||
4
dot_config/just/justfile
Normal file
4
dot_config/just/justfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
mod? nix "~/.config/nix"
|
||||||
|
|
||||||
|
default:
|
||||||
|
@just -g --list
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
hide_window_decorations yes
|
|
||||||
enabled_layouts Grid, Stack, Splits, Horizontal, Vertical, Fat, Tall
|
enabled_layouts Grid, Stack, Splits, Horizontal, Vertical, Fat, Tall
|
||||||
tab_bar_style powerline
|
tab_bar_style powerline
|
||||||
tab_powerline_style slanted
|
tab_powerline_style slanted
|
||||||
# tab_activity_symbol " "
|
tab_activity_symbol " "
|
||||||
|
|||||||
@@ -7,16 +7,21 @@ source ~/.config/nushell/nu_scripts/custom-completions/flutter/flutter-completio
|
|||||||
source ~/.config/nushell/nu_scripts/custom-completions/gh/gh-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/gh/gh-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/git/git-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/git/git-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/glow/glow-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/glow/glow-completions.nu
|
||||||
|
source ~/.config/nushell/nu_scripts/custom-completions/just/just-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/man/man-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/man/man-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/mix/mix-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/mix/mix-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/nano/nano-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/nano/nano-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/nix/nix-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/nix/nix-completions.nu
|
||||||
|
source ~/.config/nushell/nu_scripts/custom-completions/pass/pass-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/poetry/poetry-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/poetry/poetry-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/pre-commit/pre-commit-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/pre-commit/pre-commit-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/pytest/pytest-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/pytest/pytest-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/rg/rg-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/rg/rg-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/rustup/rustup-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/rustup/rustup-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/rye/rye-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/rye/rye-completions.nu
|
||||||
|
source ~/.config/nushell/nu_scripts/custom-completions/ssh/ssh-completions.nu
|
||||||
|
source ~/.config/nushell/nu_scripts/custom-completions/tar/tar-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/tealdeer/tldr-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/tealdeer/tldr-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/vscode/vscode-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/vscode/vscode-completions.nu
|
||||||
|
source ~/.config/nushell/nu_scripts/custom-completions/winget/winget-completions.nu
|
||||||
source ~/.config/nushell/nu_scripts/custom-completions/zellij/zellij-completions.nu
|
source ~/.config/nushell/nu_scripts/custom-completions/zellij/zellij-completions.nu
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
~/.local/bin
|
||||||
|
~/.cargo/bin
|
||||||
~/.poetry/bin
|
~/.poetry/bin
|
||||||
~/.ghcup/bin
|
~/.ghcup/bin
|
||||||
~/.local/bin
|
|
||||||
/opt/miniconda3/bin
|
|
||||||
~/.nix-profile/bin
|
~/.nix-profile/bin
|
||||||
/nix/var/nix/profiles/default/bin
|
/nix/var/nix/profiles/default/bin
|
||||||
|
/opt/miniconda3/bin
|
||||||
|
|||||||
@@ -40,3 +40,11 @@ export def 'build-plugins' [] {
|
|||||||
register-plugins
|
register-plugins
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export def 'install-default-plugins' [] {
|
||||||
|
[ nu_plugin_inc
|
||||||
|
nu_plugin_polars
|
||||||
|
# nu_plugin_gstat
|
||||||
|
nu_plugin_formats
|
||||||
|
nu_plugin_query
|
||||||
|
] | each { cargo install $in --locked } | ignore
|
||||||
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ return {
|
|||||||
{ "<leader>t", group = "[T]ree" },
|
{ "<leader>t", group = "[T]ree" },
|
||||||
{ "<leader>o", group = "[O]verseer" },
|
{ "<leader>o", group = "[O]verseer" },
|
||||||
{ "<leader>h", group = "[H]arpoon" },
|
{ "<leader>h", group = "[H]arpoon" },
|
||||||
|
{ "<leader>x", group = "[X] Trouble" },
|
||||||
{ "<leader>|", group = "[|] Copilot" },
|
{ "<leader>|", group = "[|] Copilot" },
|
||||||
},
|
},
|
||||||
copilot = {
|
copilot = {
|
||||||
@@ -263,4 +264,80 @@ return {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
todo_comments = {
|
||||||
|
{
|
||||||
|
"]t",
|
||||||
|
function()
|
||||||
|
require("todo-comments").jump_next()
|
||||||
|
end,
|
||||||
|
desc = "Next Todo Comment",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"[t",
|
||||||
|
function()
|
||||||
|
require("todo-comments").jump_prev()
|
||||||
|
end,
|
||||||
|
desc = "Previous Todo Comment",
|
||||||
|
},
|
||||||
|
{ "<leader>xt", "<cmd>Trouble todo toggle<cr>", desc = "Todo" },
|
||||||
|
{
|
||||||
|
"<leader>xT",
|
||||||
|
"<cmd>Trouble todo toggle filter = {tag = {TODO,FIX,FIXME}}<cr>",
|
||||||
|
desc = "Todo/Fix/Fixme",
|
||||||
|
},
|
||||||
|
{ "<leader>st", "<cmd>TodoTelescope<cr>", desc = "Todo" },
|
||||||
|
{
|
||||||
|
"<leader>sT",
|
||||||
|
"<cmd>TodoTelescope keywords=TODO,FIX,FIXME<cr>",
|
||||||
|
desc = "Todo/Fix/Fixme",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
trouble = {
|
||||||
|
{ "<leader>xx", "<cmd>Trouble diagnostics toggle<cr>", desc = "Diagnostics" },
|
||||||
|
{
|
||||||
|
"<leader>xX",
|
||||||
|
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
||||||
|
desc = "Buffer Diagnostics",
|
||||||
|
},
|
||||||
|
{ "<leader>cs", "<cmd>Trouble symbols toggle<cr>", desc = "Symbols" },
|
||||||
|
{
|
||||||
|
"<leader>cS",
|
||||||
|
"<cmd>Trouble lsp toggle<cr>",
|
||||||
|
desc = "LSP references/definitions/... (Trouble)",
|
||||||
|
},
|
||||||
|
{ "<leader>xL", "<cmd>Trouble loclist toggle<cr>", desc = "Location List" },
|
||||||
|
{ "<leader>xQ", "<cmd>Trouble qflist toggle<cr>", desc = "Quickfix List" },
|
||||||
|
{
|
||||||
|
"[q",
|
||||||
|
function()
|
||||||
|
if require("trouble").is_open() then
|
||||||
|
require("trouble").prev({ skip_groups = true, jump = true })
|
||||||
|
else
|
||||||
|
local ok, err = pcall(vim.cmd.cprev)
|
||||||
|
if not ok then
|
||||||
|
vim.notify(err, vim.log.levels.ERROR)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
desc = "Previous Trouble/Quickfix Item",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"]q",
|
||||||
|
function()
|
||||||
|
if require("trouble").is_open() then
|
||||||
|
require("trouble").next({ skip_groups = true, jump = true })
|
||||||
|
else
|
||||||
|
local ok, err = pcall(vim.cmd.cnext)
|
||||||
|
if not ok then
|
||||||
|
if err then
|
||||||
|
vim.notify(err, vim.log.levels.ERROR)
|
||||||
|
else
|
||||||
|
vim.notify("An error occured but returned nil!", vim.log.levels.ERROR)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
desc = "Next Trouble/Quickfix Item",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ return { -- Non programming quality of life utilities go here
|
|||||||
"echasnovski/mini.nvim",
|
"echasnovski/mini.nvim",
|
||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
},
|
},
|
||||||
|
---@module 'render-markdown'
|
||||||
|
---@type render.md.UserConfig
|
||||||
},
|
},
|
||||||
{ -- A cheatsheet will always be useful until im a bit more familiar with vim
|
{ -- A cheatsheet will always be useful until im a bit more familiar with vim
|
||||||
"sudormrfbin/cheatsheet.nvim",
|
"sudormrfbin/cheatsheet.nvim",
|
||||||
|
|||||||
@@ -231,7 +231,6 @@ return { -- LSP Config should be a standalone function, hence this module
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
-- Finally: add language and filetype specific plugins
|
-- Finally: add language and filetype specific plugins
|
||||||
{ "LhKipp/nvim-nu", ft = "nu" },
|
|
||||||
{ "fladson/vim-kitty", ft = "kitty" },
|
{ "fladson/vim-kitty", ft = "kitty" },
|
||||||
{ "scallop-lang/vim-scallop", ft = "scallop" },
|
{ "scallop-lang/vim-scallop", ft = "scallop" },
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ return { -- UI components and other visual elements are declared here
|
|||||||
vim.cmd.colorscheme("tokyonight-night")
|
vim.cmd.colorscheme("tokyonight-night")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{ "MunifTanjim/nui.nvim", lazy = true },
|
||||||
{ -- Useful plugin to show you pending keybinds.
|
{ -- Useful plugin to show you pending keybinds.
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
@@ -79,6 +80,7 @@ return { -- UI components and other visual elements are declared here
|
|||||||
end, 5)
|
end, 5)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
-- Modular, configurable status bar
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
@@ -142,6 +144,7 @@ return { -- UI components and other visual elements are declared here
|
|||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
dependencies = { "zbirenbaum/copilot.lua" },
|
dependencies = { "zbirenbaum/copilot.lua" },
|
||||||
},
|
},
|
||||||
|
-- Assistant for refreshers on vim motions
|
||||||
{
|
{
|
||||||
"tris203/precognition.nvim",
|
"tris203/precognition.nvim",
|
||||||
keys = require("config.keys").precognition,
|
keys = require("config.keys").precognition,
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ return { -- General programming utilities go here
|
|||||||
override = function(root_dir, library)
|
override = function(root_dir, library)
|
||||||
if
|
if
|
||||||
root_dir:find(
|
root_dir:find(
|
||||||
os.getenv("XDG_CONFIG_HOME") .. "/nix/home-manager/dotfiles/.config/nvim/",
|
os.getenv("XDG_CONFIG_HOME")
|
||||||
|
.. "/nix/home-manager/core/dotfiles/dot_config/nvim/",
|
||||||
1,
|
1,
|
||||||
true
|
true
|
||||||
) == 1
|
) == 1
|
||||||
@@ -20,11 +21,24 @@ return { -- General programming utilities go here
|
|||||||
},
|
},
|
||||||
-- Privilege escalation plugin
|
-- Privilege escalation plugin
|
||||||
{ "lambdalisue/suda.vim", event = "VeryLazy" },
|
{ "lambdalisue/suda.vim", event = "VeryLazy" },
|
||||||
|
{
|
||||||
|
"folke/trouble.nvim",
|
||||||
|
cmd = { "Trouble" },
|
||||||
|
opts = {
|
||||||
|
modes = {
|
||||||
|
lsp = {
|
||||||
|
win = { position = "right" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keys = require("config.keys").trouble,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"folke/todo-comments.nvim",
|
"folke/todo-comments.nvim",
|
||||||
|
cmd = { "TodoTrouble", "TodoTelescope" },
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
opts = { signs = false },
|
keys = require("config.keys").todo_comments,
|
||||||
},
|
},
|
||||||
"tpope/vim-fugitive", -- Also want to add fugitive, since it's apparently a great git plugin
|
"tpope/vim-fugitive", -- Also want to add fugitive, since it's apparently a great git plugin
|
||||||
"jlfwong/vim-mercenary", -- Mercenary is the mercurial equivalent of fugitive
|
"jlfwong/vim-mercenary", -- Mercenary is the mercurial equivalent of fugitive
|
||||||
@@ -60,8 +74,9 @@ return { -- General programming utilities go here
|
|||||||
keys = require("config.keys").harpoon,
|
keys = require("config.keys").harpoon,
|
||||||
},
|
},
|
||||||
-- Snippets
|
-- Snippets
|
||||||
{ "SirVer/ultisnips", events = "VeryLazy" },
|
"SirVer/ultisnips",
|
||||||
{ "honza/vim-snippets", events = "VeryLazy" },
|
"honza/vim-snippets",
|
||||||
|
"rafamadriz/friendly-snippets",
|
||||||
{ -- Package and devenv plugins
|
{ -- Package and devenv plugins
|
||||||
"danymat/neogen",
|
"danymat/neogen",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
@@ -198,24 +213,17 @@ return { -- General programming utilities go here
|
|||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = { "bash", "c", "html", "lua", "markdown", "vim", "vimdoc" },
|
ensure_installed = { "bash", "c", "html", "lua", "markdown", "vim", "vimdoc" },
|
||||||
-- Autoinstall languages that are not installed
|
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
|
||||||
|
|
||||||
---@diagnostic disable-next-line: missing-fields
|
---@diagnostic disable-next-line: missing-fields
|
||||||
require("nvim-treesitter.configs").setup(opts)
|
require("nvim-treesitter.configs").setup(opts)
|
||||||
|
|
||||||
-- There are additional nvim-treesitter modules that you can use to interact
|
|
||||||
-- with nvim-treesitter. You should go explore a few and see what interests you:
|
|
||||||
--
|
|
||||||
-- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
|
|
||||||
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
|
|
||||||
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
|
||||||
end,
|
end,
|
||||||
|
dependencies = {
|
||||||
|
{ "nushell/tree-sitter-nu", build = ":TSUpdate nu" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{ -- Undo tree
|
{ -- Undo tree
|
||||||
"mbbill/undotree",
|
"mbbill/undotree",
|
||||||
|
|||||||
Reference in New Issue
Block a user