Skip to content

Instantly share code, notes, and snippets.

View aelobdog's full-sized avatar

Ashwin Godbole aelobdog

View GitHub Profile
;; aelobdog's emacs configuration
(setq-default evil-escape-key-sequence "jk")
(setq-default evil-escape-delay 0.2)
;; some stuff that I don't really get
(setq make-backup-files nil)
(setq auto-save-default nil)
(setq inhibit-startup-screen t)
(setq ring-bell-function 'ignore)
@aelobdog
aelobdog / init.lua
Created August 1, 2022 16:54
latest vim configuration
-- Single file lua config for neovim
------------------------------------
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
require('packer').startup(function(use)
-- packages installed
use 'wbthomason/packer.nvim'
use 'KabbAmine/yowish.vim'
use 'itchyny/lightline.vim'
use 'ziglang/zig.vim'
;; aelobdog's emacs configuration
(setq-default evil-escape-key-sequence "jk")
(setq-default evil-escape-delay 0.2)
(setq make-backup-files nil)
(setq auto-save-default nil)
(setq inhibit-startup-screen t)
(setq ring-bell-function 'ignore)
(set-frame-font "Jetbrains Mono-13" t)
@aelobdog
aelobdog / simple.lua
Created August 30, 2021 07:33
A simple guide on how to make your first LiteXL plugin
-- mod-version:1 -- lite-xl 1.16
-----------------------------------------------------------------------
-- NAME : Simple
-- DESCRIPTION: A simple guide on how to make your first LiteXL plugin
-- AUTHOR : Ashwin Godbole (aelobdog)
-- GOALS : To render some text inside the editor
-----------------------------------------------------------------------
-- Disclaimer :
@aelobdog
aelobdog / nobuild.c
Created August 27, 2021 10:38
My nobuild.c file that I use for hadela. Just a reference for myself :)
#include <stdio.h>
#include <string.h>
#define NOBUILD_IMPLEMENTATION
#include "./my_nobuild.h"
#include <stdlib.h>
#define CFLAGS "-Wall -Wextra -std=c89 -pedantic"
char* getAllCFiles() {
const char** fileList;
@aelobdog
aelobdog / my_nobuild.h
Created August 27, 2021 10:26
My modifications of https://github.com/tsoding/nobuild. Added support for providing arguments to CMD marcro which are strings formed of space separated sub-arguments; which I think is not a supported feature by default (I may be wrong though)
#ifndef NOBUILD_H_
#define NOBUILD_H_
#ifndef _WIN32
# define _POSIX_C_SOURCE 200809L
# include <sys/types.h>
# include <sys/wait.h>
# include <sys/stat.h>
# include <unistd.h>
# include <dirent.h>
@aelobdog
aelobdog / helloworld.lua
Created August 5, 2021 12:47
my first plugin for lite-xl : displays the text "hello, world!" on the top right of the screen
-- mod-version:1 -- lite-xl 1.16
-- NAME : helloworld
-- GOAL : to render some text to the top right corner of the editor.
-- import the lite-xl "core" package
local core = require "core"
local command = require "core.command"
local style = require "core.style"
local config = require "core.config"
@aelobdog
aelobdog / init.vim
Last active December 24, 2023 14:26
let mapleader = " "
let g:loaded_matchparen=1
set clipboard=unnamedplus
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set number
set belloff=all
set noshowmode