Commit Graph

1085 Commits

Author SHA1 Message Date
Sanchayan Maity ad1c594245
nvim: after/plugin/nvim-lint: Drop pylint and use ruff 2023-01-26 16:55:44 +05:30
Sanchayan Maity f5d12372bd
Revert "nvim: plugins: Drop sleuth now that neovim has editorconfig built-in"
This reverts commit 058c37882d.

It is still helpful to have this it seems as without this working on
projects which do not have editorconfig becomes a pain.
2023-01-26 16:55:43 +05:30
Sanchayan Maity 3e5d0f0e13
nvim: after/ftplugin/markdown: Remove column limit 2023-01-21 20:05:03 +05:30
Sanchayan Maity a64baccca1
nvim: Reintroduce clipboard settings
clipboard support just seems to be completely flaky right now. Add
previous settings but instead of tmux specific commands use wayland
clipboard tools.

This should make it work everywhere. One downside of this setting is
we go back to polluting system clipboard every time & does not really
matter if we copy to + or * register. Both will result in a call to
wl-copy.
2023-01-19 14:15:13 +05:30
Sanchayan Maity f3190ffa0b
nvim: after/ftplugin/diff: spell is window local & not buffer local 2023-01-19 14:15:13 +05:30
Sanchayan Maity 558f03bede
nvim: after/plugin/gitlinker: Add videolan repo 2023-01-18 10:44:25 +05:30
Sanchayan Maity 674409573b
git/nvim: Drop diffconflicts
See the discussion on
https://github.com/whiteinge/diffconflicts/issues/26

Also
https://www.eseth.org/2020/mergetools.html
2023-01-17 10:09:29 +05:30
Sanchayan Maity 5ac754ea99
nvim: plugins: Drop exchange and word motion 2023-01-15 17:22:15 +05:30
Sanchayan Maity 058c37882d
nvim: plugins: Drop sleuth now that neovim has editorconfig built-in 2023-01-15 17:22:14 +05:30
Sanchayan Maity c9b189e7c5
nvim: Add editorconfig 2023-01-15 17:22:14 +05:30
Sanchayan Maity 6340486b46
nvim: Use nvim-lint for linting markdown with vale
This effectively reverts 3ea83c6 and f4ee744.
2023-01-15 17:22:10 +05:30
Sanchayan Maity c378e0a811
nvim: after/ftplugin/rust: Do not add library & toolchain source to buffer list 2023-01-15 12:19:21 +05:30
Sanchayan Maity b249fdefcc
Revert "Revert "nvim: init: Drop tmux configuration for copying to system clipboard""
This reverts commit 2d17a75972.
2023-01-14 18:58:51 +05:30
Sanchayan Maity a134cea609
nvim: Update packer 2023-01-14 18:58:51 +05:30
Sanchayan Maity 2d5fac776a
nvim: after/ftplugin: Move from vim to lua 2023-01-14 18:58:50 +05:30
Sanchayan Maity f4d02a793f
nvim: plugins: Drop dirvish and use dirbuf.nvim 2023-01-12 18:39:37 +05:30
Sanchayan Maity fcc992511e
nvim: plugins: Use our own fork of gitlinker
We want a fix and the author seems to be inactive, so use our own
fork with the patch applied till the upstream author becomes active
again.
2023-01-12 18:39:37 +05:30
Sanchayan Maity 2d17a75972
Revert "nvim: init: Drop tmux configuration for copying to system clipboard"
This reverts commit c37bd7d451.

Copying to system clipboard seems to have broken again and need to
revert this.

