mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-02-04 15:50:26 +01:00
Compare commits
31 Commits
935fedd711
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| c656dbbeb3 | |||
| 6c496fd2c0 | |||
| 23c8c64f48 | |||
| ec8317ddcd | |||
| ce732c7e75 | |||
| 8dd78f67ee | |||
| fc926d42cb | |||
| 19b4fcbc5f | |||
| cb0a57be0b | |||
| 75ab018b30 | |||
| 6ff9e356c3 | |||
| 443e7c3652 | |||
| cf93d46371 | |||
| d8740ddd85 | |||
| 0ed9b0d077 | |||
| 57c4983148 | |||
| da63f892c0 | |||
| 96d4cc6deb | |||
| 59f1dbec66 | |||
| e5b2f83f7b | |||
| 105d3273fb | |||
| 292c44448f | |||
| f9afaad121 | |||
| 7c5962f7f3 | |||
| 99152ac85c | |||
| c3a8f16c53 | |||
| 624391f1cc | |||
| 7c2322d10a | |||
| 8d58ebd8aa | |||
| 0ee41c2751 | |||
| bd46317803 |
@@ -69,6 +69,15 @@ alias la 'ls -A'
|
|||||||
alias l 'ls -CF'
|
alias l 'ls -CF'
|
||||||
alias lll 'ls --color=always -alF | less -R'
|
alias lll 'ls --color=always -alF | less -R'
|
||||||
|
|
||||||
|
# Replace ls with eza, if installed
|
||||||
|
if type -q eza
|
||||||
|
alias ll='eza -al --color=always --group-directories-first --icons' # preferred listing
|
||||||
|
alias ls='eza -a --color=always --group-directories-first --icons' # all files and dirs
|
||||||
|
alias la='eza -l --color=always --group-directories-first --icons' # long format
|
||||||
|
alias lt='eza -aT --color=always --group-directories-first --icons' # tree listing
|
||||||
|
alias l.="eza -a | grep -e '^\.'" # show only dotfiles
|
||||||
|
end
|
||||||
|
|
||||||
alias exa 'exa --icons --header --group-directories-first'
|
alias exa 'exa --icons --header --group-directories-first'
|
||||||
alias exatree 'exa --icons --header --group-directories-first --long --tree'
|
alias exatree 'exa --icons --header --group-directories-first --long --tree'
|
||||||
|
|
||||||
@@ -83,7 +92,7 @@ alias gst "git status"
|
|||||||
alias ga "git add -A"
|
alias ga "git add -A"
|
||||||
alias gl "git log"
|
alias gl "git log"
|
||||||
alias gls "git shortlog --summary"
|
alias gls "git shortlog --summary"
|
||||||
alias gld "git log --follow -p -- " # Shows history with diffs for the filename provided
|
alias gld "git log --follow -p -- " # Shows history with diffs for the filename provided
|
||||||
alias gr "git reflog"
|
alias gr "git reflog"
|
||||||
alias gt 'git tag|less'
|
alias gt 'git tag|less'
|
||||||
#alias gad 'git log --pretty='"'"'%at'"'"' | while read d; do date -d "@$d"; done | awk '"'"'{print $1}'"'"' | sort | uniq -c'
|
#alias gad 'git log --pretty='"'"'%at'"'"' | while read d; do date -d "@$d"; done | awk '"'"'{print $1}'"'"' | sort | uniq -c'
|
||||||
@@ -132,7 +141,7 @@ alias pypitest_up 'python3 -m build; python3 -m twine upload --repository testpy
|
|||||||
|
|
||||||
alias youtube-dl 'youtube-dl -t -f bestvideo+bestaudio/best --merge-output-format mp4'
|
alias youtube-dl 'youtube-dl -t -f bestvideo+bestaudio/best --merge-output-format mp4'
|
||||||
|
|
||||||
alias weather 'ansiweather'
|
alias weather ansiweather
|
||||||
alias wttr 'curl -s wttr.in/Beverwijk | head -17'
|
alias wttr 'curl -s wttr.in/Beverwijk | head -17'
|
||||||
|
|
||||||
# https://www.reddit.com/r/vim/comments/7axmsb/i_cant_believe_how_good_fzf_is/?st=jgm7kba5&sh=590aa1e0
|
# https://www.reddit.com/r/vim/comments/7axmsb/i_cant_believe_how_good_fzf_is/?st=jgm7kba5&sh=590aa1e0
|
||||||
@@ -148,7 +157,7 @@ function imready
|
|||||||
# e.g.: longrunning.sh; imready
|
# e.g.: longrunning.sh; imready
|
||||||
set laststatus $status
|
set laststatus $status
|
||||||
if test $status = 0
|
if test $status = 0
|
||||||
set result "success"
|
set result success
|
||||||
else
|
else
|
||||||
set result "failed with result $laststatus"
|
set result "failed with result $laststatus"
|
||||||
end
|
end
|
||||||
|
|||||||
9
.config/nvim/after/ftplugin/lua.lua
Normal file
9
.config/nvim/after/ftplugin/lua.lua
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
-- indent_type = "Spaces"
|
||||||
|
-- indent_width = 4
|
||||||
|
-- call_parentheses = "Always"
|
||||||
|
-- column_width = 120
|
||||||
|
|
||||||
|
vim.bo.tabstop = 4
|
||||||
|
vim.bo.softtabstop = 4
|
||||||
|
vim.bo.shiftwidth = 4
|
||||||
|
vim.bo.expandtab = true
|
||||||
@@ -1,49 +1,37 @@
|
|||||||
-- Bootstrap lazy.nvim
|
-- Bootstrap lazy.nvim
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||||
if vim.v.shell_error ~= 0 then
|
if vim.v.shell_error ~= 0 then
|
||||||
vim.api.nvim_echo({
|
vim.api.nvim_echo({
|
||||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||||
{ out, "WarningMsg" },
|
{ out, "WarningMsg" },
|
||||||
{ "\nPress any key to exit..." },
|
{ "\nPress any key to exit..." },
|
||||||
}, true, {})
|
}, true, {})
|
||||||
vim.fn.getchar()
|
vim.fn.getchar()
|
||||||
os.exit(1)
|
os.exit(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
vim.filetype.add({ extension = { todo = "todo" } })
|
||||||
|
|
||||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||||
-- loading lazy.nvim so that mappings are correct.
|
-- loading lazy.nvim so that mappings are correct.
|
||||||
-- This is also a good place to setup other settings (vim.opt)
|
-- This is also a good place to setup other settings (vim.opt)
|
||||||
vim.g.mapleader = ","
|
|
||||||
vim.g.maplocalleader = ","
|
|
||||||
|
|
||||||
vim.opt.number = true
|
|
||||||
vim.opt.relativenumber = false -- relative line numbers
|
|
||||||
vim.opt.tabstop = 4 -- tab width
|
|
||||||
vim.opt.shiftwidth = 4 -- indent width
|
|
||||||
vim.opt.expandtab = true -- spaces instead of tabs
|
|
||||||
vim.opt.smartindent = true -- smart indentation
|
|
||||||
vim.opt.termguicolors = true -- true color support
|
|
||||||
vim.opt.clipboard = "unnamedplus" -- system clipboard
|
|
||||||
|
|
||||||
-- vim.cmd.colorscheme 'kanagawa-dragon'
|
|
||||||
vim.opt.smoothscroll = true
|
|
||||||
|
|
||||||
-- Setup lazy.nvim
|
-- Setup lazy.nvim
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
spec = {
|
spec = {
|
||||||
-- add LazyVim and import its plugins
|
-- add LazyVim and import its plugins
|
||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
-- import your plugins
|
-- import your plugins
|
||||||
{ import = "plugins" },
|
{ import = "plugins" },
|
||||||
},
|
},
|
||||||
-- Configure any other settings here. See the documentation for more details.
|
-- Configure any other settings here. See the documentation for more details.
|
||||||
-- colorscheme that will be used when installing plugins.
|
-- colorscheme that will be used when installing plugins.
|
||||||
install = { colorscheme = { "kanagawa-dragon" } },
|
install = { colorscheme = { "bebop" } },
|
||||||
-- automatically check for plugin updates
|
-- automatically check for plugin updates
|
||||||
checker = { enabled = true },
|
checker = { enabled = true },
|
||||||
})
|
})
|
||||||
|
|||||||
38
.config/nvim/lua/config/options.lua
Normal file
38
.config/nvim/lua/config/options.lua
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
-- Default options: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||||
|
|
||||||
|
vim.g.mapleader = ","
|
||||||
|
vim.g.maplocalleader = ","
|
||||||
|
|
||||||
|
vim.opt.number = true
|
||||||
|
vim.opt.relativenumber = false -- relative line numbers
|
||||||
|
vim.opt.tabstop = 4 -- tab width in spaces
|
||||||
|
vim.bo.tabstop = 4 -- tab width in spaces
|
||||||
|
vim.opt.shiftwidth = 4 -- indent width
|
||||||
|
vim.bo.shiftwidth = 4 -- indent width
|
||||||
|
vim.opt.expandtab = true -- spaces instead of tabs
|
||||||
|
vim.opt.smartindent = true -- smart indentation
|
||||||
|
vim.opt.termguicolors = true -- true color support
|
||||||
|
vim.opt.clipboard = "unnamedplus" -- system clipboard
|
||||||
|
-- vim.opt.smoothscroll = true
|
||||||
|
vim.opt.conceallevel = 0 -- please don't hide stuff from me
|
||||||
|
vim.opt.wrap = true -- Enable line wrap
|
||||||
|
|
||||||
|
vim.opt.spelllang = { "en", "nl" }
|
||||||
|
|
||||||
|
-- Replace 'dayh' with a formatted day header
|
||||||
|
vim.cmd("iab <expr> dayh strftime('== %Y%m%d %A ======')")
|
||||||
|
-- Replace 'timeh' with a formatted date/time header
|
||||||
|
vim.cmd("iab <expr> timeh strftime('## %Y%m%d %a %H:%M:%S')")
|
||||||
|
|
||||||
|
-- vim.cmd("iabbrev <expr> ,d strftime('%Y-%m-%d')")
|
||||||
|
-- vim.cmd("iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')")
|
||||||
|
vim.cmd("inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()")
|
||||||
|
|
||||||
|
-- Enable autoread and set up checking triggers
|
||||||
|
vim.o.autoread = true
|
||||||
|
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter" }, {
|
||||||
|
command = "if mode() != 'c' | checktime | endif",
|
||||||
|
pattern = "*",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Colorscheme is set in its plugin file
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
return {
|
return {
|
||||||
{ "folke/tokyonight.nvim" },
|
-- { "folke/tokyonight.nvim" },
|
||||||
{ "rebelot/kanagawa.nvim" },
|
-- { "rebelot/kanagawa.nvim" },
|
||||||
{ "Shatur/neovim-ayu" },
|
-- { "Shatur/neovim-ayu" },
|
||||||
|
{ "ATTron/bebop.nvim" },
|
||||||
|
|
||||||
-- Configure LazyVim to load our favourite colorscheme
|
-- Configure LazyVim to load our favourite colorscheme
|
||||||
{
|
{
|
||||||
"LazyVim/LazyVim",
|
"LazyVim/LazyVim",
|
||||||
opts = {
|
opts = {
|
||||||
colorscheme = "kanagawa-dragon",
|
colorscheme = "bebop",
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
12
.config/nvim/lua/plugins/conform.lua
Normal file
12
.config/nvim/lua/plugins/conform.lua
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
return {
|
||||||
|
"stevearc/conform.nvim",
|
||||||
|
opts = {
|
||||||
|
|
||||||
|
formatters_by_ft = {
|
||||||
|
sh = { "shfmt" },
|
||||||
|
bash = { "shfmt" },
|
||||||
|
lua = { "stylua" },
|
||||||
|
fish = { "fish_indent" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
5
.config/nvim/lua/plugins/luarocks.lua
Normal file
5
.config/nvim/lua/plugins/luarocks.lua
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
return {
|
||||||
|
"vhyrro/luarocks.nvim",
|
||||||
|
priority = 1000, -- Very high priority is required, luarocks.nvim should run as the first plugin in your config.
|
||||||
|
config = true,
|
||||||
|
}
|
||||||
5
.config/nvim/lua/plugins/markdown-plus.lua
Normal file
5
.config/nvim/lua/plugins/markdown-plus.lua
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
return {
|
||||||
|
"yousefhadder/markdown-plus.nvim",
|
||||||
|
ft = "markdown",
|
||||||
|
opts = {},
|
||||||
|
}
|
||||||
23
.config/nvim/lua/plugins/markdown-toggle.lua
Normal file
23
.config/nvim/lua/plugins/markdown-toggle.lua
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
return {
|
||||||
|
"roodolv/markdown-toggle.nvim",
|
||||||
|
config = function()
|
||||||
|
require("markdown-toggle").setup({
|
||||||
|
-- cycle through checkboxes
|
||||||
|
cycle_box_table = true,
|
||||||
|
-- doing, done, wut, important, forwarded
|
||||||
|
box_table = { "/", "x", "?", "!", ">" },
|
||||||
|
keymaps = {
|
||||||
|
toggle = {
|
||||||
|
["<C-q>"] = "quote",
|
||||||
|
["<C-l>"] = "list",
|
||||||
|
["<Leader><C-l>"] = "list_cycle",
|
||||||
|
["<C-n>"] = "olist",
|
||||||
|
["<M-x>"] = "checkbox_cycle",
|
||||||
|
["<Leader><M-x>"] = "checkbox",
|
||||||
|
["<C-h>"] = "heading",
|
||||||
|
["<Leader><C-h>"] = "heading_toggle",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
7
.config/nvim/lua/plugins/snacks.lua
Normal file
7
.config/nvim/lua/plugins/snacks.lua
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
return {
|
||||||
|
"folke/snacks.nvim",
|
||||||
|
opts = {
|
||||||
|
scroll = { enabled = false },
|
||||||
|
-- other stuff
|
||||||
|
},
|
||||||
|
}
|
||||||
8
.config/nvim/lua/plugins/telescope.lua
Normal file
8
.config/nvim/lua/plugins/telescope.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
|
keys = {
|
||||||
|
{ "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find Files" },
|
||||||
|
{ "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Live Grep" },
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,80 +1,57 @@
|
|||||||
return {
|
return {
|
||||||
{
|
"nvim-treesitter/nvim-treesitter",
|
||||||
'nvim-treesitter/nvim-treesitter',
|
lazy = false, -- Keep false to ensure loading for Neo-tree
|
||||||
|
build = ":TSUpdate",
|
||||||
|
config = function()
|
||||||
|
local treesitter = require("nvim-treesitter")
|
||||||
|
treesitter.setup()
|
||||||
|
treesitter.install({
|
||||||
|
"java",
|
||||||
|
"c",
|
||||||
|
"lua",
|
||||||
|
"vim",
|
||||||
|
"vimdoc",
|
||||||
|
"query",
|
||||||
|
-- "elixir",
|
||||||
|
-- "heex",
|
||||||
|
"markdown",
|
||||||
|
"markdown_inline",
|
||||||
|
"bash",
|
||||||
|
"javascript",
|
||||||
|
"typescript",
|
||||||
|
"html",
|
||||||
|
"toml",
|
||||||
|
"yaml",
|
||||||
|
})
|
||||||
|
|
||||||
dependencies = {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
'nvim-treesitter/nvim-treesitter-textobjects',
|
pattern = {
|
||||||
'nvim-treesitter/nvim-treesitter-refactor',
|
"java",
|
||||||
},
|
"c",
|
||||||
|
"lua",
|
||||||
opts = {
|
"vim",
|
||||||
ensure_installed = {},
|
"vimdoc",
|
||||||
sync_install = 'false',
|
"query",
|
||||||
auto_install = 'true',
|
-- "elixir",
|
||||||
|
-- "heex",
|
||||||
highlight = {
|
"markdown",
|
||||||
enable = true,
|
"markdown_inline",
|
||||||
additional_vim_regex_highlighting = false,
|
"bash",
|
||||||
},
|
"javascript",
|
||||||
|
"typescript",
|
||||||
incremental_selection = {
|
"html",
|
||||||
enable = true,
|
"toml",
|
||||||
keymaps = {
|
"yaml",
|
||||||
init_selection = "gnn",
|
},
|
||||||
node_incremental = "grn",
|
callback = function()
|
||||||
scope_incremental = "grc",
|
-- syntax highlighting, provided by Neovim
|
||||||
node_decremental = "grm",
|
vim.treesitter.start()
|
||||||
},
|
-- folds, provided by Neovim (I don't like folds)
|
||||||
},
|
-- vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
|
||||||
|
-- vim.wo.foldmethod = 'expr'
|
||||||
indent = { enable = true },
|
-- indentation, provided by nvim-treesitter
|
||||||
|
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
||||||
textobjects = {
|
end,
|
||||||
select = {
|
})
|
||||||
enable = true,
|
end,
|
||||||
lookahead = true,
|
|
||||||
|
|
||||||
keymaps = {
|
|
||||||
|
|
||||||
-- You can use the capture groups defined in textobjects.scm
|
|
||||||
["af"] = "@function.outer",
|
|
||||||
["if"] = "@function.inner",
|
|
||||||
["ac"] = "@class.outer",
|
|
||||||
|
|
||||||
-- You can optionally set descriptions to the mappings (used in the desc parameter of
|
|
||||||
-- nvim_buf_set_keymap) which plugins like which-key display
|
|
||||||
["ic"] = { query = "@class.inner", desc = "Select inner part of a class region" },
|
|
||||||
|
|
||||||
-- You can also use captures from other query groups like `locals.scm`
|
|
||||||
["as"] = { query = "@scope", query_group = "locals", desc = "Select language scope" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
swap = {
|
|
||||||
enable = true,
|
|
||||||
swap_previous = { ["[."] = "@parameter.inner", },
|
|
||||||
swap_next = { ["]."] = "@parameter.inner", },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
refactor = {
|
|
||||||
highlight_definitions = {
|
|
||||||
enable = true,
|
|
||||||
-- Set to false if you have an `updatetime` of ~100.
|
|
||||||
clear_on_cursor_move = true,
|
|
||||||
},
|
|
||||||
highlight_current_scope = { enable = false },
|
|
||||||
smart_rename = {
|
|
||||||
enable = true,
|
|
||||||
-- Assign keymaps to false to disable them, e.g. `smart_rename = false`.
|
|
||||||
keymaps = {
|
|
||||||
smart_rename = "grr",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'nvim-treesitter/nvim-treesitter-textobjects',
|
|
||||||
'nvim-treesitter/nvim-treesitter-refactor',
|
|
||||||
}
|
}
|
||||||
|
|||||||
5
.config/nvim/stylua.toml
Normal file
5
.config/nvim/stylua.toml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
indent_type = "Spaces"
|
||||||
|
indent_width = 2
|
||||||
|
column_width = 120
|
||||||
|
[sort_requires]
|
||||||
|
enabled = true
|
||||||
1
.config/nvim/syntax/todo.vim
Symbolic link
1
.config/nvim/syntax/todo.vim
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../../.vim/syntax/todo.vim
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,6 +1,8 @@
|
|||||||
# Neovim
|
# Neovim
|
||||||
.config/nvim/lazy-lock.json
|
.config/nvim/lazy-lock.json
|
||||||
.config/nvim/lazyvim.json
|
.config/nvim/lazyvim.json
|
||||||
|
# Contains some personal stuff
|
||||||
|
.config/nvim/lua/plugins/obsidian.lua
|
||||||
|
|
||||||
# Vim
|
# Vim
|
||||||
.vim/bundle
|
.vim/bundle
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
set -g bell-action any
|
set -g bell-action any
|
||||||
|
|
||||||
# Default termtype. If the rcfile sets $TERM, that overrides this value.
|
# Default termtype. If the rcfile sets $TERM, that overrides this value.
|
||||||
set -g default-terminal tmux-256color-italic
|
set -g default-terminal "tmux-256color"
|
||||||
#set -g terminal-overrides ',tmux-256color-italic:Tc'
|
#set -g terminal-overrides ',tmux-256color-italic:Tc'
|
||||||
set -ga terminal-overrides ',*256col*:Tc'
|
set -ga terminal-overrides ',*256col*:Tc:RGB'
|
||||||
|
|
||||||
# Keep your finger on ctrl, or don't
|
# Keep your finger on ctrl, or don't
|
||||||
bind-key ^D detach-client
|
bind-key ^D detach-client
|
||||||
|
|||||||
9
.vimrc
9
.vimrc
@@ -633,7 +633,7 @@ set hidden
|
|||||||
set cryptmethod=blowfish2
|
set cryptmethod=blowfish2
|
||||||
|
|
||||||
" Ensure 256 colour support if the terminal supports it
|
" Ensure 256 colour support if the terminal supports it
|
||||||
if has("gui_running") || &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" || &term == "tmux-256color-italic"
|
if has("gui_running") || &term == "xterm" || &term == "xterm-256color" || &term == "screen-bce" || &term == "screen-256color" || &term == "screen" || &term == "tmux-256color" || &term == "tmux-256color-italic"
|
||||||
|
|
||||||
set background=dark
|
set background=dark
|
||||||
let g:enable_bold_font = 1
|
let g:enable_bold_font = 1
|
||||||
@@ -674,6 +674,13 @@ iab <expr> dayh strftime("== %Y%m%d %A ======")
|
|||||||
" Replace 'timeh' with a formatted date/time header
|
" Replace 'timeh' with a formatted date/time header
|
||||||
iab <expr> timeh strftime("## %Y%m%d %a %H:%M:%S")
|
iab <expr> timeh strftime("## %Y%m%d %a %H:%M:%S")
|
||||||
|
|
||||||
|
iabbrev <expr> ,d strftime('%Y-%m-%d')
|
||||||
|
iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')
|
||||||
|
inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()
|
||||||
|
" vim.cmd("iabbrev <expr> ,d strftime('%Y-%m-%d')")
|
||||||
|
" vim.cmd("iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')")
|
||||||
|
" vim.cmd("inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()")
|
||||||
|
|
||||||
" Fly through buffers instead of cycling
|
" Fly through buffers instead of cycling
|
||||||
" nnoremap <leader>l :ls<cr>:b<space>
|
" nnoremap <leader>l :ls<cr>:b<space>
|
||||||
|
|
||||||
|
|||||||
@@ -120,6 +120,9 @@ Rubik-MediumItalic.ttf
|
|||||||
Rubik-Medium.ttf
|
Rubik-Medium.ttf
|
||||||
Rubik-Regular.ttf'
|
Rubik-Regular.ttf'
|
||||||
|
|
||||||
|
FONTS_SUSE=$'SUSE-Italic-VariableFont_wght.ttf
|
||||||
|
SUSE-VariableFont_wght.ttf'
|
||||||
|
|
||||||
# https://github.com/eosrei/emojione-color-font/
|
# https://github.com/eosrei/emojione-color-font/
|
||||||
# FONTS_VARIOUS=$'EmojiOneColor-SVGinOT.ttf'
|
# FONTS_VARIOUS=$'EmojiOneColor-SVGinOT.ttf'
|
||||||
|
|
||||||
@@ -175,7 +178,7 @@ if [ -e ~/.dot_is_server ]; then
|
|||||||
while read -r FONT; do
|
while read -r FONT; do
|
||||||
echo "Copied font: $FONT"
|
echo "Copied font: $FONT"
|
||||||
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
|
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
|
||||||
done <<< "$FONTS_CODING"
|
done <<<"$FONTS_CODING"
|
||||||
else
|
else
|
||||||
echo "$PARENT_DIR, $SOURCE_DIR or $DEST_DIR not found, aborting"
|
echo "$PARENT_DIR, $SOURCE_DIR or $DEST_DIR not found, aborting"
|
||||||
fi
|
fi
|
||||||
@@ -190,7 +193,7 @@ if [ -e ~/.dot_is_server ]; then
|
|||||||
while read -r FONT; do
|
while read -r FONT; do
|
||||||
echo "Copied font: $FONT"
|
echo "Copied font: $FONT"
|
||||||
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
|
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
|
||||||
done <<< "$FONTS_JETBRAINS"
|
done <<<"$FONTS_JETBRAINS"
|
||||||
else
|
else
|
||||||
echo "$SOURCE_DIR or $DEST_DIR not found, aborting"
|
echo "$SOURCE_DIR or $DEST_DIR not found, aborting"
|
||||||
fi
|
fi
|
||||||
@@ -205,7 +208,7 @@ if [ -e ~/.dot_is_server ]; then
|
|||||||
while read -r FONT; do
|
while read -r FONT; do
|
||||||
echo "Copied font: $FONT"
|
echo "Copied font: $FONT"
|
||||||
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
|
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
|
||||||
done <<< "$FONTS_OVERPASS"
|
done <<<"$FONTS_OVERPASS"
|
||||||
else
|
else
|
||||||
echo "$SOURCE_DIR or $DEST_DIR not found, aborting"
|
echo "$SOURCE_DIR or $DEST_DIR not found, aborting"
|
||||||
fi
|
fi
|
||||||
@@ -220,7 +223,7 @@ if [ -e ~/.dot_is_server ]; then
|
|||||||
while read -r FONT; do
|
while read -r FONT; do
|
||||||
echo "Copied font: $FONT"
|
echo "Copied font: $FONT"
|
||||||
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
|
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
|
||||||
done <<< "$FONTS_GO"
|
done <<<"$FONTS_GO"
|
||||||
else
|
else
|
||||||
echo "$SOURCE_DIR or $DEST_DIR not found, aborting"
|
echo "$SOURCE_DIR or $DEST_DIR not found, aborting"
|
||||||
fi
|
fi
|
||||||
@@ -237,22 +240,25 @@ else
|
|||||||
while read -r FONT; do
|
while read -r FONT; do
|
||||||
FONT_FILE=$(basename "${SOURCE_DIR}/${FONT}")
|
FONT_FILE=$(basename "${SOURCE_DIR}/${FONT}")
|
||||||
install_font "$SOURCE_DIR/$FONT_FILE" "$DEST_DIR/$FONT_FILE"
|
install_font "$SOURCE_DIR/$FONT_FILE" "$DEST_DIR/$FONT_FILE"
|
||||||
done <<< "$FONTS_CODING"
|
done <<<"$FONTS_CODING"
|
||||||
while read -r FONT; do
|
while read -r FONT; do
|
||||||
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
||||||
done <<< "$FONTS_JETBRAINS"
|
done <<<"$FONTS_JETBRAINS"
|
||||||
while read -r FONT; do
|
while read -r FONT; do
|
||||||
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
||||||
done <<< "$FONTS_FUTURA"
|
done <<<"$FONTS_FUTURA"
|
||||||
while read -r FONT; do
|
while read -r FONT; do
|
||||||
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
||||||
done <<< "$FONTS_OVERPASS"
|
done <<<"$FONTS_OVERPASS"
|
||||||
while read -r FONT; do
|
while read -r FONT; do
|
||||||
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
||||||
done <<< "$FONTS_GO"
|
done <<<"$FONTS_GO"
|
||||||
while read -r FONT; do
|
while read -r FONT; do
|
||||||
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
||||||
done <<< "$FONTS_RUBIK"
|
done <<<"$FONTS_RUBIK"
|
||||||
|
while read -r FONT; do
|
||||||
|
install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
||||||
|
done <<<"$FONTS_SUSE"
|
||||||
# while read -r FONT; do
|
# while read -r FONT; do
|
||||||
# install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
# install_font "$SOURCE_DIR/$FONT" "$DEST_DIR/$FONT"
|
||||||
# done <<< "$FONTS_VARIOUS"
|
# done <<< "$FONTS_VARIOUS"
|
||||||
@@ -269,7 +275,7 @@ else
|
|||||||
echo "Deleting symlink $DEST_DIR/$FONT"
|
echo "Deleting symlink $DEST_DIR/$FONT"
|
||||||
rm "$DEST_DIR/$FONT"
|
rm "$DEST_DIR/$FONT"
|
||||||
fi
|
fi
|
||||||
done <<< "$FONTS_DELETE"
|
done <<<"$FONTS_DELETE"
|
||||||
# Just to be sure, clear and refresh your font cache and restart Firefox
|
# Just to be sure, clear and refresh your font cache and restart Firefox
|
||||||
fc-cache -f -v
|
fc-cache -f -v
|
||||||
echo
|
echo
|
||||||
|
|||||||
@@ -6,4 +6,8 @@ git pull
|
|||||||
cd ~/divaultwiki
|
cd ~/divaultwiki
|
||||||
git pull
|
git pull
|
||||||
#vim -c ":vsp planning_2015.todo" notes_2015.md notes_2014.md
|
#vim -c ":vsp planning_2015.todo" notes_2015.md notes_2014.md
|
||||||
vim -c "set nofoldenable" ~/divaultplan/planning_2026.todo ~/divaultphren/index.md ~/divaultwiki/home.md
|
if ! command -v nvim >/dev/null 2>&1; then
|
||||||
|
vim -c "set nofoldenable" ~/divaultplan/planning_2026.md
|
||||||
|
else
|
||||||
|
nvim -c "set nofoldenable" ~/divaultplan/planning_2026.md
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user