Commit Graph

60 Commits

Author SHA1 Message Date
Sanchayan Maity 547bf78b9b
nvim: plugins: Update plugin configuration
Do not make packer optional and remove use of after, cmd, config,
run and requires.

This is in preparation for testing if we can move off the plugin
manager and use in built packages support for handling packages.

While at it, drop unnecessary comments.
2023-02-09 15:57:47 +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 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 f4d02a793f
nvim: plugins: Drop dirvish and use dirbuf.nvim 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 b60afcf0e9 Revert "nvim: init: Do not use underline for diagnostic"
This reverts commit 572ff25150.
2022-12-12 10:11:20 +05:30
Sanchayan Maity 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
Sanchayan Maity 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
Sanchayan Maity 1ae279fd57 nvim: init: Enable spellsitter
Enable spell check globally and remove file type specific settings.
Use the new treesitter powered spellsitter.
2022-10-01 09:45:24 +05:30
Sanchayan Maity c626c1dac2 nvim: init: Enable British English spell language 2022-09-28 17:26:22 +05:30
Sanchayan Maity 7c8841431a nvim: init/treesitter: Enable bundled parsers
Now that neovim bundles parsers and highlight queries for Lua, Vimscript
and C by default, enable the bundled ones.

We can drop the entries from languages enabled via nvim-treesitter.

See
https://github.com/neovim/neovim/issues/14090#issuecomment-1237820552
2022-09-18 12:57:19 +05:30
Sanchayan Maity 4b18ecad6d nvim: Use ex commands as methods instead of string on vim.cmd 2022-09-17 10:56:51 +05:30
Sanchayan Maity 74183bb5ec nvim: init: Drop unnecessary require 2022-08-19 16:59:19 +05:30
Sanchayan Maity 4e60a3f53e nvim: plugins: Drop vimtex
For any future LaTeX writing needs we only intend to use
markdown/pandoc.
2022-07-27 12:21:48 +05:30
Sanchayan Maity 35f9bead79 nvim: init: filetype.lua is now default
See
https://github.com/neovim/neovim/issues/14090#issuecomment-1177933661
2022-07-08 09:18:19 +05:30
Sanchayan Maity 701bd244be Allow seamless navigation between vim and tmux splits 2022-03-27 16:12:08 +05:30
Sanchayan Maity ac29090179 nvim: init: Fix copy and paste with clipboard when using tmux 2022-03-17 16:59:53 +05:30
Sanchayan Maity 819494b4bb nvim: after/plugin/word-column: Change default mappings for textobj-word-column
We want to use vim-textobj-comment and hence need to make the ac mapping
available.
2022-02-08 15:47:57 +05:30
Sanchayan Maity 572ff25150 nvim: init: Do not use underline for diagnostic 2022-01-31 19:59:28 +05:30
Sanchayan Maity e807b1126a nvim: init: Disable Python3 provider 2022-01-19 10:31:37 +05:30
Sanchayan Maity c35ca910e4 nvim: plugins: Switch to gitlinker from vim-rhubarb
Also see commit a7b12dc6.
2022-01-15 15:53:43 +05:30
Sanchayan Maity eea27349ab nvim: plugins: Drop ferret
We hardly ever use this, so drop it.
2022-01-11 11:38:55 +05:30
Sanchayan Maity 9316c06aa2 nvim: init: Enable filetype.lua and disable filetype.vim
See the below threads
https://github.com/neovim/neovim/pull/16600
https://www.reddit.com/r/neovim/comments/rvwsl3/introducing_filetypelua_and_a_call_for_help/
https://neovim.discourse.group/t/introducing-filetype-lua-and-a-call-for-help/1806
2022-01-06 15:29:26 +05:30
Sanchayan Maity 64ac6ed70c nvim: init: Clean up unused vim-sneak settings 2022-01-04 15:15:47 +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 e488171b08 nvim: plugins: Add vim-matchup
We also enable the treesitter integration.
2021-12-06 10:28:30 +05:30
Sanchayan Maity 6033367d0b nvim: init: Update vim diagnostic config
The show_header option of vim.diagnostic.open_float has been renamed
to simply header and has different semantics (you can now specify a
custom header string and highlights). A value of false has the same
meaning as before.
https://github.com/neovim/neovim/pull/16328
2021-11-19 15:12:29 +05:30
Sanchayan Maity b9e6330245 nvim: init: Drop relativenumber
Now that we switched to hop, we do not need relativenumber.
2021-11-17 11:13:14 +05:30
Sanchayan Maity a7b12dc642 nvim: plugins: Enable GBrowse support
GBrowse also seems to at least need the autoloaded functions from netrw,
so we only disable netrw commands and mappings.

