diff options
Diffstat (limited to '.config')
| -rw-r--r-- | .config/foot/foot.ini | 26 | ||||
| -rw-r--r-- | .config/nvim/init.lua | 92 | 
2 files changed, 118 insertions, 0 deletions
| 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 <C-h> <Left> +	inoremap <C-j> <Down> +	inoremap <C-k> <Up> +	inoremap <C-l> <Right> + +	nnoremap <Space> : + +	nnoremap <Leader>o o<Esc> +	nnoremap <Leader>O O<Esc> + +	" Some C Macros +	autocmd Filetype c inoremap im<tab> int<Space>main()<Space>{<Enter><Enter>return<Space>0;<Enter>}<Up><Up><Tab> +	autocmd Filetype c inoremap I<tab> #include<Space><><Left> +	autocmd Filetype c inoremap w<tab> while()<Space>{<Enter>}<Esc><Up>e2li +	autocmd Filetype c inoremap f<tab> for(;;)<Space>{<Enter>}<Esc><Up>e2li + +	" LaTex Macros +	autocmd Filetype tex inoremap equ<tab> \begin{equation}<Enter><Enter>\end{equation}<Up><Tab> +]]) + +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 = { +			{ "<c-h>", "<cmd><C-U>TmuxNavigateLeft<cr>" }, +			{ "<c-j>", "<cmd><C-U>TmuxNavigateDown<cr>" }, +			{ "<c-k>", "<cmd><C-U>TmuxNavigateUp<cr>" }, +			{ "<c-l>", "<cmd><C-U>TmuxNavigateRight<cr>" }, +			{ "<c-\\>", "<cmd><C-U>TmuxNavigatePrevious<cr>" }, +		}, +	}, +	{ +		"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" +	} +} + | 