See https://github.com/neovim/neovim/issues/21636.
2023-01-08 11:08:13 +05:30
Sanchayan Maity 6e268b0d20
nvim: after/plugin/lightbulb: Update configuration 2023-01-07 10:36:23 +05:30
Sanchayan Maity d63a6aeef4
nvim: after/ftplugin: Move settings from {js/ts}.vim to {js/ts}.lua 2023-01-06 13:07:39 +05:30
Sanchayan Maity 0c9e0eb164
nvim: lsp: Disable semantic token highlighting
It produces somewhat bad syntax highlighting in some cases. For example,
in typescript, the variable and it's type annotation get the same colour.
2023-01-05 09:38:26 +05:30
Sanchayan Maity 8b6cf82abe
nvim: yolokai: Sync with upstream 2023-01-04 13:54:10 +05:30
Sanchayan Maity f68aed5238
nvim: lsp: Add mapping for clearing code lens 2023-01-03 20:04:27 +05:30
Sanchayan Maity d37cbd3cf0
nvim: after/ftplugin: Add language server for racket & scheme 2022-12-28 19:53:02 +05:30
Sanchayan Maity 47498f93fc
nvim: plugins: Add autopairs and parinfer 2022-12-28 19:51:34 +05:30
Sanchayan Maity 79183f7402
nvim: Use mappings for copying entire buffer & drop textobj-entire 2022-12-28 19:51:34 +05:30
Sanchayan Maity 20b608ad08
nvim: treesitter: Enable fennel, racket and scheme 2022-12-28 19:51:09 +05:30
Sanchayan Maity 4fe0311c3c
nvim: Update packer 2022-12-20 20:43:10 +05:30
Sanchayan Maity 09f609b26a
nvim: after/plugin/nvim-lint: Enable clang-tidy 2022-12-20 20:43:09 +05:30
Sanchayan Maity 0e7b1fd4bd nvim: colors/yolokai: Use WinSeparator instead of VertSplit 2022-12-12 16:23:50 +05:30
Sanchayan Maity 0c7d4372d1 nvim: colors/yolokai: Enable undercurl for underline diagnostic
This effectively reverts commit 59490d1.
2022-12-12 10:11:20 +05:30
Sanchayan Maity b60afcf0e9 Revert "nvim: init: Do not use underline for diagnostic"
This reverts commit 572ff25150.
2022-12-12 10:11:20 +05:30
Sanchayan Maity ac65aa26cb nvim: lsp: Use local leader for running code lens
We use <Leader>l for linting. This should have been done as part of
commit b294f19.
2022-12-12 10:11:20 +05:30
Sanchayan Maity d0b5159bd9 nvim: after/plugin/nvim-lint: Enable revive linter for go 2022-12-11 16:55:41 +05:30
Sanchayan Maity 9f415d9d4d nvim: after/ftplugin/go: Add go LSP support 2022-12-11 16:55:41 +05:30
Sanchayan Maity 9b00a19b52 nvim: after/ftplugin/rust: Format on save 2022-12-11 11:01:18 +05:30
Sanchayan Maity bc8904c94b nvim: after/plugin/nvim-lint: Use eslint_d instead of eslint 2022-12-08 16:23:51 +05:30
Sanchayan Maity 599a0f1d2d nvim: Update packer 2022-12-08 11:11:23 +05:30
Sanchayan Maity 4f8f2c8016 nvim: autoload/git: Set upstream when checking out remote branch 2022-12-06 19:15:03 +05:30
Sanchayan Maity a328fe3c5d nvim: after/ftplugin/sh: Add language server for bash 2022-12-06 12:49:30 +05:30
Sanchayan Maity db1d0492ce nvim: Update packer 2022-12-06 12:38:40 +05:30
Sanchayan Maity 6fa2ecc8e4 nvim: after/ftplugin/json: Add mapping to format with jq 2022-12-05 17:38:38 +05:30
Sanchayan Maity 44c5116299 nvim: Update packer 2022-11-29 20:26:28 +05:30
Sanchayan Maity 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
Sanchayan Maity b752f2241f nvim: plugins: Add support for cabal-fmt 2022-11-29 20:26:28 +05:30
Sanchayan Maity 42c06b8f2f nvim: after/plugin/nvim-lint: Drop mypy for Python linting 2022-11-25 16:54:15 +05:30
Sanchayan Maity 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
Sanchayan Maity 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
Sanchayan Maity 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
Sanchayan Maity b294f196de nvim: after/plugin/nvim-lint: Use leader instead of local leader 2022-11-15 17:32:07 +05:30