Commit graph

1677 commits

Author SHA1 Message Date
6c56c38000 gitignore: Ignore some qutebrowser directories 2022-11-29 20:26:28 +05:30
4d970ce70c nvim: lsp: Fix error in LspDetach
Some language servers like HLS take longer to attach and if we exit
soon before LSP attach had a chance to finish (may be?), server
capabilities field does not seem to be valid in client object and
we get the below error. Check if it valid first.

Error detected while processing LspDetach Autocommands for "*":
Error executing lua callback: /home/core/.config/nvim/lua/lsp.lua:215: attempt to index field 'server_capabilities' (a nil value)
stack traceback:
        /home/core/.config/nvim/lua/lsp.lua:215: in function </home/core/.config/nvim/lua/lsp.lua:209>
        [C]: in function 'nvim_exec_autocmds'
        /usr/local/share/nvim/runtime/lua/vim/lsp.lua:1140: in function </usr/local/share/nvim/runtime/lua/vim/lsp.lua:1139>
Error executing lua callback: /home/core/.config/nvim/lua/lsp.lua:215: attempt to index field 'server_capabilities' (a nil value)
stack traceback:
        /home/core/.config/nvim/lua/lsp.lua:215: in function </home/core/.config/nvim/lua/lsp.lua:209>
        [C]: in function 'nvim_exec_autocmds'
        /usr/local/share/nvim/runtime/lua/vim/lsp.lua:1140: in function </usr/local/share/nvim/runtime/lua/vim/lsp.lua:1139>
2022-11-29 20:26:28 +05:30
b752f2241f nvim: plugins: Add support for cabal-fmt 2022-11-29 20:26:28 +05:30
e3be97b0e9 tut: Add configuration for tut Mastodon TUI client
Right now all settings are at defaults.
2022-11-29 20:26:28 +05:30
af51e676c0 mpv: Add configuration for mpv 2022-11-29 20:26:28 +05:30
d4383fb8a3 sway: Use workspace 6 as default for mpv 2022-11-29 20:26:28 +05:30
b5c491c6bd arch-packages: Update package list 2022-11-29 20:26:28 +05:30
42c06b8f2f nvim: after/plugin/nvim-lint: Drop mypy for Python linting 2022-11-25 16:54:15 +05:30
b0e55a6e60 nvim: after/plugin/word-column: Fix conflicting mapping with target
Since we now have more mapping available after dropping treesitter
text objects, we can fix this.

Fixes the below warning from targets check health.

