Commit graph

340 commits

Author SHA1 Message Date
Bruno BELANYI e46d347c61 [ADD][TRIDACTYL] Hint at item pages on Hacker News 2019-10-19 05:46:29 +02:00
Bruno BELANYI f8112777ad [ADD][VIM] Better vim-unimpaired mappings
I use a french layout keyboard ('AZERTY' layout), which does not have
the greatest access to '[' and ']'.
2019-10-19 05:46:29 +02:00
Bruno BELANYI ca7ae65732 [ADD][VIM] Git-messenger plug-in to read commits 2019-10-19 05:46:29 +02:00
Bruno BELANYI 78d5a77552 [UPDATE][VIM] Remove unused fugitive mappings 2019-10-19 05:46:29 +02:00
Bruno BELANYI c06f7c9faf [UPDATE][SHELL] Remove ureload alias 2019-10-19 05:46:29 +02:00
Bruno BELANYI 90be3d4dba [ADD][VIM] Use flags from compile_command with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI 809a348490 [ADD][VIM] Mappings to navigate quickfix history
It also supports navigating the location list history when inside a
location list.

The autoload plug-in idea was taken from this Vimways article:
<https://vimways.org/2018/colder-quickfix-lists/>
2019-10-19 05:46:29 +02:00
Bruno BELANYI 1a72e67273 [UPDATE][VIM] Move rust plugin to language section 2019-10-19 05:46:29 +02:00
Bruno BELANYI cae382e0b4 [ADD][VIM] FastFold plugin 2019-10-19 05:46:29 +02:00
Bruno BELANYI 30ea1eed72 [ADD][VIM] Enable US English spelling by default 2019-10-19 05:46:29 +02:00
Bruno BELANYI 2e6608668e [ADD][VIM] More fuzzy finder mappings 2019-10-19 05:46:29 +02:00
Bruno BELANYI d4413112e9 [ADD][ZSH] Bind delete key 2019-10-19 05:46:29 +02:00
Bruno BELANYI 9b71074511 [UPDATE][GIT] Re-order configuration file
I want the core and the user settings on top, all but the alias sections
and sections added by plug-ins to be in alphabetical order, then the
aliases, followed by plug-in related settings (such as git-lfs).
2019-10-19 05:46:29 +02:00
Bruno BELANYI 81ee5d3f67 [ADD][GIT] Use patience diff by default
The patience diff usually results in better patches than the default
myers algorithm.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 826db6d2de [ADD][GIT] Better diff colors
I like having some colors for the meta-information shown during
diff operations.

Using the `diff-hightlight` script, you can get character-level
highlights of your diffs (just like GitHub and GitLab).
2019-10-19 05:46:29 +02:00
Bruno BELANYI b02cec8fff [ADD][VIM] Use spell-checking for git commit 2019-10-19 05:46:29 +02:00
Bruno BELANYI 97c4207b38 [UPDATE][SHELL] Make less clear screen on start-up
If you don't have this option, less will just start outputting from
wherever your cursor was (so the line where you were writing your
command), but any movement would make it snap to the top of the
terminal.

This makes it clear the screen before doing its first draw, making the
output systematically start from the top.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 1944ed578d [ADD][VIM] Use pyls in Pipenv with automatically
ALE can detect if the file you're currently editing is inside a Pipenv
environment, and use the pyls inside your environment to have access to
module definitions.

This doesn't launch pyls inside Pipenv when there's no environment
active for your file.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 4753e32c30 [ADD][VIM] Shellcheck options for ALE
I want shellcheck to detect which shell is most appropriate on the `sh`
filetype, but explicitly use the `bash` dialect on `bash` and `zsh`
filetypes.

I also really don't like nullary conditions in shell, so I'll screen for
those too.

I might turn on the 'quote-safe-variables' check too, because I think
quoting variables is a good habit to take.
2019-10-19 05:46:29 +02:00
Bruno BELANYI f747005981 [ADD][VIM] Use shfmt with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI fde97e5b66 [FIX][SHELL] Modify PATH at login only
It's cleaner to only export my modified PATH when I'm logging in,
instead of doing it at each shell launch.

