Commit Graph

1201 Commits

Author SHA1 Message Date
Sanchayan Maity 701bd244be Allow seamless navigation between vim and tmux splits 2022-03-27 16:12:08 +05:30
Sanchayan Maity 758e624b07 nvim: autocmd: Do not run AnsiEsc on loading of log files 2022-03-27 16:12:08 +05:30
Sanchayan Maity 1325929554 nvim: after/plugin/fzf: Use tmux popups when in tmux 2022-03-24 09:36:04 +05:30
Sanchayan Maity 7ad8a95d21 Revert "nvim: plugins: Switch to fzf-lua"
This reverts commit 447d4e50b5.

Switch back to fzf.vim as it supports tmux popups.
2022-03-24 09:16:50 +05:30
Sanchayan Maity 9352f12192 Revert "nvim: after/plugin/fzf-lua: Update actions for commits"
This reverts commit b10ba79940.

Reverting this as a step to bring back fzf.vim.
2022-03-24 09:16:50 +05:30
Sanchayan Maity 2ed668e2c1 nvim: Update packer 2022-03-24 09:16:50 +05:30
Sanchayan Maity d9746a1c73 nvim: statusline: Decrease the truncation width for git status 2022-03-23 10:28:22 +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 2e8f138f8b nvim: plugin: Add a plugin to help with epoch timestamp conversions
We look at logs frequently these days with epoch timestamps and this
helps with getting the human readable timestamp and vice versa.
2022-03-14 13:36:45 +05:30
Sanchayan Maity 131e5bb364 nvim: after/plugin/snipcomp: Lazy load LuaSnip
LuaSnip needs to be lazy loaded now else it slows down the startup.
2022-03-14 13:36:45 +05:30
Sanchayan Maity 5c6eebf9b5 nvim: autocmd: Fix cursor shape on exiting nvim
This is required when using foot.

See related issue
https://codeberg.org/dnkl/foot/issues/797
https://codeberg.org/dnkl/foot/issues/798
2022-03-11 10:32:00 +05:30
Sanchayan Maity 39f9628197 nvim: autocmd: Refactor the way we call auto command API 2022-03-06 17:48:50 +05:30
Sanchayan Maity 28049ed540 nvim: lsp: Use the new auto command API 2022-03-06 14:46:27 +05:30
Sanchayan Maity 39acdb222f nvim: statusline: Use the new auto command API 2022-03-04 20:19:20 +05:30
Sanchayan Maity 0246931b56 nvim: after/plugin/statusline: Add a git branch ahead behind component
Taken from
https://www.reddit.com/r/neovim/comments/t48x5i/git_branch_aheadbehind_info_status_line_component
2022-03-04 10:14:46 +05:30
Sanchayan Maity 16d3b05a8f nvim: plugins: Drop nvim-gps 2022-03-02 10:46:45 +05:30
Sanchayan Maity 564448abc7 nvim: Update packer 2022-03-02 09:06:17 +05:30
Sanchayan Maity ca7172b14a nvim: autocmd: Use the new auto command API 2022-03-02 09:06:17 +05:30
Sanchayan Maity b10ba79940 nvim: after/plugin/fzf-lua: Update actions for commits 2022-02-26 13:26:11 +05:30
Sanchayan Maity 6fb0c62a4b nvim: yolokai: Change the hint background
This improves the color highlight for inlay hints.
2022-02-22 13:43:29 +05:30
Sanchayan Maity 96bc70fff8 Revert "nvim: autoload/git: Fix git log when current branch is master/main"
This reverts commit da5671b5ae.

