Commit Graph

1282 Commits

Author SHA1 Message Date
Sanchayan Maity e541b2d745 fish: Refactor fish shell configuration
- Drop starship. This also helps us to get rid of ttf-font-nerd install
  which is a dependency of starship.
- Source fnm env only once on login. This makes fish shell/terminal load
  much much faster. Add an alias to invoke fnm use easily.
- Set path or environment variables only when required path or binary
  exists.
- Introduce a function to profile fish easily.
- Borrow the fish prompt logic from Alexis King's configuration.
- Factor out key binding related settings.
- Make su launch fish.

Prompt and other ideas for clean up taken from
https://github.com/lexi-lambda/dotfiles/tree/master/fish
2021-12-29 18:54:57 +05:30
Sanchayan Maity c6a7ba29bd nvim: init.lua: Drop defaults
See :help nvim-defaults. The switchbuf setting was different than the
default though.

Drop cursorline settings as that doesn't make sense since we stopped
using relativenumber a while back.
2021-12-29 18:54:57 +05:30
Sanchayan Maity 93c0c7033b kitty: Drop srcery color scheme and use default 2021-12-28 19:24:45 +05:30
Sanchayan Maity cba7712eb2 nvim: after/plugin/nvim-lint: Enable languagetool for markdown & text 2021-12-28 19:24:45 +05:30
Sanchayan Maity 6b9f354f78 nvim: after/plugin: fzf/fzf-preview: Support searching visual selection 2021-12-28 19:24:45 +05:30
Sanchayan Maity 5abf204ae6 nvim: treesitter: Enable markdown 2021-12-28 19:24:45 +05:30
Sanchayan Maity 8ed965088a nvim: plugins: Drop vim-pandoc
Drop vim-pandoc as we want to move to syntax highlighting via
treesitter.
2021-12-28 19:24:45 +05:30
Sanchayan Maity 22e727b859 sway: Fix gst-play outputs to workspace 4
Use the command to figure out
swaymsg -t get_tree | jq | nvim -R

gst-play does not seem to get an app_id so relying on the title for the
same.
2021-12-28 19:24:45 +05:30
Sanchayan Maity dc00cca6ca fish: conf/fnm: Switch to required node version automatically 2021-12-28 19:24:45 +05:30
Sanchayan Maity ae61dca249 Switch back to JetBrains Mono
To make sure symbols still get rendered properly, we need to install
the ttf-nerd-fonts-symbols package. Then make sure the below symlink
is present to make it work.

ln -s /usr/share/fontconfig/conf.avail/10-nerd-font-symbols.conf /etc/fonts/conf.d/10-nerd-font-symbols.conf
2021-12-28 19:23:18 +05:30
Sanchayan Maity ab22c57805 nvim: after/plugin/lualine: Fix typo 2021-12-24 10:25:15 +05:30
Sanchayan Maity d74d65f667 fish: functions/gl: Allow passing an argument & support cherry picking a commit
This allows us to specify a directory or file to run this git log
command on. Also add support for cherry-picking a commit.
2021-12-23 13:56:03 +05:30
Sanchayan Maity 6ab7d9531d nvim: after/plugin/fugitive: Force local tag update on fetch 2021-12-22 12:55:51 +05:30
Sanchayan Maity 07b161acf6 nvim: plugins: Add wilder for suggestions in wildmenu 2021-12-21 19:56:52 +05:30
Sanchayan Maity c969cc7ed4 kitty: session: Do not launch tiny IRC automatically 2021-12-21 19:56:52 +05:30
Sanchayan Maity 6a62f22855 nvim: lsp: Lower the debounce interval 2021-12-21 09:26:36 +05:30
Sanchayan Maity 7e943ae1c5 nvim: lsp: Update Python Jedi language server configuration 2021-12-21 09:26:36 +05:30
Sanchayan Maity e661dded6c fish: functions: Add aliases for ls/exa and mkdir 2021-12-21 09:26:36 +05:30
Sanchayan Maity 5111831300 tmux: Use Ctrl-arrow keys to switch panes 2021-12-20 16:01:24 +05:30
Sanchayan Maity 64358a0170 fish: Add an alias to reload kitty configuration 2021-12-18 11:00:41 +05:30
Sanchayan Maity 5a6981e6f7 fish: functions: Use fzf git browse function for git log 2021-12-17 09:58:18 +05:30
Sanchayan Maity 755238d83c nvim: after/plugin/fzf: Add some more mappings for preview window 2021-12-16 20:23:36 +05:30
Sanchayan Maity 1896207312 fish: functions/fbr: Drop use of delta and xclip
We do not use delta anymore (neovim for everything) and instead of xclip
we need wl-copy in Wayland.

