many changes that i am to lazy to put into individual commits
This commit is contained in:
@@ -1,8 +1,30 @@
|
||||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
|
||||
# overwrite alacritty package.... to the one with smooth scrolling....
|
||||
# for it you also need to add cursor.smooth_factor to the alacritty settings
|
||||
/*
|
||||
package = pkgs.alacritty.overrideAttrs ( final: prev: rec {
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "gregthemadmonk";
|
||||
repo = "alacritty";
|
||||
rev = "master";
|
||||
sha256 = "2XFHVqXR5RyXpdNd+oimrwGHl4k0qaMzLO+WVGWnQ/M=";
|
||||
};
|
||||
#cargoSha256 = "0000000000000000000000000000000000000000000000000000";
|
||||
#cargoSha256 = "";
|
||||
|
||||
cargoDeps = prev.cargoDeps.overrideAttrs (_: {
|
||||
inherit src;
|
||||
outputHash = "sha256-6Gt9ikXrcBXtxHRSvKPEoLoVituxc3rTVDoWlGR4V7A=";
|
||||
# ...
|
||||
});
|
||||
});
|
||||
#*/
|
||||
settings = {
|
||||
#cursor.smooth_factor = 0.5;
|
||||
font = {
|
||||
normal = {
|
||||
family = "Hack";
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
# typst ... TODO
|
||||
rust-vim
|
||||
dracula-vim
|
||||
lf-vim
|
||||
];
|
||||
|
||||
coc.enable = true;
|
||||
@@ -74,7 +75,14 @@
|
||||
:tmap <C-l> <Esc><C-l>
|
||||
|
||||
|
||||
cnoreabbrev ta Te
|
||||
nmap <C-n> :LfNewTab<ENTER>
|
||||
cnoreabbrev e LfCurrentFile
|
||||
let g:floaterm_width = 0.88
|
||||
let g:floaterm_height = 0.88
|
||||
|
||||
nmap <C-w> :wq<ENTER>
|
||||
imap <C-w> :wq<ENTER>
|
||||
cnoreabbrev ta LfNewTab
|
||||
cnoreabbrev hh TSHighlightCapturesUnderCursor
|
||||
|
||||
nnoremap ga :call CocActionAsync('doHover')<ENTER>
|
||||
@@ -97,7 +105,7 @@
|
||||
|
||||
cnoreabbrev s set filetype=javascriptreact
|
||||
|
||||
nnoremap <C-n> <cmd>lua require('renamer').rename()<cr>
|
||||
"nnoremap <C-n> <cmd>lua require('renamer').rename()<cr>
|
||||
|
||||
"cmap t <TAB>
|
||||
"cmap <C-j> <C-i>
|
||||
@@ -168,7 +176,7 @@
|
||||
""""""""""""""""""""""""""""" languages """""""""""""""""""""""""""""
|
||||
|
||||
" ###### nix ###### "
|
||||
function! Setup_typst()
|
||||
function! Setup_nix()
|
||||
" use spaces for indentation with nix .. so that multiline strings get stripped of tabs
|
||||
set smartindent
|
||||
set tabstop=2
|
||||
@@ -183,7 +191,7 @@
|
||||
|
||||
" ###### typst ###### "
|
||||
"Typst highlight customisation
|
||||
function Setup_typst()
|
||||
function! Setup_typst()
|
||||
" set highlight of Headings to not be underlined
|
||||
"autocmd TermClose * echo v:shell_error
|
||||
"au TermClose * call feedkeys("ii")
|
||||
@@ -232,7 +240,7 @@
|
||||
|
||||
" ###### js ###### "
|
||||
set tabstop=3 shiftwidth=3
|
||||
function Setup_js()
|
||||
function! Setup_js()
|
||||
|
||||
"autocmd Filetype js set tabstop=2 shiftwidth=2 expandtab
|
||||
set tabstop=4 shiftwidth=4
|
||||
@@ -244,7 +252,7 @@
|
||||
|
||||
|
||||
" ###### c ###### "
|
||||
function Setup_c()
|
||||
function! Setup_c()
|
||||
cnoreabbrev c call SaveAndCompile_c()
|
||||
endfunction
|
||||
|
||||
@@ -262,7 +270,7 @@
|
||||
let g:UltiSnipsJumpForwardTrigger = '<c-j>'
|
||||
let g:UltiSnipsJumpBackwardTrigger = '<c-k>'
|
||||
|
||||
function Setup_tex()
|
||||
function! Setup_tex()
|
||||
set tabstop=2 shiftwidth=2
|
||||
"command SaveAndCompilelatex
|
||||
cnoreabbrev c call SaveAndCompile_latex()
|
||||
@@ -306,7 +314,7 @@
|
||||
|
||||
" ###### vhdl ###### "
|
||||
|
||||
function Setup_vhdl()
|
||||
function! Setup_vhdl()
|
||||
function Vhdl_toggle_comment()
|
||||
let line=getline('.')
|
||||
let chars = split(line, '\zs')
|
||||
@@ -335,7 +343,7 @@
|
||||
|
||||
" ###### haskell ###### "
|
||||
|
||||
function Setup_haskell()
|
||||
function! Setup_haskell()
|
||||
set tabstop=4 shiftwidth=4 expandtab
|
||||
|
||||
"command SaveAndCompile_haskell
|
||||
@@ -374,7 +382,7 @@
|
||||
|
||||
" ###### rust ###### "
|
||||
|
||||
function Setup_rust()
|
||||
function! Setup_rust()
|
||||
|
||||
vnoremap s :call Rust_toggle_comment()<Enter>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
identityFile = "${secretsDir}/private-key-main";
|
||||
};
|
||||
hpm = {
|
||||
hostname = "192.168.1.6";
|
||||
#hostname = "192.168.1.6";
|
||||
user = "me";
|
||||
identityFile = "${secretsDir}/private-key-main";
|
||||
};
|
||||
@@ -40,6 +40,11 @@
|
||||
};
|
||||
};
|
||||
|
||||
home.file.".ssh/known_hosts".text = ''
|
||||
hpm ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ+FpaNOf+ao6RCa6e43vAHFcQZTGu45rIqAG3Vx0/M8
|
||||
hpm ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDbIgfPvt3NUWLxAv0jvWv7IUXHaR7k5M7Z1Kz24K+ZYuPRboHWNbcqGjik0kWDGwXejtTLkyiThK641Q0ffYp3bumKL3b3fBNLoRwHfVMHT9ZuM7e9nALJRa+0keBPTcO9kHliYJlEBiF4jHSZhVDPnZ0Qskg2m94AipKrhUC4KIbLFAERlDnFTxw8LTnzdfzs/n/80zH5tKq1TSlYd2XBIMlzYwxTGEgItifierQhncleVVUJ8IPLsSulMgCQu3BA8cGmdApbSe41FIieIsYzLEtJVnCRt0PymdYa1NdyngJ8ZWyXo6JjTCEHWv35WW05Oiw/tMyUDQoeebACe+Ve9WsYdb+0uttAQWZauODimGY/kRrwy2jCqDRoKjq+rWmTgLsXzuTr7sZ2nmlCIs0XkTXzwduo6ZJ1uNHYWTIjnC1in5uB5TMBlVQxEOdeLOIB9reHP7dajguCGLsOg/a7W/kx181w5MdXq5e9ch7Hp2eC9wBbwcy4EtmX0GAYSPV4GWGwunU92TFE5kg7haV23sdRfLf6ARrDLtsfvTzvoWWQFiO7AgrcOdSQtMUM0/egLUj0lg/A5fxV1pfXvxAF7TquNJCXhDYczCbej4PQM2WBe2eGY+BjY3gDHtUdzWEqhH+b6/Cz78yAa4aSWDB8D+Ejv0N0BZLaImYQhma5PQ==
|
||||
'';
|
||||
|
||||
home.file.".ssh/rpi/local".text = ''
|
||||
Host config
|
||||
HostName 192.168.1.2
|
||||
|
||||
Reference in New Issue
Block a user