The commit actually did not handle all cases correctly.
2022-02-19 14:14:40 +05:30
Sanchayan Maity 795fd7f36a nvim: treesitter: Enable HTML 2022-02-17 15:08:04 +05:30
Sanchayan Maity 2fd1922193 nvim: Update packer 2022-02-16 09:54:45 +05:30
Sanchayan Maity 6bf989871e nvim: statusline: Fix tree-sitter status
Fixing based on file type was not good enough. Check for error
return and act accordingly.
2022-02-13 14:01:03 +05:30
Sanchayan Maity ac3039d64b nvim: after/plugin/fugitive: Improve git stash command mapping 2022-02-13 14:01:03 +05:30
Sanchayan Maity 6dd369b137 nvim: autoload/git: Use diff instead of difftool 2022-02-12 10:18:28 +05:30
Sanchayan Maity 447d4e50b5 nvim: plugins: Switch to fzf-lua 2022-02-10 21:31:57 +05:30
Sanchayan Maity da5671b5ae nvim: autoload/git: Fix git log when current branch is master/main 2022-02-10 21:31:57 +05:30
Sanchayan Maity 4edfa99a21 nvim: autoload/ftplugin: git: Add helper for format-patch 2022-02-10 21:31:57 +05:30
Sanchayan Maity 9c16443e10 nvim: statusline: Handle some more cases for filename & treesitter status 2022-02-10 21:31:57 +05:30
Sanchayan Maity 7d70992eae nvim: after/plugin/fugitive: Add mapping to help with review 2022-02-10 21:20:51 +05:30
Sanchayan Maity 05bbba29a9 nvim: after/plugin/fugitive: Mapping for diffing in a new tab in Gstatus 2022-02-10 21:20:51 +05:30
Sanchayan Maity 316c17ad13 nvim: after/plugin/fugitive: Improve the diff commands
There was no need for the tab command shenanigans.
2022-02-10 21:20:51 +05:30
Sanchayan Maity 3c62e9f330 nvim: Update packer 2022-02-10 13:00:11 +05:30
Sanchayan Maity 66af0bbd9e nvim: after/plugin/statusline: Use nvim-gps for statusline 2022-02-09 18:14:12 +05:30
Sanchayan Maity f316cad185 nvim: Update packer 2022-02-08 15:47:57 +05:30
Sanchayan Maity 1484315caa nvim: plugins: Add textobj-comment 2022-02-08 15:47:57 +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 8b424a2533 nvim: after/plugin/statusline: Use nvim_set_hl API
See https://github.com/neovim/neovim/pull/17187.
2022-02-08 15:47:57 +05:30
Sanchayan Maity 60478a59b0 nvim: after/plugin/fugitive: Make diff & difftool usage painless 2022-02-08 15:47:57 +05:30
Sanchayan Maity 73ceafcda2 nvim: keymappings: Make Esc cancel highlight search as well 2022-02-08 15:47:57 +05:30
Sanchayan Maity 59490d131a nvim: colors/yolokai: Disable under curl for diagnostics
While we like having undercurl for diagnostics, most code bases are
garbage and linters/LSP show warnings all over the place. Seeing the
screen filled with red undercurls feels jarring. Disable them. Can't
expect people to do things properly.
2022-01-31 19:59:28 +05:30
Sanchayan Maity 572ff25150 nvim: init: Do not use underline for diagnostic 2022-01-31 19:59:28 +05:30
Sanchayan Maity 8ff00d9cb0 nvim: after/plugin/nvim-lint: Enable linting for yaml 2022-01-28 16:35:55 +05:30
Sanchayan Maity 2c9b7bfeb1 Revert "nvim: treesitter: Remove verilog support"
This reverts commit c2fabd0259.
2022-01-27 19:06:59 +05:30
Sanchayan Maity 2b79d269ee nvim: ftdetect: Drop nix ftdetect
This is not required anymore and is fixed upstream with commit
ecec95712.
2022-01-26 10:32:11 +05:30
Sanchayan Maity 93c92ad067 nvim: plugins: Drop vim-workspace and use auto-session 2022-01-25 10:17:33 +05:30
Sanchayan Maity 73dd1939bd nvim: after/plugin/statusline: Write our own status line plugin
Drop lualine and use our own simple status line. We do not need any
of the fancy stuff, so this works just fine.
2022-01-24 16:15:52 +05:30
Sanchayan Maity 42a3680d87 nvim: yolokai: Remove style for statusline
This fixes the weird color artifact where the vertical split would
meet the statusline.
2022-01-24 13:23:35 +05:30
Sanchayan Maity 22ef882154 nvim: lsp: Enable ESLint 2022-01-21 11:28:45 +05:30
Sanchayan Maity fa0308e93e nvim: Update packer 2022-01-20 10:18:45 +05:30
Sanchayan Maity 3cf20c4822 nvim: autoload/git: Generate a helpful name to use with stash 2022-01-19 17:44:15 +05:30
Sanchayan Maity e807b1126a nvim: init: Disable Python3 provider 2022-01-19 10:31:37 +05:30
Sanchayan Maity 6e86a6a777 nvim: plugins: Drop Coqtail
We are not gonna be pursuing studying Coq for quite a long while and
dropping this should allow us to drop Python provider, so drop this.
2022-01-19 10:29:48 +05:30
Sanchayan Maity 5f26c276ef nvim: plugins: Drop vim-coq-plugin
coqtail can provide syntax highlighting. Not sure why we ever
added vim-coq-plugin.
2022-01-15 16:26:14 +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 4d978c02f6 nvim: after/plugin/nvim-lint: Enable linting for Dockerfile 2022-01-12 13:16:29 +05:30
Sanchayan Maity cb8dfaddfa nvim: after/plugin/fzf: Add a binding for select all 2022-01-11 11:38:55 +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 54c8c977a4 nvim: plugins: Drop QFEnter
We actually never use this plugin.
2022-01-11 11:13:07 +05:30
Sanchayan Maity c2fabd0259 nvim: treesitter: Remove verilog support
Conflicts with coq and crashes nvim sometimes.
2022-01-08 10:51:54 +05:30
Sanchayan Maity 0f51ccdf6b nvim: keymappings: Use arrow keys to navigate popup menu 2022-01-07 16:20:35 +05:30
Sanchayan Maity 5a270db645 nvim: plugins: Drop wilder 2022-01-07 13:36:13 +05:30
Sanchayan Maity 0928a6e37e nvim: plugins: Add patchreview 2022-01-06 15:29:26 +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 e0a642c949 nvim: colors: yolokai: Set Diff color background to black 2022-01-06 15:19:09 +05:30
Sanchayan Maity a9136536f7 nvim: plugin/ansiesc: Do not set relative number 2022-01-05 18:21:10 +05:30
Sanchayan Maity 53446a15a1 nvim: after/plugin/wilder: Update configuration
- Do not enable the popup menu automatically
- Use arrow keys to navigate
- Enable for cmdline
2022-01-05 16:05:27 +05:30
Sanchayan Maity 7b19fceff2 nvim: plugins: Drop which-key 2022-01-04 15:15:47 +05:30
Sanchayan Maity 64ac6ed70c nvim: init: Clean up unused vim-sneak settings 2022-01-04 15:15:47 +05:30
Sanchayan Maity 6744dc6004 nvim: lsp: Do not enable document highlight on CursorHoldI 2022-01-04 15:15:47 +05:30
Sanchayan Maity 9251900f70 nvim: yolokai: Sync with nvim-highlite upstream 2022-01-04 15:15:47 +05:30
Sanchayan Maity 25de9376a9 nvim: keymappings: Add a mapping for finding exact match 2022-01-03 20:26:56 +05:30
Sanchayan Maity 96977caa81 nvim: lsp: Fix typos & symbols in LSP protocol completion item kind 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 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 ab22c57805 nvim: after/plugin/lualine: Fix typo 2021-12-24 10:25:15 +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 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 755238d83c nvim: after/plugin/fzf: Add some more mappings for preview window 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 4d19532127 nvim: after/plugin/lualine: Use simplified symbols 2021-12-15 16:57:30 +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 7a9333a9e1 nvim: plugins: Drop nvim-web-devicons 2021-12-13 13:43:19 +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 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
Sanchayan Maity 5716ca88af nvim: plugins: Switch to lualine 2021-12-10 10:58:19 +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 cdb4ba7740 nvim: yolokai: Change MatchParen highlight
Purple is also used for some other groups, use of orange makes the
matching identifiers stand out.
2021-12-06 10:28:30 +05:30
Sanchayan Maity 3c69913845 nvim: autocmd: Fix TextYankPost autocmd 2021-12-06 10:28:30 +05:30
Sanchayan Maity 674b1539ed nvim: colors/yolokai: Update highlight for nvim-cmp
This adds support for using different highlights for each
of the LSP kind items like variable, functions, methods etc.
2021-12-06 10:28:30 +05:30
Sanchayan Maity 1643837553 nvim: after/plugin/cmp: Show LSP kind type name during completion 2021-12-06 10:28:30 +05:30
Sanchayan Maity d0b93a537a nvim: Update packer 2021-12-06 10:28:30 +05:30
Sanchayan Maity 7001fc4603 nvim: plugins: Add cmdline completion 2021-12-06 10:28:30 +05:30
Sanchayan Maity 677ec666e6 nvim: autocmd: Fix luacheck warning 2021-12-06 10:28:30 +05:30
Sanchayan Maity 818a34a7ff nvim: lsp: Enable flake8 & pylint for pylsp
See documentation
https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md
2021-12-06 10:28:30 +05:30
Sanchayan Maity 3be8a76fe7 nvim: lsp: Drop support for lua
We had added lua-language-server thinking it would be helpful for
Wireplumber development, but, due to the nature of lua and server
itself, the experience is utter crap in comparison to using LSP in
other languages.
2021-11-28 17:53:49 +05:30
Sanchayan Maity 00f67243f7 nvim: keymappings: Add mappings to hide, reset & show diagnostic 2021-11-28 17:53:49 +05:30
Sanchayan Maity 46534e547c nvim: plugins: Add nvim-lint 2021-11-28 17:53:49 +05:30
Sanchayan Maity f0ab1b98bb nvim: after/ftplugin: type/javascript: Add keymapping to invoke prettier
Brings back 1ba2fee9 and reverts a567150a.
2021-11-28 17:53:49 +05:30
Sanchayan Maity 49cf726ce0 nvim: plugins/lsp: Drop null-ls
See the below issue
https://github.com/jose-elias-alvarez/nvim-lsp-ts-utils/issues/87