See https://github.com/tpope/vim-fugitive/issues/1010.
2021-11-08 12:31:17 +05:30
Sanchayan Maity 9b692e9a8e nvim: init: Disable virtual text for all diagnostics
They frequently get clipped beyond the window border due to being too
long and are not that helpful.

While at it, use our own preferable default sane options for the rest.
2021-10-20 13:01:21 +05:30
Sanchayan Maity bfb4d258b3 nvim: plugins: Switch to luasnip 2021-10-20 13:01:21 +05:30
Sanchayan Maity 27dec93c97 nvim: plugins: Switch to vim-dispatch from asyncdo
It has a few more things than asyncdo and automatically handles makeprg
not that setting a custom command to handle makeprg with asyncdo was
a problem but still. Should also be useful for fugitive git push,
believe it will use dispatch when available.
2021-10-17 18:30:31 +05:30
Sanchayan Maity 954c2ec1b3 nvim: init: Use a size of 2 for sign column
This helps to display both diagnostic signs and git gutter at the same
time. Use automatic resize keeping minimum at 1 and maximum at 2.
2021-10-16 17:31:29 +05:30
Sanchayan Maity e5f2fb0318 nvim: Use relative paths in dirvish
When yanking a path in dirvish buffer this setting allows us to get
relative paths instead of absolute which is default.
2021-10-12 14:16:37 +05:30
Sanchayan Maity ac8273d9fd nvim: init: Enable cursorline
A new cursorline option 'number' seems to be available now. This would
be useful compared to the whole line.
2021-10-10 11:57:15 +05:30
Sanchayan Maity b7036e5bfe nvim: plugins: Drop vim-togglelist
Was never really needed. Can just use open and close for quickfix and
location list.
2021-10-03 13:10:43 +05:30
Sanchayan Maity 4b8caad3b6 nvim: plugins: Drop cscope
Now that we have migrated to clang LSP for C, the only reason for
keeping it around was using it to find files in gst-build repository
which was structured in such a way that fzf and rg could not be used.
Now that GStreamer has moved to monorepo setup, we can use fzf and
rg just like in any project. No need for cscope anymore.
2021-09-30 14:20:42 +05:30
Sanchayan Maity 9de5a7de76 nvim: after/plugin/vsnip: Keymap settings are not required anymore
With the move to nvim-cmp these vsnip key mappings are not required
anymore. The completion and expansion gets taken care of by nvim-cmp.
Just move the vsnip_filetypes settings to init.
2021-09-27 18:46:55 +05:30
Sanchayan Maity 0aa93c6e9b nvim: init: Always enable the signcolumn
Have a fixed column for the diagnostics to appear in as this removes
the jitter when warnings/errors flow in.

Recommended here
https://sharksforarms.dev/posts/neovim-rust/
2021-09-26 12:06:16 +05:30
Sanchayan Maity 71f5c334f1 nvim: plugins: Drop nvim-peekup
Does not work correctly and keeps pasting in the first window instead of
where the cursor is placed.
2021-09-21 11:02:25 +05:30
Sanchayan Maity aee5337f55 nvim: init: Drop exrc and secure
exrc is deprecated and not recommended. Accordingly also drop secure.

See
https://github.com/neovim/neovim/issues/5784#issuecomment-506993689
2021-06-16 12:55:44 +05:30
Sanchayan Maity 8ad693d5bc nvim: init: Drop duplicate swapfile setting call 2021-06-10 18:30:31 +05:30
Sanchayan Maity fbce78c346 nvim: init: Use vim.o for setting all options
Works exactly the same as `set` after neovim/neovim#13479.
2021-05-29 13:32:43 +05:30
Sanchayan Maity 5462060452 nvim: plugins: Drop rainbow
Does not really work with treesitter.

There is nvim-ts-rainbow but it seems to have performance problems.
https://github.com/p00f/nvim-ts-rainbow/issues/5
2021-05-17 20:38:09 +05:30
Sanchayan Maity 58fe622b66 nvim: init: Align to look nice 2021-05-14 18:04:55 +05:30
Sanchayan Maity d2889ad053 nvim: init: Use lua style code for sneak settings 2021-05-12 18:38:59 +05:30
Sanchayan Maity 2eea1feb69 nvim: keymappings/plugins: Add support for marks and registers
We drop vim-system-copy and will explicitly use registers when required.
Add nvim-peekup to help with registers and vim-signature for marks. Some
additional helper bindings for working with marks are added as well.
2021-05-12 18:06:12 +05:30
Sanchayan Maity 048095bb2e nvim: Update mappings for ferret 2021-05-08 14:40:04 +05:30
Sanchayan Maity f030b39a3e nvim: init: Use zathura as PDF viewer 2021-05-03 19:58:06 +05:30
Sanchayan Maity b36197fbe8 nvim: init: Enable relativenumber 2021-05-02 13:29:38 +05:30