targets: health#targets#check
========================================================================
  - WARNING: Conflicting mapping found:
    aq → <Plug>(textobj-wordcolumn-word-a)
    q → {'quote': [{'d': ''''}, {'d': '"'}, {'d': '`'}]}
  - WARNING: Conflicting mapping found:
    iq → <Plug>(textobj-wordcolumn-word-i)
    q → {'quote': [{'d': ''''}, {'d': '"'}, {'d': '`'}]}
2022-11-24 14:21:49 +05:30
397cac1050 nvim: plugins/treesitter: Use treehopper instead of textobjects
The whole bunch of treesitter text objects were difficult to remember
and we ended up rarely ever using any of the defined mappings.

treehopper simplifies things with a single mapping and hints.
2022-11-24 14:21:41 +05:30
ef4c3b7d30 nvim: Use more prominent white highlight for Comment
We seem to be making a lot of mistakes when it comes to handling
docs/comments in merge requests. Use a more prominent white colour
for the comment highlight group.
2022-11-23 12:42:06 +05:30
c000edde8c tmuxp: Move scratch pane to last
Now that we are starting base index at 1 for pane and windows, move
the scratch pane to last.
2022-11-23 12:42:06 +05:30
2e698be9d8 tmux: Start with base index as 1
Start numbering for panes and windows from 1, it is just convenient.
2022-11-23 12:42:06 +05:30
33b2d9bd12 sway: Increase font size for status bar 2022-11-23 12:42:06 +05:30
b2e35579e5 arch-packages: Update package list 2022-11-23 12:41:54 +05:30
8468d5c464 imapfilter: Filter mails from IETF mailing list 2022-11-16 15:05:37 +05:30
b294f196de nvim: after/plugin/nvim-lint: Use leader instead of local leader 2022-11-15 17:32:07 +05:30
0359b68fbf sway: Update wallpaper
Taken from
https://creatiflux.artstation.com/projects/xl3Nm
2022-11-14 19:01:14 +05:30
e958aa027f fish: functions: Add helper to list library dependencies 2022-11-07 16:26:23 +05:30
3c3a2c5130 nvim: init: Enable closeoff and linematch options for diffopt
linematch option got merged a few hours ago with this commit.
https://github.com/neovim/neovim/pull/14537

While at it, set closeoff as well.
2022-11-07 14:33:29 +05:30
c37bd7d451 nvim: init: Drop tmux configuration for copying to system clipboard
This is not required any more with this upstream MR merged.
https://github.com/neovim/neovim/pull/20936
2022-11-06 10:40:28 +05:30
a827d25ac4 fish: functions: Open dot graphs by default in xdot 2022-11-05 18:37:19 +05:30
be9e8449a0 sway: config.d: Assign xdot & GStreamer applications to workspace 5 2022-11-05 18:37:19 +05:30
8d9d230c18 nvim: after/plugin/fugitive: Update gd/D mappings to use difftool 2022-11-04 17:46:44 +05:30
ac6a09238e git: Enable updateRefs by default for rebase
The feature is explained here
https://github.blog/2022-10-03-highlights-from-git-2-38/#rebase-dependent-branches-with-update-refs
2022-11-04 17:46:44 +05:30
80b5fa04fb arch-packages: Update package list 2022-11-04 17:46:44 +05:30
f406db2645 environment: qt: Allow both Wayland and X for Qt 2022-11-04 09:54:55 +05:30
ba319f2bde nvim: after/plugin/gitsigns: Use on_attach callback to setup mappings
keymaps is deprecated.
2022-11-04 09:54:55 +05:30
d946db650e git/ignore: Ignore GStreamer ChangeLog files
It is annoying when ChangeLog files show up in ripgrep searches.
2022-11-03 13:05:58 +05:30
36e7845aa4 nvim: after/ftplugin: Disable spell check for certain file types
Now that we enable spell check globally disable it for certain file
and buffer types like dirvish etc.
2022-11-01 18:39:11 +05:30
7113f5f44d tmuxp: Change how home directory is specified 2022-11-01 18:39:06 +05:30
0c84a1d719 nvim: colors/yolokai: Remove obsolete TS highlight groups
See
https://github.com/nvim-treesitter/nvim-treesitter/issues/3572
https://github.com/nvim-treesitter/nvim-treesitter/pull/3656
2022-10-26 10:03:54 +05:30
b00e7b2b07 i3status-rust: Fix memory block 2022-10-17 15:29:58 +05:30
cf98fe7ac1 notmuch: Fix database path 2022-10-14 16:35:14 +05:30
75bc7b47d6 msmtp: Clean up gpg command invocation 2022-10-13 20:37:58 +05:30
538f698602 gitignore: Ignore some more gnupg entries 2022-10-13 19:47:32 +05:30
5abc061094 systemd: email: Use a specifier for home directory 2022-10-13 19:41:53 +05:30
e01bca9fec sway: Revert back to the old wallpaper
This reverts commit 9f43c8b7f3.
2022-10-11 21:04:36 +05:30
1e3eb7f7e0 fish: functions: Improve pipewire dot graph functions
xdot is more convenient to use and allows viewing dot file directly.
Generate svg only if requested.
2022-10-10 14:00:18 +05:30
11d04bc1d6 i3status-rust: Update to latest master
The configuration file format has changed and network manager block
has been dropped.

Also, we have now moved to iwd and dropped Network Manager completely
and along with it wpa_supplicant.
2022-10-09 11:12:50 +05:30
d6c36f8f9f git: ignore: Ignore compile_commands.json 2022-10-09 11:12:50 +05:30
41daaf5251 sway: Refactor sway configuration 2022-10-09 11:12:50 +05:30
08b769bf51 arch-packages: Update package list 2022-10-09 11:12:50 +05:30
7cb29dbd17 fish: functions: Add a helper to bring up or tear down VPN 2022-10-04 20:54:53 +05:30
715bb9c589 sway: Increase the status bar font size 2022-10-04 17:53:51 +05:30
68da927ad3 fish: conf.d: Drop setting of some environment variables
These have now been moved to environment.d and get set by systemd.

https://wiki.archlinux.org/title/Systemd/User#Environment_variables
2022-10-03 11:48:16 +05:30
0fcf2563ad environment: Set up environment variables via systemd
We were setting these in fish shell setup during login. Move them
here so that they can be correctly inherited by systemd services.

Without this, the tmux session service does not get the environment
variables which do not get set by the time tmux session service starts.

https://www.freedesktop.org/software/systemd/man/environment.d.html
2022-10-03 11:37:04 +05:30
fbae9fcea3 sway: Drop import-environment
We will take care of this with systemd environment.d setup and dbus activation
environment call in fish setup.
2022-10-03 11:24:00 +05:30
6d7a9fe9b3 nvim: lsp: Use vim.notify to report error 2022-10-02 17:04:25 +05:30
cb12ad28ab fish: Add fish-systemctl
https://github.com/wawa19933/fish-systemd

We do not use any plugin manager so just add this manually.
2022-10-01 09:56:18 +05:30