We went with null-ls because we wanted formatting with prettier. Also
null-ls was recommended by nvim-lsp-ts-utils.

The advantage of null-ls is it provides formatting and diagnostics
together in one package.

However, we will get prettier by another means and for linting switch to
nvim-lint.
2021-11-28 17:53:42 +05:30
Sanchayan Maity 6ead0d94a7 nvim: lsp: Fix missing capabilities for tsserver
We missed setting this when enabling inlay hints.
2021-11-20 17:00:14 +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 8733194431 nvim: lsp: Update the key mapping for code lens
We missed the fact that this conflicts with our gl mapping of HopLine
which we added recently.
2021-11-18 17:15:30 +05:30
Sanchayan Maity 71fae03c07 nvim: keymappings: Fix mapping for replace word
With silent set, we could not provide the input at the command line.
Also, the c. mapping wasn't suppose to have <CR>.
2021-11-18 13:25:40 +05:30
Sanchayan Maity c806eafe5c nvim: plugin: Move gdb_helper to it's appropriate directory
Should have been in plugin and not after/plugin.
2021-11-18 13:25:14 +05:30
Sanchayan Maity ee584495dc nvim: plugins: Drop AnsiEsc and add a simpler replacement
Sanitises buffer by removing ANSI codes.

Idea taken from
https://www.reddit.com/r/neovim/comments/qqf4nn/comment/hk1nwnk
https://superuser.com/questions/1445805/removing-ansi-color-codes-from-a-text-file-in-vi
2021-11-18 10:38:38 +05:30
Sanchayan Maity c84e620795 nvim: after/plugin/fugitive: Improve normal mode mapping for GBrowse 2021-11-17 18:00:54 +05:30
Sanchayan Maity 3f61c98414 nvim: keymappings: Add mappings for DiffConflicts 2021-11-17 17:29:54 +05:30
Sanchayan Maity d989d6adbc nvim: after/plugin/fugitive: Enable q mapping for fugitiveblame 2021-11-17 16:47:19 +05:30
Sanchayan Maity fe34c26993 nvim: fugitive/gitsigns: Enable git blame line
Now that we dropped git-messenger, enable git blame line with fugitive
and gitsigns.
2021-11-17 11:13:14 +05:30
Sanchayan Maity ab56185c9e nvim: plugins: Drop git-messenger
We have git blame via gitsigns or fugitive. Either should suffice.
2021-11-17 11:13:14 +05:30
Sanchayan Maity cc75f12e3f nvim: lsp: Enable inlay hints for TypeScript/JavaScript 2021-11-17 11:13:14 +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 56842dd2a9 nvim: Switch to hop and drop sneak 2021-11-17 11:13:14 +05:30
Sanchayan Maity 6278cd24dd nvim: after/plugin/ferret: Drop the g/ and g\ mapping 2021-11-14 19:18:57 +05:30
Sanchayan Maity 46b42807a2 nvim: Update packer 2021-11-08 12:31:17 +05:30
Sanchayan Maity e07afd2c65 nvim: lsp: Never insert #include directives as part of code completion for clangd 2021-11-08 12:31:17 +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 7a25c8b062 nvim: after/ftplugin/rust: Add a mapping to open cargo docs 2021-10-22 18:08:30 +05:30
Sanchayan Maity 3657612dbb nvim: keymappings: Drop all key mappings for tags
We do not use tags anymore so drop those. Especially never used the
preview tag mappings.
2021-10-20 22:34:14 +05:30
Sanchayan Maity cece84f76e nvim: colors/yolokai: Fix git diff highlight group
The previous setting resulted in atrocious highlighting in diffs.
2021-10-20 22:34:14 +05:30
Sanchayan Maity 1f165bbed4 nvim: autoload/git: Fix the arguments to difftool 2021-10-20 22:14:05 +05:30
Sanchayan Maity 2548f63793 nvim: plugins: Drop diffview
Something as basic as :DiffviewOpen <commit> does not work.
2021-10-20 22:11:38 +05:30
Sanchayan Maity 3a56d37531 nvim: after/ftplugin/dirvish: Add key mapping to yank file path 2021-10-20 21:12:22 +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 0ee98bc81c nvim: keymappings: Update to use the new diagnostic API
While at it, switch the key mapping to use the more convenient one for
line diagnostic.
2021-10-20 13:01:21 +05:30
Sanchayan Maity f6d56d6786 nvim: Update packer 2021-10-20 13:01:21 +05:30
Sanchayan Maity af7461452c nvim: lsp: Enable LSP document highlight 2021-10-20 13:01:21 +05:30
Sanchayan Maity e2a4d77590 nvim: yolokai: Add LSP highlight 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 8e1f6a8834 nvim: after/plugin/fzf: Add command for wiping out all selected buffers 2021-10-17 18:30:31 +05:30
Sanchayan Maity 4cc5fb67c9 nvim: after/ftplugin/rust: Add Dispatch commands for cargo build
Add cargo build commands using dispatch similar to the ones we have
defined in fish.
2021-10-17 18:30:31 +05:30
Sanchayan Maity 3ce0fbf73d nvim: after/ftplugin/rust: Set compiler and makeprg
We pick up the compiler cargo file from rust.vim as the errorformat
seems better perhaps to consider a few more things compared to the one
included in neovim.
2021-10-17 18:30:31 +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 936e6149de nvim: plugins: Switch to Comment.nvim from commentary.vim 2021-10-17 18:30:31 +05:30
Sanchayan Maity fa81a1c107 nvim: plugins: Drop the rtp fix for friendly-snippets
See the actual fix upstream
32ddc125ec