Because Zsh and Bash don't use the same mechanism to let you know you
are in a login session, you gotta check both separately. But that
doesn't matter because lightdm doesn't launch `sh` as a login shell
anyway... So the condition is super messy.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 02ad16c4e8 [ADD][VIM] Pandoc to markdown ALE alias 2019-10-19 05:46:29 +02:00
Bruno BELANYI bdb53424c3 [ADD][VIM] Use dfmt fixer with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI 19f1baddfe [ADD][TRIDACTYL] Search related mappings 2019-10-19 05:46:29 +02:00
Bruno BELANYI 871c6fb299 [ADD][VIM] Use jq fixer with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI c108143526 [UPDATE][VIM] More ALE linters for python
I de-activated the pycodestyle module for pyls because I already use
flake8 to do that job.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 9f397c4c28 [ADD] Python isort configuration 2019-10-19 05:46:29 +02:00
Bruno BELANYI 5a13a35402 [ADD][VIM] Use rustfmt fixer with ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI fb646c8b74 [ADD][VIM] Rust options for ALE 2019-10-19 05:46:29 +02:00
Bruno BELANYI 00ab079405 [UPDATE][REDSHIFT] Lower night temperature
I got used to having a red screen during the night on my phone, I can
now have a lower temperature on my computer screen without it bothering
me.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 132a035443 [ADD][I3] Make htop floating by default
When launched from a program launcher, the title of an htop terminal is
htop, unlike when it is launched from the command line.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 57a48b3c05 [ADD][VIM] Local leader mapping
I don't use the '!' command to filter text through an external program.
If I need that functionality I use visual mode and a ':!' command.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 5e5b8271c2 [ADD][VIM] Don't list Netrw buffers
I don't want to show a long list of directories in my buffer list,
2019-10-19 05:46:29 +02:00
Bruno BELANYI b7579b0a9b [UPDATE][VIM] Use 88 columns limit on python files 2019-10-19 05:46:29 +02:00
Bruno BELANYI 7b0f8f360a [ADD][GITIGNORE] Ignore non-personal vim files
Now that I'm tracking the '.vim' folder, I need to ignore all the files
that were automatically populated inside it by plug-ins or spelling.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 5184dd5a56 [ADD][VIM] Use black fixer with ALE
This introduces the '.vim' folder to my dot-files repository. I'll have
to think about splitting my '.vimrc' file into multiple files inside the
'.vim' folder.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 0d04061a80 [ADD] Flake8 configuration file
Using 'line-length=80' and flake8-bugbear's B950 warning, I respect
black's formatting of 88 columns max.

The T4 category is related to mypy lints, using the 'flake8-mypy`
plugin.

The max complexity is supposed to make you write shorter functions with
less complexity, using the cyclomatic complexity heuristic.

This file is almost directly taken from black's own flake8
configuration, because I'm using it as a linter and I mostly agreed with
its settings.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 558a138f2e [ADD][VIM] Compile flags for C/C++ in ALE
I usually code in C99 and C++17 because that's EPITA's guidelines.

I'll have to check out the new C11/C18 features (notably threading and
type genericity...) someday.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 4ae3eda5f9 [ADD][VIM] Basic ALE settings 2019-10-19 05:46:29 +02:00
Bruno BELANYI 7940274ad0 [ADD][VIM] ALE and linting lighline integration
I changed the theme of lightline's statusline to wombat because the
errors did not have any color using gruvbox.
2019-10-19 05:46:29 +02:00
Bruno BELANYI a4f1c22e77 [ADD][I3] Start udiskie at launch 2019-10-18 22:17:20 +02:00
Bruno BELANYI da789e2d5d [UPDATE][SHELL] Consistent style in profile
I prefer using the '$(...)' sub-shell notation instead of back-ticks. I
also try to systematically quote my variables if they're not numbers.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 1e15b5c017 [FIX][SHELL] Add missing semi-colons in profile
Groups needs to have a command-list ending in a semi-colon to register
the ending brace. I did not encounter this issue with Zsh but do have an
error when sourcing the file with Bash.
2019-10-18 22:17:20 +02:00
Bruno BELANYI cef75e94cd [UPDATE][I3] Launch rofi without dmenu theme
I want to try it out for a bit, see which one I prefer.

I'll keep my own dmenu theme for now though, because I still think it
might be more adapted in certain use-cases.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 787c56f789 [UPDATE][URxvt] Use the same terminal font
Even though I don't think I'll be using URxvt anymore, I still want my
config to use the same font and color theme as XTerm and Termite.

I'll probably remove the URxvt settings soon anyway.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 18c4a3bdc8 [ADD][X] XTerm font configuration 2019-10-18 22:17:20 +02:00
Bruno BELANYI 0c159d39a3 [UPDATE][X] Use wildcard for theme colors
I want the theme to be picked up by both Xterm and URxvt.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 113928f08e [UPDATE][I3] Make rofi use dmenu skin
I wanted the launcher to take the same size as my previous dmenu
launcher when invoked with `mod+d` or `mod+Shift+d` instead of my usual
rofi theme.

The default dmenu theme is too big so I adapted it for my needs.
2019-10-18 22:17:20 +02:00
Bruno BELANYI 4563bd4038 [UPDATE][I3] Use rofi program launcher 2019-10-18 22:17:20 +02:00
Bruno BELANYI ed113cfdb0 [ADD] Rofi configuration file 2019-10-18 22:17:20 +02:00