From 3fcf1a3a0affa5027c399c2ad05b8c573ebedb0e Mon Sep 17 00:00:00 2001 From: DrNuget Date: Thu, 16 Jan 2025 04:37:37 +0200 Subject: initial commit --- .config/foot/foot.ini | 26 +++++++++++++++ .config/nvim/init.lua | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 .config/foot/foot.ini create mode 100644 .config/nvim/init.lua (limited to '.config') diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini new file mode 100644 index 0000000..a9d99c4 --- /dev/null +++ b/.config/foot/foot.ini @@ -0,0 +1,26 @@ +font=monospace:size=8 + + +[colors] +alpha=0.8 +#Materia Dark +background=121212 +foreground=dfdfdf + +regular0=474747 #black +regular1=f44336 #red +regular2=4caf50 #green +regular3=ff9800 #yellow +regular4=1a73e8 #blue +regular5=9c27b0 #purple +regular6=0097a7 #cyan +regular7=ffffff #white + +bright0=474747 #black +bright1=f44336 #red +bright2=4caf50 #green +bright3=ff9800 #yellow +bright4=1a73e8 #blue +bright5=9c27b0 #purple +bright6=0097a7 #cyan +bright7=ffffff #white diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua new file mode 100644 index 0000000..139e733 --- /dev/null +++ b/.config/nvim/init.lua @@ -0,0 +1,92 @@ +vim.cmd([[ + set nu + set smarttab + set tabstop=4 + set shiftwidth=4 + set noexpandtab + set autoindent + filetype plugin indent on + + colorscheme vim + set notermguicolors + + set splitbelow splitright + + " Insert mode hjkl + inoremap + inoremap + inoremap + inoremap + + nnoremap : + + nnoremap o o + nnoremap O O + + " Some C Macros + autocmd Filetype c inoremap im intmain(){return0;} + autocmd Filetype c inoremap I #include<> + autocmd Filetype c inoremap w while(){}e2li + autocmd Filetype c inoremap f for(;;){}e2li + + " LaTex Macros + autocmd Filetype tex inoremap equ \begin{equation}\end{equation} +]]) + +vim.g.loaded_netrw = 1 +vim.g.loaded_netrwPlugin = 1 + +local function bootstrap_pckr() + local pckr_path = vim.fn.stdpath("data") .. "/pckr/pckr.nvim" + + if not (vim.uv or vim.loop).fs_stat(pckr_path) then + vim.fn.system({ + "git", + "clone", + "--filter=blob:none", + "https://github.com/lewis6991/pckr.nvim", + pckr_path + }) + end + + vim.opt.rtp:prepend(pckr_path) +end + +bootstrap_pckr() + +require("pckr").add{ + { + "christoomey/vim-tmux-navigator", + cmd = { + "TmuxNavigateLeft", + "TmuxNavigateDown", + "TmuxNavigateUp", + "TmuxNavigateRight", + "TmuxNavigatePrevious", + }, + keys = { + { "", "TmuxNavigateLeft" }, + { "", "TmuxNavigateDown" }, + { "", "TmuxNavigateUp" }, + { "", "TmuxNavigateRight" }, + { "", "TmuxNavigatePrevious" }, + }, + }, + { + "windwp/nvim-autopairs", + event = "InsertEnter", + config = function() + require("nvim-autopairs").setup {} + end + }, + { + "nvim-tree/nvim-tree.lua", + config = function() + require("nvim-tree").setup() + end + }, + { + "vimwiki/vimwiki" + } +} + -- cgit v1.2.3