While at it, also add support for scrolling the preview.
2021-12-16 20:23:36 +05:30
Sanchayan Maity b7762f552d nvim: lsp: Enable text for LSP protocol completion item kind 2021-12-16 18:52:53 +05:30
Sanchayan Maity 2a8dd6343a nvim: after/plugin/lualine: Move diagnostics to the right of status line 2021-12-16 18:12:51 +05:30
Sanchayan Maity 664218addb git: ignore: Ignore cargo build directories 2021-12-16 18:12:51 +05:30
Sanchayan Maity 323880ab56 fontconfig: Use Hack as the fallback font 2021-12-16 13:34:27 +05:30
Sanchayan Maity 6349597241 pylint: Ignore invalid name and global statement lint (C0103 & W0603) 2021-12-15 19:54:20 +05:30
Sanchayan Maity 4d19532127 nvim: after/plugin/lualine: Use simplified symbols 2021-12-15 16:57:30 +05:30
Sanchayan Maity cafd726fcf wezterm: Add an initial wezterm configuration 2021-12-15 14:54:04 +05:30
Sanchayan Maity ecd77902a6 Purge conky and picom configuration 2021-12-15 10:05:03 +05:30
Sanchayan Maity 8e0fdbdaae nvim: Drop nvim-cmp
Auto-completion has mostly been annoying than of any actual use. Just
fancy annoying crap. Just use in built omni completion.
2021-12-14 15:44:33 +05:30
Sanchayan Maity 20c3b7dd7d nvim: after/plugin/snipcomp: LuaSnip companion plugin for omni completion
The reddit announcement
https://www.reddit.com/r/neovim/comments/rddugs/snipcomplua_luasnip_companion_plugin_for_omni/
2021-12-14 15:44:33 +05:30
Sanchayan Maity abc00380fc nvim: after/ftplugin: diff/git: Allow jumping between sections of diff
Use [c and ]c to jump between sections of diff.
2021-12-14 15:44:33 +05:30
Sanchayan Maity 168e03563d git: Use neovim as our diff tool and pager 2021-12-14 15:44:33 +05:30
Sanchayan Maity f839a3bfff fish: Add the most commonly used git aliases 2021-12-14 15:44:33 +05:30
Sanchayan Maity de0a69ee11 fish: Add an alias to ps_mem 2021-12-13 15:15:01 +05:30
Sanchayan Maity 5c6e1001b6 foot: Add an initial foot configuration 2021-12-13 13:53:00 +05:30
Sanchayan Maity 52cc61d9e9 fontconfig: Drop nerd font
We had kept the nerd font for our use of icons in status line in neovim
with nvim-web-devicons but we do not use that anymore.
2021-12-13 13:43:19 +05:30
Sanchayan Maity 7a9333a9e1 nvim: plugins: Drop nvim-web-devicons 2021-12-13 13:43:19 +05:30
Sanchayan Maity 47e8843882 fish: Drop use of nvr 2021-12-13 11:06:49 +05:30
Sanchayan Maity 0fbd8d256e nvim: lsp: Enable code action only when supported 2021-12-10 19:50:19 +05:30
Sanchayan Maity 1891eef80a nvim: lsp: Enable nvim-lightbulb only if code lens is available 2021-12-10 19:50:19 +05:30
Sanchayan Maity 0d0480a6b2 fish: Make all aliases into functions
Using alias inside ~/.config/fish/config.fish can slow down shell
start as each alias/function will be eagerly loaded.

alias is slow because it involves eval.

functions support lazy/auto loading.
https://fishshell.com/docs/current/tutorial.html#autoloading-functions
2021-12-10 19:50:19 +05:30
Sanchayan Maity b8ccdaacd6 fish: Move sourcing of fnm and starship to conf.d 2021-12-10 15:59:11 +05:30
Sanchayan Maity 78ab1afc24 fish: Drop all git aliases
We do everything with vim-fugitive. Drop all those git aliases. We never
used most of them anyways.
2021-12-10 15:49:47 +05:30
Sanchayan Maity f5fd6ddd55 fish: Move all functions to ~/.config/fish/functions 2021-12-10 15:39:44 +05:30
Sanchayan Maity 99482de9a4 fish: Add alias to fuzzy search RFC documents 2021-12-10 15:21:49 +05:30
Sanchayan Maity 591077efb4 nvim: Update Python related configuration 2021-12-10 14:09:12 +05:30
Sanchayan Maity b41584d996 nvim: lsp: Enable document highlight only when supported 2021-12-10 14:09:12 +05:30