GithubHelp home page GithubHelp logo

smbl64 / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 495 KB

My personal configurations files for Vim, Bash and whatnot.

Shell 13.14% Ruby 4.26% Emacs Lisp 4.30% Vim Script 61.33% Lua 16.77% Scheme 0.21%
vimrc bashrc dotfiles

dotfiles's Introduction

dotfiles

My dotfiles for different apps

Usage

  • vim folder must be linked to ~/.vim folder.
  • nvim folder must be linked to ~/.config/nvim folder.
  • alacritty folder must be linked to ~/.config/alacritty folder.
  • direnv folder must be linked to ~/.config/direnv folder.
  • tmux/tmux.conf must be linked to ~/.tmux.conf file.
  • bat folder must be linked to ~/.config/bat folder.
  • starship/starship.toml must be linked to ~/.config/starship.toml file.
  • ctags folder contains the configurations for universal ctags and must be linked to ~/.ctags.d folder.
  • postgres/psqlrc contains the configurations for psql command and must be linked to ~/.psqlrc file.
  • sqlite/sqliterc contains the configurations for sqlite command and must be linked to ~/.sqliterc file.
  • inputrc must be linked to ~/.inputrc file.
  • vscode folder's contents must be symlinked to the proper location on each OS. on macOS:
    ln -s $HOME/dotfiles/vscode/settings.json $HOME/Library/Application\ Support/Code/User/settings.json
    ln -s $HOME/dotfiles/vscode/keybindings.json $HOME/Library/Application\ Support/Code/User/keybindings.json
    ln -s $HOME/dotfiles/vscode/snippets $HOME/Library/Application\ Support/Code/User/snippets
    
  • ripgrep/ripgreprc must be linked to ~/.ripgreprc file.
  • emacs.d must be linked to ~/.emacs.d.
  • bash/bash_profile, bash/bashrc, and bash/bash_prompt must be linked to ~/.bash_profile, ~/.bashrc, and ~/.bash_prompt respectively.
  • bash/scripts must be added to the $PATH. This is already covered by the provided bash/bashrc file, if this repo is cloned into ~/scripts folder.

Inspiraton

dotfiles's People

Contributors

mohammad-eiq avatar smbl64 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

dotfiles's Issues

SQL rust language injection no longer working for raw string literals

I found the guide on your website here:
https://banisaeid.com/posts/rust-highlight-sql/
It wasn't working for raw string literals for me though. I see you are still using what you have on the website here.

After some tinkering I found a fix so I thought I would share.

; extends
; Adapted from https://banisaeid.com/posts/rust-highlight-sql/
((string_literal) @sql
 (#match? @sql "(SELECT|select|INSERT|insert|UPDATE|update|DELETE|delete).+(FROM|from|INTO|into|VALUES|values|SET|set).*(WHERE|where|GROUP BY|group by)?")
 (#offset! @sql 0 1 0 -1))

((raw_string_literal) @sql
 (#match? @sql "(SELECT|select|INSERT|insert|UPDATE|update|DELETE|delete).+(FROM|from|INTO|into|VALUES|values|SET|set).*(WHERE|where|GROUP BY|group by)?")
 (#offset! @sql 0 3 0 -2))

My theory is the offset needed to be different for raw strings so it skips the r#" and "#. I'm having a hard time finding documentation for this stuff though so my logic could be off, does seem to work though:
image

Feel free to close this issue as you see fit. Thanks for the guide, it got me most of the way there!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.