Compare commits
7 Commits
87c96d2e64
...
master
Author | SHA1 | Date | |
---|---|---|---|
95da01a030 | |||
4d261ef46e | |||
2f81c2a5eb | |||
1c6d88d588 | |||
ff6c4bebd1 | |||
ffc46fbbe4 | |||
e86a5583cd |
@ -112,8 +112,7 @@ font:
|
||||
# - (Linux/BSD) monospace
|
||||
# - (Windows) Consolas
|
||||
#family: monospace
|
||||
# Next time: Check for Cascadia (Code|Mono) PL
|
||||
family: "Cascadia Code PL"
|
||||
family: "CaskaydiaCove NF" # Cascadia Code with patched nerd font
|
||||
|
||||
# if fallback is implemented
|
||||
#family: Roboto Mono for Powerline 11
|
||||
@ -124,7 +123,6 @@ font:
|
||||
#family: Monospace 16
|
||||
|
||||
# The `style` can be specified to pick a specific face.
|
||||
#style: Regular
|
||||
style: Regular
|
||||
|
||||
# Bold font face
|
||||
@ -166,7 +164,7 @@ font:
|
||||
#style: Bold Italic
|
||||
|
||||
# Point size
|
||||
size: 12.0
|
||||
size: 14.0
|
||||
|
||||
# Offset is the extra space around each character. `offset.y` can be thought
|
||||
# of as modifying the line spacing, and `offset.x` as modifying the letter
|
||||
|
@ -34,6 +34,7 @@ set -x QT_QPA_PLATFORMTHEME qt5ct
|
||||
set -x XDG_CONFIG_HOME "$HOME/.config"
|
||||
set -x XDG_CACHE_HOME "$HOME/.cache"
|
||||
set -x XDG_DATA_HOME "$HOME/.local/share"
|
||||
set -x XDG_STATE_HOME "$HOME/.local/state"
|
||||
set -x XDG_DESKTOP_DIR "$HOME/Schreibtisch"
|
||||
set -x XDG_DOWNLOAD_DIR "$HOME/Downloads"
|
||||
set -x XDG_TEMPLATES_DIR "$HOME/Vorlagen"
|
||||
|
@ -12,6 +12,11 @@ source "$XDG_CONFIG_HOME/aliases"
|
||||
# settings
|
||||
#fish_vi_key_bindings # enable vi mode
|
||||
|
||||
# MacOS specific config
|
||||
if [ (uname) = "Darwin" ] && status is-interactive;
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
end
|
||||
|
||||
# If running from tty1 start sway
|
||||
if test (tty) = "/dev/tty1"
|
||||
sway-run
|
||||
|
@ -79,7 +79,7 @@ function fish_prompt
|
||||
set arrow_color "$red"
|
||||
end
|
||||
|
||||
set -l arrow_user "$arrow_color➜ "
|
||||
set -l arrow_user "$arrow_color→ "
|
||||
if test "$USER" = 'root'
|
||||
set -e arrow_user
|
||||
set arrow_root "$arrow_color#"
|
||||
|
53
.config/nvim/init.vim
Normal file
53
.config/nvim/init.vim
Normal file
@ -0,0 +1,53 @@
|
||||
let mapleader = "\<space>"
|
||||
|
||||
" General editor config
|
||||
language en_US
|
||||
set number
|
||||
set scrolloff=3
|
||||
set sidescroll=3
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set cursorline
|
||||
set nowrap
|
||||
set ignorecase
|
||||
set smartcase
|
||||
set smartindent
|
||||
set mouse=a
|
||||
set showmatch
|
||||
set undofile
|
||||
set shortmess=I "disable intro message
|
||||
set splitbelow
|
||||
set splitright
|
||||
|
||||
" Key mapping
|
||||
nnoremap \\ :noh<cr> " Clear higlighting
|
||||
|
||||
set listchars=tab:▸\ ,eol:↵,space:.
|
||||
nnoremap <leader>l :set list!<CR>
|
||||
|
||||
" enable copy to clipboard
|
||||
map <Leader>y "+y
|
||||
map <Leader>p "*p
|
||||
|
||||
" Align block of text and keep them selected
|
||||
vmap < <gv
|
||||
vmap > >gv
|
||||
|
||||
|
||||
|
||||
" jk is escape
|
||||
inoremap jk <ESC>
|
||||
|
||||
" Jump to the last position when reopening a file
|
||||
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
||||
|
||||
" Trim Whitespaces
|
||||
fun! TrimWhitespace()
|
||||
let l:save = winsaveview()
|
||||
keeppatterns %s/\s\+$//e
|
||||
call winrestview(l:save)
|
||||
endfun
|
||||
command! TrimWhitespace call TrimWhitespace()
|
||||
|
||||
" Load lua config
|
||||
lua require('config')
|
19
.config/nvim/lua/config.lua
Normal file
19
.config/nvim/lua/config.lua
Normal file
@ -0,0 +1,19 @@
|
||||
-- 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", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Plugins
|
||||
require("lazy").setup({
|
||||
--"lukas-reineke/indent-blankline.nvim", --Indent guides for Neovim
|
||||
})
|
||||
|
Reference in New Issue
Block a user