This is a SCRIPT-8 cassette.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://gist.github.com/maio/70353d23877ccc3e6c54e86f042fd891 | |
import com.intellij.openapi.actionSystem.AnAction | |
import com.intellij.openapi.actionSystem.AnActionEvent | |
import com.intellij.openapi.actionSystem.CommonDataKeys | |
import com.intellij.openapi.fileEditor.FileEditorManager | |
import com.intellij.openapi.vfs.VirtualFile | |
import liveplugin.PluginUtil.registerAction | |
import liveplugin.PluginUtil.show |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://gist.github.com/maio/61bae21d0420490a39a1f31338e291cf | |
import com.intellij.openapi.keymap.KeymapManager | |
import liveplugin.PluginUtil.assignKeyStroke | |
import liveplugin.implementation.Actions | |
val keymap = KeymapManager.getInstance().activeKeymap | |
// Remove ijkl plugin shortcuts which we don't want | |
keymap.removeShortcut("RenameElement", Actions.asKeyboardShortcut("alt R")!!) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.intellij.openapi.project.DumbAware | |
import com.intellij.find.FindManager | |
import com.intellij.find.FindModel | |
import com.intellij.openapi.actionSystem.AnAction | |
import com.intellij.openapi.actionSystem.AnActionEvent | |
import com.intellij.openapi.actionSystem.CommonDataKeys | |
import com.intellij.psi.search.GlobalSearchScope | |
import liveplugin.* | |
class FindInCurrentFileAction: AnAction("Find in Current File..."), DumbAware { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"keymap": [ | |
{ | |
"key": "alt-backspace", | |
"trigger": "undo" | |
}, | |
{ | |
"key": "alt-h", | |
"trigger": "go-to-declaration" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- | |
;; Place your private configuration here! Remember, you do not need to run 'doom | |
;; sync' after modifying this file! | |
;; Some functionality uses this to identify you, e.g. GPG configuration, email | |
;; clients, file templates and snippets. | |
(setq user-full-name "Marian Schubert" | |
user-mail-address "marian.schubert@gmail.com") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.vim/plugged') | |
Plug 'tpope/vim-surround' | |
Plug 'tpope/vim-fugitive' | |
Plug 'tpope/vim-repeat' | |
Plug 'tpope/vim-unimpaired' | |
Plug 'tpope/vim-commentary' | |
Plug 'easymotion/vim-easymotion' | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'junegunn/fzf' | |
Plug 'junegunn/fzf.vim' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn git-log-commits [s] | |
"Split standard git log output to commits" | |
(setv items (.split s "\ncommit ")) | |
(if (< (len items) 2) | |
items | |
(+ [(first items)] | |
(lfor item (rest items) f"commit {item}")))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn foobar [] | |
"foobar!") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; UI | |
(setq inhibit-startup-screen t) | |
(scroll-bar-mode -1) | |
(tool-bar-mode -1) | |
(tooltip-mode -1) | |
(menu-bar-mode -1) | |
(set-frame-font "Iosevka 18" nil t) | |
(toggle-frame-maximized) | |
;; Package configs |
NewerOlder