refactor one 'term' to rule them all

This commit is contained in:
Mathias Schneider
2026-03-26 14:29:16 +01:00
parent 6adaa7b4e5
commit ef9b2fd0f0
15 changed files with 0 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
if status is-interactive
starship init fish | source
set -g fish_prompt_pwd_dir_length 0
fastfetch
end
+3
View File
@@ -0,0 +1,3 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:4300
@@ -0,0 +1,136 @@
function fish_prompt
# This prompt shows:
# - green lines if the last return command is OK, red otherwise
# - your user name, in red if root or yellow otherwise
# - your hostname, in cyan if ssh or blue otherwise
# - the current path (with prompt_pwd)
# - date +%X
# - the current virtual environment, if any
# - the current git status, if any, with fish_git_prompt
# - the current battery state, if any, and if your power cable is unplugged, and if you have "acpi"
# - current background jobs, if any
# It goes from:
# ┬─[nim@Hattori:~]─[11:39:00]
# ╰─>$ echo here
# To:
# ┬─[nim@Hattori:~/w/dashboard]─[11:37:14]─[V:django20]─[G:master↑1|●1✚1…1]─[B:85%, 05:41:42 remaining]
# │ 2 15054 0% arrêtée sleep 100000
# │ 1 15048 0% arrêtée sleep 100000
# ╰─>$ echo there
set -l retc red
test $status = 0; and set retc green
set -q __fish_git_prompt_showupstream
or set -g __fish_git_prompt_showupstream auto
function _nim_prompt_wrapper
set retc $argv[1]
set -l field_name $argv[2]
set -l field_value $argv[3]
set_color normal
set_color $retc
echo -n '─'
set_color -o green
echo -n '['
set_color normal
test -n $field_name
and echo -n $field_name:
set_color $retc
echo -n $field_value
set_color -o green
echo -n ']'
end
set_color $retc
echo -n '┬─'
set_color -o green
echo -n [
if functions -q fish_is_root_user; and fish_is_root_user
set_color -o red
else
set_color -o yellow
end
echo -n $USER
set_color -o white
echo -n @
if test -z "$SSH_CLIENT"
set_color -o blue
else
set_color -o cyan
end
echo -n (prompt_hostname)
set_color -o white
echo -n :(prompt_pwd)
set_color -o green
echo -n ']'
# Date
_nim_prompt_wrapper $retc '' (date +%X)
# Vi-mode
if test "$fish_key_bindings" = fish_vi_key_bindings
or test "$fish_key_bindings" = fish_hybrid_key_bindings
set -l mode
switch $fish_bind_mode
case default
set mode (set_color --bold red)N
case operator f F t T
set mode (set_color --bold cyan)N
case insert
set mode (set_color --bold green)I
case replace_one
set mode (set_color --bold green)R
case replace
set mode (set_color --bold cyan)R
case visual
set mode (set_color --bold magenta)V
end
set mode $mode(set_color normal)
_nim_prompt_wrapper $retc '' $mode
end
# Virtual Environment
set -q VIRTUAL_ENV_DISABLE_PROMPT
or set -g VIRTUAL_ENV_DISABLE_PROMPT true
set -q VIRTUAL_ENV
and _nim_prompt_wrapper $retc V (path basename "$VIRTUAL_ENV")
# git
set -l prompt_git (fish_git_prompt '%s')
test -n "$prompt_git"
and _nim_prompt_wrapper $retc G $prompt_git
# Battery status
type -q acpi
and acpi -a 2>/dev/null | string match -rq off
and _nim_prompt_wrapper $retc B (acpi -b | cut -d' ' -f 4-)
# New line
echo
# Background jobs
set_color normal
for job in (jobs)
set_color $retc
echo -n '│ '
set_color brown
echo $job
end
set_color normal
set_color $retc
echo -n '╰─>'
set_color -o red
echo -n '$ '
set_color normal
end
+256
View File
@@ -0,0 +1,256 @@
# Neovim IDE Configuration
A feature-rich Neovim setup optimized for Python, JSON, and CSV development.
## Features
### LSP (Language Server Protocol)
- **Python** (pyright) - Autocomplete, type checking, goto definition, hover docs, rename
- **JSON** (jsonls) - Validation, formatting, schema support
- **YAML** (yamlls) - YAML file support
- **HTML/CSS** (html, cssls) - Web development
- **Bash** (bashls) - Shell script support
- **Lua** (lua_ls) - Neovim config development
### Completion
- **nvim-cmp** - Smart autocomplete with LSP integration
- **LuaSnip** - Snippet support
### Syntax Highlighting & Parsing
- **Treesitter** - Advanced syntax highlighting for Python, JSON, CSV, YAML, Markdown, and more
- **CSV Support** - Syntax highlighting for CSV files
### File Management
- **Neo-tree** - File explorer with git integration
- **Telescope** - Fuzzy finder for files, text, and more
### Git Integration
- **Gitsigns** - Git status in the gutter (added, modified, deleted lines)
### Debugging
- **nvim-dap** - Debug Python code with breakpoints, step-through debugging
- **dap-ui** - Visual debugging interface
### UI Enhancements
- **Catppuccin** - Beautiful dark color scheme (Mocha flavor)
- **Lualine** - Custom statusline showing mode, git branch, file, diagnostics
### Formatting
- **conform.nvim** - Auto-format on save (ruff for Python, jq for JSON, etc.)
### Utilities
- **nvim-comment** - Easy commenting (toggle comments with `gcc`)
---
## Installation
1. **Install Neovim** (version 0.10+ recommended)
2. **Link this config:**
```bash
ln -s ~/.dotfiles/nvim ~/.config/nvim
```
3. **Open Neovim** - plugins will install automatically
4. **Install debugpy for Python debugging:**
```bash
pip install debugpy
```
5. **Install formatters (optional):**
```bash
pip install ruff black
```
---
## Keymaps
### General
| Keymap | Action |
|--------|--------|
| `<leader>w` | Save file |
| `<leader>q` | Quit Neovim |
| `<Esc>` | Exit insert mode |
| `u` | Undo |
| `<C-r>` | Redo |
| `dd` | Delete line |
| `yy` | Yank (copy) line |
| `p` | Paste |
### Navigation
| Keymap | Action |
|--------|--------|
| `h/j/k/l` | Move left/down/up/right |
| `w/b` | Jump forward/back by word |
| `0/$` | Jump to start/end of line |
| `gg` | Jump to beginning of file |
| `G` | Jump to end of file |
| `<C-d>/<C-u>` | Jump down/up half page |
| `<C-f>/<C-b>` | Jump forward/back page |
### File Explorer (Neo-tree)
| Keymap | Action |
|--------|--------|
| `<C-n>` | Toggle file explorer |
| `Enter` | Open file/folder |
| `h` | Close folder |
| `l` | Open folder |
| `a` | Add file |
| `d` | Delete file |
| `r` | Rename file |
| `y/x` | Copy/Cut file |
| `p` | Paste |
### Fuzzy Finder (Telescope)
| Keymap | Action |
|--------|--------|
| `<C-p>` | Find files |
| `<leader>fg` | Grep (search text in files) |
### LSP (Language Server)
| Keymap | Action |
|--------|--------|
| `gd` | Go to definition |
| `gD` | Go to declaration |
| `gi` | Go to implementation |
| `gr` | Show references |
| `K` | Show hover documentation |
| `<leader>rn` | Rename symbol |
| `<leader>ca` | Code actions / quick fixes |
| `<leader>e` | Show diagnostic error |
| `[d / ]d` | Previous/next diagnostic |
### Formatting
| Keymap | Action |
|--------|--------|
| `<leader>f` | Format file |
### Git (Gitsigns)
| Keymap | Action |
|--------|--------|
| `]c / [c` | Next/previous hunk (change) |
| `<leader>hs` | Stage current hunk |
| `<leader>hr` | Reset current hunk |
| `<leader>hp` | Preview hunk changes |
| `<leader>hb` | Blame line |
### Debugging (DAP)
| Keymap | Action |
|--------|--------|
| `<F5>` | Continue / Start debugger |
| `<F9>` | Toggle breakpoint |
| `<F10>` | Step over |
| `<F11>` | Step into |
| `<S-F11>` | Step out |
| `<leader>du` | Toggle debugger UI |
### Commenting
| Keymap | Action |
|--------|--------|
| `gcc` | Toggle line comment |
| `gc` (visual) | Toggle selection comment |
### Folding
| Keymap | Action |
|--------|--------|
| `zc` | Close (fold) current block |
| `zo` | Open (unfold) current block |
| `za` | Toggle fold at cursor |
| `zM` | Close all folds |
| `zR` | Open all folds |
| `zC` | Close folds recursively |
| `zO` | Open folds recursively |
| `zE` | Eliminate all folds |
| `zv` | Open folds enough to see cursor |
---
## File Type Specifics
### Python (.py)
- **LSP**: Full autocompletion, type checking, goto definition
- **Formatting**: ruff format (fast), black (backup)
- **Debugging**: Set breakpoints with `F9`, run with `F5`
- **Indentation**: 4 spaces (Python convention)
### JSON (.json)
- **LSP**: Validation, schema support
- **Formatting**: jq
- **Indentation**: 2 spaces
- **Folding**: JSON objects/arrays are foldable (`za` to toggle, `zM` to close all)
### CSV (.csv)
- **Treesitter**: Syntax highlighting
- **No wrap**: Full row visibility
- **Navigation**: Standard motions (`j/k`, `/`, etc.)
- **Tip**: Use `set nowrap` for viewing wide CSV files without line wrapping
### YAML (.yaml/.yml)
- **LSP**: Validation, schema support
- **Folding**: Nested structures are foldable
### Python (.py)
- **Folding**: Functions, classes, and code blocks are foldable
- **Tip**: Use `za` to toggle a fold at cursor, `zM` to close all folds
---
## Troubleshooting
### LSP not working
1. Ensure the language server is installed
2. Run `:LspInfo` to check status
3. Try `:LspRestart`
### Debugging not working
1. Install debugpy: `pip install debugpy`
2. Place breakpoint with `F9`
3. Start with `F5`
### Colors wrong
The config uses Catppuccin Mocha theme. If you see color issues, run:
```vim
:colorscheme catppuccin
```
---
## Adding New Plugins
Plugins are defined in `lua/plugins/`. Each `.lua` file is a plugin spec that returns a table.
Example (`lua/plugins/myplugin.lua`):
```lua
return {
"username/repo-name",
config = function()
require("myplugin").setup()
end,
}
```
---
## Credits
- [lazy.nvim](https://github.com/folke/lazy.nvim) - Plugin manager
- [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) - LSP configuration
- [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) - Completion
- [Telescope](https://github.com/nvim-telescope/telescope.nvim) - Fuzzy finder
- [Neo-tree](https://github.com/nvim-neo-tree/neo-tree.nvim) - File explorer
- [Catppuccin](https://github.com/catppuccin/nvim) - Colorscheme
- [Gitsigns](https://github.com/lewis6991/gitsigns.nvim) - Git integration
- [nvim-dap](https://github.com/mfussenegger/nvim-dap) - Debugging
+60
View File
@@ -0,0 +1,60 @@
--[[
init.lua - Main Neovim configuration entry point
HOW THIS WORKS:
1. Bootstrap lazy.nvim (plugin manager)
2. Load basic settings
3. Load all plugins from plugins/ directory
4. Set global keymaps and LSP keymaps
]]
-- ============================================================================
-- STEP 1: BOOTSTRAP LAZY.NVIM
-- ============================================================================
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git", "clone", "--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
-- ============================================================================
-- STEP 2: LOAD SETTINGS
-- ============================================================================
require("basic-settings")
-- ============================================================================
-- STEP 3: LOAD PLUGINS
-- ============================================================================
require("lazy").setup("plugins")
-- ============================================================================
-- STEP 4: LSP KEYMAPS
-- ============================================================================
vim.keymap.set("n", "gd", vim.lsp.buf.definition, { desc = "Go to definition" })
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, { desc = "Go to declaration" })
vim.keymap.set("n", "gi", vim.lsp.buf.implementation, { desc = "Go to implementation" })
vim.keymap.set("n", "gr", vim.lsp.buf.references, { desc = "Show references" })
vim.keymap.set("n", "K", vim.lsp.buf.hover, { desc = "Show hover docs" })
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, { desc = "Rename symbol" })
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, { desc = "Code actions" })
vim.keymap.set("n", "<leader>e", vim.diagnostic.open_float, { desc = "Show diagnostic" })
vim.keymap.set("n", "[d", vim.diagnostic.goto_prev, { desc = "Previous diagnostic" })
vim.keymap.set("n", "]d", vim.diagnostic.goto_next, { desc = "Next diagnostic" })
vim.diagnostic.config({
virtual_text = { prefix = "" },
signs = true,
float = { border = "rounded" },
})
-- ============================================================================
-- STEP 5: GLOBAL KEYMAPS
-- ============================================================================
vim.keymap.set("n", "<leader>w", ":w<CR>", { desc = "Save file" })
vim.keymap.set("n", "<leader>q", ":q<CR>", { desc = "Quit" })
vim.keymap.set("n", "<C-n>", ":Neotree filesystem reveal left<CR>", { desc = "Toggle explorer" })
vim.keymap.set("n", "<C-p>", ":Telescope find_files<CR>", { desc = "Find files" })
+172
View File
@@ -0,0 +1,172 @@
--[[
BASIC-SETTINGS.LUA
This file contains fundamental Neovim settings that don't require plugins.
These are applied to Neovim globally and affect the core editing experience.
In Lua (this file), we use:
- vim.opt.* for options that take values
- vim.g.* for global variables
- vim.go.* for global option shorthand
]]
-- ============================================================================
-- FOLDING SETTINGS (Code folding)
-- ============================================================================
-- Foldmethod determines how code blocks are detected and folded
-- "expr" means folds are based on expressions (we use treesitter for this)
vim.opt.foldmethod = "expr"
-- Foldexpr is the expression used to determine fold level
-- v:lua.vim.treesitter.foldexpr() uses Treesitter to calculate folds
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
-- Foldlevel: Higher number = more folds are open by default
-- 99 means almost all folds are open when opening a file
vim.opt.foldlevel = 99
-- ============================================================================
-- LINE NUMBERS
-- ============================================================================
-- Show line numbers (absolute numbering)
vim.opt.number = true
-- Show relative line numbers (helps with motions like 5j, 3k, etc.)
-- When combined with 'number', the current line shows absolute number
vim.opt.relativenumber = true
-- ============================================================================
-- INDENTATION SETTINGS
-- ============================================================================
-- Tabstop: How many spaces a TAB character counts for
-- When viewing a file, TABs appear as this many spaces
vim.opt.tabstop = 4
-- Shiftwidth: How many spaces to use for auto-indentation and >> << commands
vim.opt.shiftwidth = 4
-- Expandtab: Convert TABs to spaces when typing
-- true = pressing TAB inserts spaces; false = inserts actual TAB characters
-- Recommendation: Use true (spaces) for better portability across systems
vim.opt.expandtab = true
-- Smartindent: Auto-indent based on file type and syntax
-- Automatically adds indent after lines ending with specific characters
vim.opt.smartindent = true
-- ============================================================================
-- UI/UX SETTINGS
-- ============================================================================
-- Show line length marker (optional, helps keep lines under 80/120 chars)
-- Uncomment if you want: vim.opt.colorcolumn = "80"
-- Enable cursor line highlighting (subtle background on current line)
vim.opt.cursorline = true
-- Enable cursor column highlighting (column where cursor is)
vim.opt.cursorcolumn = true
-- Better command-line completion (popup menu for completions)
vim.opt.wildmenu = true
-- Ignore case when searching UNLESS you include an uppercase letter
vim.opt.ignorecase = true
vim.opt.smartcase = true
-- Highlight search matches as you type
vim.opt.incsearch = true
-- When search reaches end, wrap back to beginning
vim.opt.wrapscan = true
-- Show matching brackets/parentheses
vim.opt.showmatch = true
-- How long (ms) to show matching bracket
vim.opt.matchtime = 2
-- Show current mode in last line (like -- INSERT --)
vim.opt.showmode = true
-- Show incomplete commands at bottom
vim.opt.showcmd = true
-- Command line height (number of lines for command area)
vim.opt.cmdheight = 1
-- Always show status line (even in single window)
vim.opt.laststatus = 3
-- Don't redraw while executing macros (faster)
vim.opt.lazyredraw = false
-- Don't show mode in the window title (cleaner)
vim.opt.title = false
-- ============================================================================
-- EDITING BEHAVIOR
-- ============================================================================
-- Enable mouse support (click to move cursor, resize splits)
vim.opt.mouse = "a"
-- Allow backspace to delete indent, eol, and start of line
vim.opt.backspace = "indent,eol,start"
-- Auto-read file when changed externally (e.g., by another program)
vim.opt.autoread = true
-- Auto-write when switching buffers or leaving
-- 'a' = auto-write for all buffers; uncomment if you want:
-- vim.opt.autowrite = true
-- Remember moreundo for longer undo history
vim.opt.undofile = true
-- ============================================================================
-- SPLIT AND TAB SETTINGS
-- ============================================================================
-- Split below (instead of above) when creating horizontal splits
vim.opt.splitbelow = true
-- Split right (instead of left) when creating vertical splits
vim.opt.splitright = true
-- ============================================================================
-- PERFORMANCE SETTINGS
-- ============================================================================
-- Faster terminal response
vim.opt.timeout = true
vim.opt.timeoutlen = 300 -- Time in ms to wait for a mapped sequence
-- Async handling for some operations
vim.opt.ttimeoutlen = 10
-- ============================================================================
-- LEADER KEY
-- ============================================================================
-- The <Leader> key is used as a prefix for custom keybindings
-- By convention, space is commonly used as the leader key
vim.g.mapleader = " "
-- ============================================================================
-- TERMINAL SETTINGS
-- ============================================================================
-- Exit terminal mode with Escape
vim.keymap.set("t", "<Esc>", [[<C-\><C-n>]], {
desc = "Exit terminal mode"
})
-- Alternative: Exit with Alt key combinations as well
vim.keymap.set("t", "<A-x>", [[<C-\><C-n>]], {
desc = "Exit terminal mode with Alt"
})
-- ============================================================================
-- CLIPBOARD (System clipboard integration)
-- ============================================================================
-- Use system clipboard for yank/paste
-- Requires +clipboard feature (check with: :echo has('clipboard'))
if vim.fn.has("clipboard") == 1 then
-- Use system clipboard for all yank/delete/paste operations
vim.opt.clipboard = "unnamedplus"
end
@@ -0,0 +1,10 @@
return {
"catppuccin/nvim",
name = "catppuccin",
lazy = false,
priority = 1000,
config = function()
require("catppuccin").setup({ flavor = "mocha" })
vim.cmd.colorscheme("catppuccin")
end,
}
@@ -0,0 +1,26 @@
--[[
DEBUGGING.LUA
nvim-dap for Python debugging
Requirements: pip install debugpy
]]
return {
{ "mfussenegger/nvim-dap" },
{ "nvim-neotest/nvim-nio" },
{
"rcarriga/nvim-dap-ui",
dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" },
config = function()
local dap, dapui = require("dap"), require("dapui")
dapui.setup()
dap.listeners.after.event_initialized["dapui_config"] = dapui.open
vim.keymap.set("n", "<F5>", dap.continue, { desc = "Continue" })
vim.keymap.set("n", "<F10>", dap.step_over, { desc = "Step over" })
vim.keymap.set("n", "<F11>", dap.step_into, { desc = "Step into" })
vim.keymap.set("n", "<S-F11>", dap.step_out, { desc = "Step out" })
vim.keymap.set("n", "<F9>", dap.toggle_breakpoint, { desc = "Breakpoint" })
vim.keymap.set("n", "<leader>du", dapui.toggle, { desc = "DAP UI" })
end,
},
{ "mfussenegger/nvim-dap-python", dependencies = { "mfussenegger/nvim-dap" } },
}
@@ -0,0 +1,6 @@
return {
"lewis6991/gitsigns.nvim",
config = function()
require('gitsigns').setup()
end,
}
@@ -0,0 +1,70 @@
return {
-- Mason (LSP server installer)
{
"mason-org/mason.nvim",
config = function()
require("mason").setup()
end,
},
-- Mason-LSPconfig (bridge Mason and nvim-lspconfig)
{
"mason-org/mason-lspconfig.nvim",
config = function()
require("mason-lspconfig").setup({
ensure_installed = {
"pyright", -- Python
"jsonls", -- JSON
"yamlls", -- YAML
"html", -- HTML
"cssls", -- CSS
"bashls", -- Bash
"lua_ls", -- Lua
},
automatic_enable = true,
})
end,
},
-- nvim-lspconfig
{
"neovim/nvim-lspconfig",
config = function()
-- Lua
vim.lsp.config('lua_ls', {
settings = {
Lua = {
runtime = { version = "LuaJIT" },
workspace = { library = vim.api.nvim_get_runtime_file("", true) },
},
},
})
-- Other languages
vim.lsp.config('pyright', {
settings = {
python = {
analysis = {
typeCheckingMode = "basic",
extraPaths = {}, -- Add extra import paths if needed
},
},
},
})
vim.lsp.config('jsonls', {})
vim.lsp.config('yamlls', {})
vim.lsp.config('html', {})
vim.lsp.config('cssls', {})
vim.lsp.config('bashls', {})
-- Enable servers
vim.lsp.enable('lua_ls')
vim.lsp.enable('pyright')
vim.lsp.enable('jsonls')
vim.lsp.enable('yamlls')
vim.lsp.enable('html')
vim.lsp.enable('cssls')
vim.lsp.enable('bashls')
end,
},
}
+20
View File
@@ -0,0 +1,20 @@
return {
"nvim-lualine/lualine.nvim",
config = function()
require('lualine').setup({
options = {
theme = "auto",
globalstatus = true,
},
sections = {
lualine_a = { "mode" },
lualine_b = { "branch", "diff" },
lualine_c = { "diagnostics", "filename" },
lualine_x = { "encoding", "fileformat", "filetype" },
lualine_y = { "progress" },
lualine_z = { "location" },
},
extensions = { "neo-tree" },
})
end,
}
@@ -0,0 +1,21 @@
return {
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
"nvim-tree/nvim-web-devicons",
},
config = function()
require("neo-tree").setup({
filesystem = {
filtered_items = {
visible = true,
hide_dotfiles = false,
hide_hidden = false,
},
},
})
vim.keymap.set('n', '<C-n>', ':Neotree filesystem reveal left<CR>', {})
end,
}
@@ -0,0 +1,32 @@
return {
{
"nvim-telescope/telescope.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
local builtin = require("telescope.builtin")
require("telescope").setup({
defaults = {
prompt_prefix = " ",
entry_prefix = " ",
initial_mode = "insert",
sorting_strategy = "ascending",
file_ignore_patterns = {
"node_modules", ".git", "__pycache__", "*.pyc", "dist", "build"
},
-- Disable treesitter in preview
preview = {
treesitter = false,
},
},
})
vim.keymap.set('n', '<C-p>', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
end
},
{
"nvim-telescope/telescope-ui-select.nvim",
config = function()
require("telescope").load_extension("ui-select")
end,
},
}
@@ -0,0 +1,16 @@
return {
"nvim-treesitter/nvim-treesitter",
lazy = true,
build = ":TSUpdate",
event = { "BufReadPost", "BufNewFile" },
config = function()
local ok, configs = pcall(require, "nvim-treesitter.configs")
if ok then
configs.setup({
ensure_installed = { "python", "lua", "json", "yaml", "markdown" },
highlight = { enable = true },
indent = { enable = true },
})
end
end,
}
+282
View File
@@ -0,0 +1,282 @@
"$schema" = 'https://starship.rs/config-schema.json'
format = """
[](red)\
$os\
$username\
[](bg:peach fg:red)\
$directory\
[](bg:yellow fg:peach)\
$git_branch\
$git_status\
[](fg:yellow bg:green)\
$c\
$rust\
$golang\
$nodejs\
$php\
$java\
$kotlin\
$haskell\
$python\
[](fg:green bg:sapphire)\
$conda\
[](fg:sapphire bg:lavender)\
$time\
[ ](fg:lavender)\
$line_break\
$character"""
right_format = "$cmd_duration"
palette = 'catppuccin_mocha'
[os]
disabled = false
style = "bg:red fg:crust"
[os.symbols]
Windows = ""
Ubuntu = "󰕈"
SUSE = ""
Raspbian = "󰐿"
Mint = "󰣭"
Macos = "󰀵"
Manjaro = ""
Linux = "󰌽"
Gentoo = "󰣨"
Fedora = "󰣛"
Alpine = ""
Amazon = ""
Android = ""
AOSC = ""
Arch = "󰣇"
Artix = "󰣇"
CentOS = ""
Debian = "󰣚"
Redhat = "󱄛"
RedHatEnterprise = "󱄛"
[username]
show_always = true
style_user = "bg:red fg:crust"
style_root = "bg:red fg:crust"
format = '[ $user]($style)'
[directory]
style = "bg:peach fg:crust"
format = "[ $path ]($style)"
truncation_length = 0
# truncate_to_repo = false
fish_style_pwd_dir_length = 0 # This is the critical line for Fish users
[directory.substitutions]
"Documents" = "󰈙 "
"Downloads" = " "
"Music" = "󰝚 "
"Pictures" = " "
"Developer" = "󰲋 "
[git_branch]
symbol = ""
style = "bg:yellow"
format = '[[ $symbol $branch ](fg:crust bg:yellow)]($style)'
[git_status]
style = "bg:yellow"
format = '[[($all_status$ahead_behind )](fg:crust bg:yellow)]($style)'
[nodejs]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[c]
symbol = " "
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[rust]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[golang]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[php]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[java]
symbol = " "
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[kotlin]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[haskell]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)'
[python]
symbol = ""
style = "bg:green"
format = '[[ $symbol( $version)(\(#$virtualenv\)) ](fg:crust bg:green)]($style)'
[docker_context]
symbol = ""
style = "bg:sapphire"
format = '[[ $symbol( $context) ](fg:crust bg:sapphire)]($style)'
[conda]
symbol = "  "
style = "fg:crust bg:sapphire"
format = '[$symbol$environment ]($style)'
ignore_base = false
[time]
disabled = false
time_format = "%T"
style = "bg:lavender"
format = '[[  $time ](fg:crust bg:lavender)]($style)'
[line_break]
disabled = false
[character]
disabled = false
success_symbol = '[](bold fg:green)'
error_symbol = '[](bold fg:red)'
vimcmd_symbol = '[](bold fg:green)'
vimcmd_replace_one_symbol = '[](bold fg:lavender)'
vimcmd_replace_symbol = '[](bold fg:lavender)'
vimcmd_visual_symbol = '[](bold fg:yellow)'
[cmd_duration]
show_milliseconds = true
format = " in $duration "
style = "bg:lavender"
disabled = false
show_notifications = true
min_time_to_notify = 45000
min_time = 0
[palettes.catppuccin_mocha]
rosewater = "#f5e0dc"
flamingo = "#f2cdcd"
pink = "#f5c2e7"
mauve = "#cba6f7"
red = "#f38ba8"
maroon = "#eba0ac"
peach = "#fab387"
yellow = "#f9e2af"
green = "#a6e3a1"
teal = "#94e2d5"
sky = "#89dceb"
sapphire = "#74c7ec"
blue = "#89b4fa"
lavender = "#b4befe"
text = "#cdd6f4"
subtext1 = "#bac2de"
subtext0 = "#a6adc8"
overlay2 = "#9399b2"
overlay1 = "#7f849c"
overlay0 = "#6c7086"
surface2 = "#585b70"
surface1 = "#45475a"
surface0 = "#313244"
base = "#1e1e2e"
mantle = "#181825"
crust = "#11111b"
[palettes.catppuccin_frappe]
rosewater = "#f2d5cf"
flamingo = "#eebebe"
pink = "#f4b8e4"
mauve = "#ca9ee6"
red = "#e78284"
maroon = "#ea999c"
peach = "#ef9f76"
yellow = "#e5c890"
green = "#a6d189"
teal = "#81c8be"
sky = "#99d1db"
sapphire = "#85c1dc"
blue = "#8caaee"
lavender = "#babbf1"
text = "#c6d0f5"
subtext1 = "#b5bfe2"
subtext0 = "#a5adce"
overlay2 = "#949cbb"
overlay1 = "#838ba7"
overlay0 = "#737994"
surface2 = "#626880"
surface1 = "#51576d"
surface0 = "#414559"
base = "#303446"
mantle = "#292c3c"
crust = "#232634"
[palettes.catppuccin_latte]
rosewater = "#dc8a78"
flamingo = "#dd7878"
pink = "#ea76cb"
mauve = "#8839ef"
red = "#d20f39"
maroon = "#e64553"
peach = "#fe640b"
yellow = "#df8e1d"
green = "#40a02b"
teal = "#179299"
sky = "#04a5e5"
sapphire = "#209fb5"
blue = "#1e66f5"
lavender = "#7287fd"
text = "#4c4f69"
subtext1 = "#5c5f77"
subtext0 = "#6c6f85"
overlay2 = "#7c7f93"
overlay1 = "#8c8fa1"
overlay0 = "#9ca0b0"
surface2 = "#acb0be"
surface1 = "#bcc0cc"
surface0 = "#ccd0da"
base = "#eff1f5"
mantle = "#e6e9ef"
crust = "#dce0e8"
[palettes.catppuccin_macchiato]
rosewater = "#f4dbd6"
flamingo = "#f0c6c6"
pink = "#f5bde6"
mauve = "#c6a0f6"
red = "#ed8796"
maroon = "#ee99a0"
peach = "#f5a97f"
yellow = "#eed49f"
green = "#a6da95"
teal = "#8bd5ca"
sky = "#91d7e3"
sapphire = "#7dc4e4"
blue = "#8aadf4"
lavender = "#b7bdf8"
text = "#cad3f5"
subtext1 = "#b8c0e0"
subtext0 = "#a5adcb"
overlay2 = "#939ab7"
overlay1 = "#8087a2"
overlay0 = "#6e738d"
surface2 = "#5b6078"
surface1 = "#494d64"
surface0 = "#363a4f"
base = "#24273a"
mantle = "#1e2030"
crust = "#181926"