This could be probably unrelated and just was fixed in neovim core
perhaps. Either ways we do not need to do this anymore.
2021-10-16 17:31:29 +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 f4fd6ab1e8 nvim: after/plugin/marks: Do not show builtin marks 2021-10-16 17:31:29 +05:30
Sanchayan Maity eb406bd1da nvim: treesitter: Drop clojure and fennel
We added them briefly but never used these.
2021-10-14 14:41:39 +05:30
Sanchayan Maity e4ac609db3 nvim: Update packer 2021-10-14 00:43:31 +05:30
Sanchayan Maity 4c6a34d07f nvim: plugins: Switch from vim-signature to marks.nvim 2021-10-14 00:43:31 +05:30
Sanchayan Maity 48d64d6de1 nvim: after/plugin/cmp: Update settings
Seems we missed a few things last time. The formatting.fields thing is
a new feature.
2021-10-12 20:15:57 +05:30
Sanchayan Maity a9efbede25 nvim: after/plugin/gdb_helper: Add helper to get breakpoint
This allows us to generate a breakpoint location we can use in the gdb
command file or on command line and also copies it to the clipboard thus
allowing us to easily paste it.
2021-10-12 14:16:37 +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 1f281f6bd7 nvim: after/plugin/cmp: Update nvim-cmp settings
Support for use of floating windows for completion menus landed
upstream. It introduced a new feature but also broke things. Having
native_menu set completely breaks auto completion.

While at it, add mapping for scrolling docs. Also add support for it
in color scheme.
2021-10-11 13:28:07 +05:30
Sanchayan Maity a83b07959d nvim: lsp: Drop lsp_signature
The signature help sometimes stays open even after moving away from
the function. Sometimes it conflicts with the auto completion pop-up
making it difficult to see one of the two windows.
2021-10-11 13:28:07 +05:30
Sanchayan Maity cf15054719 nvim: plugins: Add pretty Quickfix windows 2021-10-11 13:28:07 +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 25059ef623 nvim: lsp: Enable some additional key mappings for code actions 2021-10-10 11:57:15 +05:30
Sanchayan Maity a8d0a43556 nvim: plugins: Add toggleterm
Serves as a good replacement to floaterm.
2021-10-05 15:44:29 +05:30
Sanchayan Maity c237a19e0b nvim: plugins: Drop floaterm
See the previous commit for the reason of dropping this.
2021-10-05 12:59:43 +05:30
Sanchayan Maity 79e4022b0e nvim: plugins: Drop nvim-gdb
termdebug seems good enough so just drop this. Or we will use nvim-dap
if needed. However, termdebug should be enough really. We also just
found gdb-dashboard which seems great adding just the necessary UI bits.
2021-10-04 09:56:37 +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 b04ecb9541 nvim: lsp: Remove redundant capabilities settings
The required capabilities to be set are already correctly set by
nvim-cmp, no need to set them again. We had added that to enable rust
snippet expansion earlier.

Also see older revisions of this document.
https://github.com/neovim/nvim-lspconfig/wiki/Snippets
2021-10-03 12:46:40 +05:30
Sanchayan Maity cf78dcae4d nvim: lsp: Fix diagnostic errors 2021-10-02 18:49:02 +05:30
Sanchayan Maity 8aa4fc2f76 nvim: lsp: Enable shellcheck as diagnostics source for null-ls 2021-10-02 18:29:57 +05:30
Sanchayan Maity 068dfcd4b9 nvim: lsp/keymappings: Move the diagnostic key mappings outside of LSP
vim.diagnostic framework is now available and can be used outside of
LSP. This means the same functions can now work for plugins providing
diagnostics via this framework like nvim-lint and null-ls.
2021-10-02 18:29:57 +05:30
Sanchayan Maity ff93725694 nvim: treesitter: Update treesitter configuration 2021-10-02 17:19:34 +05:30
Sanchayan Maity 2ff1ba46e1 nvim: plugins: Add TSUpdate as post install hook for treesitter 2021-10-02 17:19:34 +05:30
Sanchayan Maity ef61388c72 nvim: plugins: Drop neoformat
With LSP providing formatting have not used this in more than a year.
Just drop it. Also it is pretty stupid to look for everything global &
not use language build tool to pick the correct formatter and its
configuration.
2021-10-02 17:19:34 +05:30
Sanchayan Maity 891fae907b nvim: plugin: Add a simple whitespace plugin
Now that we dropped vim-better-whitespace just add something simple to
strip whitespace if we do ever need it.
2021-10-02 16:14:31 +05:30
Sanchayan Maity 8a43a1c14f nvim: keymappings: Drop mapping to save
We have a keyboard macro to do this.
2021-10-02 13:03:12 +05:30
Sanchayan Maity 331885ea25 nvim: plugins: Drop vim-better-whitespace
Using formatter already does this, so drop it.
2021-10-02 12:45:08 +05:30
Sanchayan Maity 05194ded3a nvim: plugins: Load AnsiEsc plugin only on AnsiEsc command 2021-10-02 11:06:23 +05:30
Sanchayan Maity 95d5a10abc nvim: plugins: Drop SyntaxAttr 2021-10-02 11:06:23 +05:30
Sanchayan Maity ae4edc5bed nvim: plugins: Drop unneeded text object plugins 2021-10-02 10:05:12 +05:30
Sanchayan Maity 6613689352 nvim: after/plugin/which-key: Add triggers blacklist
We have some mappings starting with p and need to blacklist in which key
without which using paste 'p' becomes impossible.
2021-10-01 14:55:30 +05:30
Sanchayan Maity 31780f0c25 nvim: keymappings: Drop highlight search mapping
<C-l> now clears search highlight and update diffs and is mapped by
default.

See
https://github.com/neovim/neovim/issues/14090#issuecomment-901882455.
2021-10-01 14:55:30 +05:30
Sanchayan Maity a668139491 nvim: after/ftplugin/C: Add a key mapping for ClangSwitchSourceHeader
This allows us to switch seamlessly between source and header file.

Its provided by nvim-lspconfig. See
https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/clangd.lua
2021-10-01 10:00:13 +05:30
Sanchayan Maity 62e99dd1f0 nvim: after/ftplugin/C: Drop unneeded settings
Do not know what advantage if any these settings will bring anymore.
2021-09-30 14:20:42 +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 0a21f7d979 nvim: lsp: Explicitly set the log level 2021-09-30 13:55:49 +05:30
Sanchayan Maity 4b6bd7e7ed nvim: after/plugin/fugitive: Add key mappings for git log grep
Usage:
$ git log --grep=word
$ git log -Gword
2021-09-29 11:42:52 +05:30
Sanchayan Maity 8aaccc4f16 nvim: lsp: Refactor and alignment clean ups 2021-09-27 18:46:55 +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 b6063211f7 nvim: plugins: Fix snippets not showing up in completion
For some reason without adding the snippets to the runtime path,
snippets do now show up in completion.

Found the solution here though the issue is on Ultisnips
https://github.com/hrsh7th/nvim-cmp/issues/241
2021-09-27 16:40:55 +05:30
Sanchayan Maity be02b5ead7 nvim: Switch to nvim-cmp
nvim-compe has been deprecated. While we tried to make it a few days
without any completion support, in javascript/typescript could not get
the default omnicompletion to work at all. It is possible that this
could be due to nvim-lsp-ts-utils/null-ls but who is gonna debug.

Also tried MUcomplete but it just would not work. There are open issues
on this. See https://github.com/neovim/neovim/issues/12390 and also
https://github.com/lifepillar/vim-mucomplete/issues/179.

So here we are with nvim-cmp. Some observations in comparison to compe
before. Using buffer completion seems not possible as most of the times
LSP completion items then do not turn up. Do not know if this is server
specific but at least it is the case with Rust. compe seemed better
performance wise especially in tsserver and considering the buffer
problem mentioned above. Also, even with vsnip added as the completion
source can't seem to get any snippet specific completions working.

Could have ditched all completion support if I did not have to use
tsserver but need it for work currently. So we will stick to enabling
this and hopefully it improves in future.

Fuck nodejs, javascript and typescript.

For references see,
https://github.com/kristijanhusak/neovim-config
https://github.com/sQVe/dotfiles/tree/master/config/nvim
2021-09-27 16:29:18 +05:30
Sanchayan Maity b95a14b8d1 nvim: lsp: Fix enabling of range format support again!
47b1578 did not actually fix it. We need to keep using 'gq' but actually
correctly specify whether we want normal or visual mode. Also disable
range formatting explicitly for tsserver.
2021-09-27 15:23:12 +05:30
Sanchayan Maity d7fbe762c5 nvim: Update packer 2021-09-27 13:50:59 +05:30
Sanchayan Maity c781b15582 nvim: Drop signify and switch to gitsigns
signify seems to be giving an error after somewhat long usage of
"E489: too many highlight and syntax groups".
2021-09-27 13:14:27 +05:30
Sanchayan Maity 91eecec611 nvim: keymappings: Drop the mapping for help 2021-09-27 13:14:27 +05:30
Sanchayan Maity 975e6a646e nvim: plugins: Switch from vim-which-key to which-key 2021-09-27 13:14:20 +05:30
Sanchayan Maity 00670a867f nvim: lsp: Enable rust-tools for inlay hints 2021-09-27 12:31:27 +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 97db1c6c9d nvim: keymappings: Enable unique and refactor/cleanup
Enable unique to detect and avoid conflicting key mappings.
2021-09-26 11:51:04 +05:30
Sanchayan Maity 6223b802ce nvim: after/ftplugin/c: Fix conflicting mapping
,d cscope mapping conflicts with the LSP diagnostic mapping.
2021-09-26 11:51:04 +05:30
Sanchayan Maity f7d12b27d3 nvim: lsp: Alignment cleanup 2021-09-26 11:50:36 +05:30
Sanchayan Maity 55356513a9 nvim: after/plugin/easyalign: Fix conflicting mapping
'ga' mapping conflicts with the LSP code action mapping.
2021-09-25 18:31:10 +05:30
Sanchayan Maity 47b157805d nvim: lsp: Fix enabling of range format support
If range formatting is supported we should check that first to enable
it else since most LSP servers support formatting, without range
formatting check being first, it would never be enabled.
2021-09-25 18:21:51 +05:30
Sanchayan Maity 8801b26fa9 nvim: lsp: Add range formatting with motion 2021-09-25 15:26:52 +05:30
Sanchayan Maity eebffce98e nvim: lsp: Add back custom preview function
Follow up to 469e367.
2021-09-25 15:26:52 +05:30
Sanchayan Maity f01b1d6a52 nvim: lsp: Use Leader k mapping for LSP hover
While at it, align code to look nice.
2021-09-25 15:13:49 +05:30
Sanchayan Maity 616c4f003c nvim: lsp: Increase value of debounce didChange notifications 2021-09-25 13:21:01 +05:30
Sanchayan Maity 469e36756b nvim: lsp: Drop custom preview function
Those functions do not work anymore. May be we will add it later
via https://github.com/rmagatti/goto-preview.
2021-09-25 13:21:01 +05:30
Sanchayan Maity 9ab36d4b1b nvim: lsp: Fix null-ls setup 2021-09-25 13:21:01 +05:30
Sanchayan Maity 350a6edd2c nvim: fugitive/git: Add git helper to push upstream
Now that we set push.default to nothing in our git configuration, add
a git helper to figure out the upstream for the current branch and push
it.
2021-09-25 13:21:01 +05:30
Sanchayan Maity 643e1be349 nvim: keymappings: Add mappings to paste from + & * register 2021-09-22 17:52:15 +05:30
Sanchayan Maity 130bf3e04d nvim: colors: yolokai: Update diagnostic highlight 2021-09-22 17:51:51 +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 52ff789cf3 nvim: Switch to the maintained galaxyline fork
See
https://github.com/NTBBloodbath/galaxyline.nvim
https://www.reddit.com/r/neovim/comments/pq3zvq/galaxylinenvim_is_back/
2021-09-21 11:02:25 +05:30
Sanchayan Maity b31aeaf597 nvim: Update packer 2021-09-21 11:02:25 +05:30
Sanchayan Maity e1cfc0408d nvim: yolokai: Sync with nvim-highlite upstream 2021-09-13 18:00:40 +05:30
Sanchayan Maity 763f811931 nvim: after/plugin/haskell: Cleanup settings not required anymore
We dropped the Haskell syntax plugin for treesitter and also ghcid.
Remove settings which were for those plugins.
2021-09-11 11:57:10 +05:30
Sanchayan Maity 3edfac79b4 nvim: after/plugin/completion: Disable tags completion
We were using tags completion for C projects primarily but now that we
have enabled clangd LSP, disable tags based completion.
2021-09-10 14:06:59 +05:30
Sanchayan Maity 5b6685b165 nvim: lsp: Enable clangd for C and C++ 2021-09-10 14:06:59 +05:30
Sanchayan Maity ccb4b4343d nvim: after/plugin: fugitive: Update key mappings 2021-09-10 13:41:24 +05:30
Sanchayan Maity be257f67f0 nvim: Update packer 2021-09-06 14:51:16 +05:30
Sanchayan Maity 555026ef80 nvim: lsp: Sync nvim-lsp-ts-utils settings with upstream 2021-08-31 11:02:34 +05:30
Sanchayan Maity 44411a87e2 nvim: Update packer 2021-08-31 11:02:34 +05:30
Sanchayan Maity 9431ca8646 nvim: Update packer 2021-08-12 12:02:25 +05:30
Sanchayan Maity 88ed57fb8b nvim: keymappings: Enable escape and arrow keys
Now that we use Planck EZ as our main keyboard with Colemak as the
layout, allow use of escape and arrow keys. HJKL are not usable the
same way as before.
2021-08-06 10:51:22 +05:30
Sanchayan Maity 8f5e45cb52 nvim: keymappings: Add mapping to copy to clipboard 2021-08-06 10:51:22 +05:30
Sanchayan Maity 26bc1e7e9c nvim: Update packer 2021-08-06 10:51:22 +05:30
Sanchayan Maity bdc14d4ebc nvim: Add lightbulb for discoverable LSP code actions 2021-07-26 18:44:41 +05:30
Sanchayan Maity b319398534 nvim: Update packer 2021-07-25 11:42:33 +05:30
Sanchayan Maity 3e7fd609ec nvim: lsp: Sync nvim-lsp-ts-utils configuration with upstream 2021-07-21 11:00:40 +05:30
Sanchayan Maity d00bf90b30 nvim: after/plugin: nvimgdb: Update nvim-gdb configuration 2021-07-21 10:29:21 +05:30
Sanchayan Maity c9cc36a499 nvim: Update packer 2021-07-20 21:01:22 +05:30
Sanchayan Maity cc2bedbe5d nvim: keymappings: Add mappings to move lines 2021-07-20 21:01:13 +05:30
Sanchayan Maity c646381a00 nvim: lsp: Add support for lua 2021-07-17 18:38:32 +05:30
Sanchayan Maity c51261d94a nvim: Update packer 2021-07-16 10:54:46 +05:30
Sanchayan Maity 2a2f85b82e nvim: completion: Update nvim-compe settings
Sync with upstream. While at it, since we do not use autocomplete
anymore, change min_length to 1 to trigger completion easily.
2021-07-16 10:54:46 +05:30
Sanchayan Maity efaba37bcf nvim: fugitive/git: Add helper to rename branch 2021-07-15 21:12:27 +05:30
Sanchayan Maity 4565822924 nvim: lsp: Switch to pylsp
pyls is deprecated and not supported in nvim-lspconfig anymore.

The supported python language server is here.
https://github.com/python-lsp/python-lsp-server
2021-07-15 18:13:52 +05:30
Sanchayan Maity ed70d5a630 nvim: Update packer 2021-07-13 19:56:43 +05:30
Sanchayan Maity a493297cae nvim: plugins: For handling files with ANSI escape sequences better 2021-07-12 12:23:52 +05:30
Sanchayan Maity d3b8cec40a nvim: git: Add functionality to restore using git reflog 2021-07-09 10:34:12 +05:30
Sanchayan Maity a85a76c3eb nvim: Update packer 2021-07-09 10:34:12 +05:30
Sanchayan Maity 8fc44227f2 nvim: after/plugin/completion: Disable autocomplete 2021-07-05 17:43:10 +05:30
Sanchayan Maity 119c91a6b7 nvim: plugins: Add nvim-gdb 2021-07-05 17:39:56 +05:30
Sanchayan Maity ffadf1cf4f nvim: keymappings: Map ;; to :
Let's us get over the annoyance of having to press shift for using :.
2021-07-05 10:48:53 +05:30
Sanchayan Maity 6c3886aff0 nvim: Update packer 2021-07-05 10:48:53 +05:30
Sanchayan Maity fff7723126 nvim: treesitter: Enable Haskell 2021-06-28 16:43:06 +05:30
Sanchayan Maity 112239bd31 nvim: plugins: Drop indentLine
indentLine seems to have general performance issues.
2021-06-26 11:19:47 +05:30
Sanchayan Maity a51f16304c nvim: after/ftplugin: git: Do not set bufhidden to wipe
This resulted in not being able to go back to the previous buffer when
using something like git log which is not we want.
2021-06-23 12:30:18 +05:30
Sanchayan Maity 47065178c5 nvim: Update packer 2021-06-23 12:30:18 +05:30
Sanchayan Maity 6406ae8a71 nvim: plugins: Drop plugins
Drop plugins we never use anymore or got around to using.
2021-06-23 12:30:11 +05:30
Sanchayan Maity 44a39eee24 nvim: treesitter: Enable playground
Helps to see what treesitter queries are being made. Would be helpful in
tuning the color scheme.
2021-06-23 12:28:44 +05:30
Sanchayan Maity 0649b639da nvim: treesitter: Force nvim-treesitter to use a specific compiler
Required for Haskell. See
https://github.com/tree-sitter/tree-sitter-haskell#building-with-nvim-treesitter
2021-06-19 11:26:13 +05:30
Sanchayan Maity a16c244fce nvim: autoload/ftplugin: git: Add rebase and merge helpers 2021-06-17 16:58:12 +05:30
Sanchayan Maity 108630d19c nvim: Move plugin configuration files to after/plugin
Now that neovim runtime can also source lua files from traditional vim
runtime directories like after/plugin/ftplugin etc, move all plugin
configuration files to after/plugin.
2021-06-17 10:07:51 +05:30
Sanchayan Maity ca9e0d1754 nvim: after/plugin: fzf: Move fzf configuration
Do all fzf configuration in after/plugin instead of lua/modules. While at
it, add functionality to add fzf items to the quickfix list.
2021-06-16 19:11:11 +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 7fb370f824 nvim: lsp: Enable code lens support
Relevant PR
https://github.com/neovim/neovim/pull/13165
2021-06-15 15:41:28 +05:30
Sanchayan Maity 2fcdea1cb2 nvim: keymappings: Add a key mapping to help with opening vim docs 2021-06-15 09:56:23 +05:30
Sanchayan Maity 5d2d279e9e nvim: after/ftplugin: help: Add key mapping for closing help files 2021-06-15 08:34:27 +05:30
Sanchayan Maity 3d8ccb4f23 nvim: yolokai: Sync with nvim-highlite upstream 2021-06-15 08:34:27 +05:30
Sanchayan Maity 0eb9b86927 Revert "nvim: Fix accessing t_Co"
This reverts commit 72e3b80274.
2021-06-15 08:34:27 +05:30
Sanchayan Maity ba3c62722b nvim: Update packer 2021-06-15 08:34:27 +05:30
Sanchayan Maity e715f19d1e nvim: modules: Alignment cleanup
Slight OCD :).
2021-06-12 12:24:57 +05:30
Sanchayan Maity 8ad693d5bc nvim: init: Drop duplicate swapfile setting call 2021-06-10 18:30:31 +05:30
Sanchayan Maity 8be870b015 nvim: after/ftplugin: man: Set nobuflisted and bufhidden for man pages 2021-06-10 10:30:27 +05:30
Sanchayan Maity 511d5a17aa nvim: plugins: Add plenary and null-ls
nvim-lsp-ts-utils now has plenary and null-ls as a requirement.
2021-06-10 10:30:27 +05:30
Sanchayan Maity 9d6be2d56b nvim: Update packer 2021-06-10 10:30:27 +05:30
Sanchayan Maity 3942f04633 nvim: after/plugin: fugitve: Use gS mapping to stash file
While at it, use <Leader>G for :Git.
2021-06-07 20:54:41 +05:30
Sanchayan Maity 3a6b12d118 nvim: after/ftplugin: mail: Disable whitespace in mail
We do not care about whitespace when constructing replies from within
mutt.
2021-06-05 17:42:48 +05:30
Sanchayan Maity 3ba1673068 nvim: after/plugin: fugitive: Update gF and gE mapping
Often it is convenient to merge remote branch origin/foo into local
branch foo, without having to checkout foo first. Use gF mapping for
the same.

One may edit alternate versions of the file in different branches using
:Gedit <branch>:/path/to/file. Use gE mapping for the same.
2021-06-04 15:50:35 +05:30
Sanchayan Maity 65230f92a0 nvim: Update packer 2021-06-04 10:33:31 +05:30
Sanchayan Maity e3df9adf91 nvim: after/ftplugin: C: Fix quickr cscope mappings
These seem to not work with nnoremap for some reason.
2021-06-03 20:55:19 +05:30
Sanchayan Maity 525d73373d nvim: after/ftplugin: Set wipe on bufhidden for dirvish and gitcommit 2021-06-02 13:54:26 +05:30
Sanchayan Maity d7ff7f1ec2 nvim: after/ftplugin: Fix various key mappings
Also see the previous commit for more context.
2021-05-29 13:39:44 +05:30
Sanchayan Maity efe3e7e517 Revert "nvim: after: ftplugin: Fix various key mappings"
This reverts commit e6397864d0.

This was actually wrong. nnoremap should be always what we want. For
example, this broke the <Leader>r mapping for gitrebase and would invoke
:Reword from lambdalisue/reword.vim.
2021-05-29 13:39:44 +05:30
Sanchayan Maity 4e2abc80df nvim: after/ftplugin: gitrebase: Add vim-interactive-rebase-reverse
The plugin is a pretty small ftplugin. Just add it to our ftplugin.
This also fixes the issue where this plugin did not take affect
when using interactive rebase from within fugitive.
2021-05-29 13:39:44 +05:30
Sanchayan Maity 72e3b80274 nvim: Fix accessing t_Co
With neovim/neovim#13479 merged, window option needs to be used for
accessing t_Co correctly.
2021-05-29 13:33:32 +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 ac3cb2e828 nvim: Update packer 2021-05-29 10:50:43 +05:30
Sanchayan Maity 748fd222da nvim: after/ftplugin: Use 'wipe' for bufhidden 2021-05-25 11:39:40 +05:30
Sanchayan Maity f088e258da nvim: after/plugin/fugitive: Add some more key mappings 2021-05-25 10:48:33 +05:30
Sanchayan Maity a567150a64 Revert "nvim: after/ftplugin: javascript: Add keymapping to invoke prettier"
This reverts commit 1ba2fee97d.

Now that we enable nvim-lsp-ts-utils, this is not required anymore.
2021-05-24 17:20:23 +05:30
Sanchayan Maity 7383245dd3 nvim: plugins/lsp: Add nvim-lsp-ts-utils 2021-05-24 17:20:23 +05:30
Sanchayan Maity 25afe0527c nvim: keymappings: Add a key mapping to select last pasted/yanked text 2021-05-24 15:59:29 +05:30
Sanchayan Maity 66f07fba89 nvim: plugins/treesitter: Enable treesitter text objects 2021-05-22 15:30:52 +05:30
Sanchayan Maity f846dace39 nvim: keymappings: Drop mapping for copying whole buffer
Now that we have a text object for the whole buffer, this is not
required anymore.
2021-05-21 15:40:11 +05:30
Sanchayan Maity 66b022dcb0 nvim: plugins: Add various text object plugins 2021-05-21 11:16:43 +05:30
Sanchayan Maity 847dd90e2d nvim: Update packer 2021-05-21 10:02:13 +05:30
Sanchayan Maity 9b639279d9 nvim: after/plugin: Add j and k motion to the jump list 2021-05-18 19:40:03 +05:30
Sanchayan Maity f05e5bcd5d nvim: after/plugin: fugitive: Add a key mapping for Gedit
Gedit is helpful to open up previous versions of the file. For example,
:Gedit HEAD~3:% loads the current file as it existed 3 commits ago.
2021-05-18 13:11:23 +05:30
Sanchayan Maity 9848348881 nvim: plugins: Drop all LISP support
Flights of fancy. Thought I will learn LISP but dynamically typed
languages are just annoying to work with.
2021-05-17 20:39:46 +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 2031d90b49 nvim: after/ftplugin: python: Set textwidth to 0
Let the formatter decide how to wrap lines.
2021-05-17 13:41:02 +05:30
Sanchayan Maity 87c23e3bbc nvim: after/plugin: vsnip: Fix conflicting key mapping with sneak 2021-05-17 10:34:43 +05:30
Sanchayan Maity 3b163a4a5a nvim: Update packer 2021-05-17 10:34:30 +05:30
Sanchayan Maity 04b2a511e1 nvim: treesitter: Add fish and nix
Drop the syntax highlighting plugins for fish and nix and switch to
treesitter. The ftdetect is taken from the respective plugins.

We might need to add the indent specific scripts for fish and nix
later since we are not enabling indent with treesitter.
2021-05-14 19:36:43 +05:30
Sanchayan Maity 58fe622b66 nvim: init: Align to look nice 2021-05-14 18:04:55 +05:30
Sanchayan Maity ed8fd2a359 nvim: plugins: Drop textobj-word-column
Does not seem to work as expected due to possible conflict with targets.
2021-05-14 17:12:58 +05:30
Sanchayan Maity e909c059a4 nvim: modules: completion: min_length needs to be 2
This is required if we want completion to trigger on identifiers like
'if' to be able to select snippets.
2021-05-14 16:34:25 +05:30
Sanchayan Maity 08df60f731 nvim: after: git/fugitive: Add settings and mappings to not leave buffers behind 2021-05-14 16:34:25 +05:30
Sanchayan Maity a9c91c06e4 nvim: autoload: git: Use bwipeout instead of bdelete
Really delete the buffer. If bdelete is used, we can still go back to
the previous buffer using <C-^> which we do not want. Basically we do
not want a fugitive git buffer to become alternate-file.

See :help alternate-file.
2021-05-14 16:33:45 +05:30
Sanchayan Maity 8694445d2d nvim: after: plugin/ftplugin: Drop unnecessary maps
Fugitive/vim already provides the necessary mappings. No need for
mapping these.
2021-05-14 13:46:25 +05:30