Commit graph

323 commits

Author SHA1 Message Date
Sanchayan Maity 406570312f
nvim: after/ftplugin/rust: Do not add cargo registry to buffer list 2023-02-10 18:42:57 +05:30
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 dd0adf5212
nvim: plugins: Drop luasnip and use snippy
Our snippet usage is not extensive. Use snippy which is a more
minimalistic plugin.
2023-02-03 18:19:37 +05:30
Sanchayan Maity 0b1380f28b
nvim: after/ftplugin: js/ts: Do not add node_modules to buffer list 2023-01-31 20:33:44 +05:30
Sanchayan Maity ad1c594245
nvim: after/plugin/nvim-lint: Drop pylint and use ruff 2023-01-26 16:55:44 +05:30
Sanchayan Maity 3e5d0f0e13
nvim: after/ftplugin/markdown: Remove column limit 2023-01-21 20:05:03 +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 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 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 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 d37cbd3cf0
nvim: after/ftplugin: Add language server for racket & scheme 2022-12-28 19:53:02 +05:30
Sanchayan Maity 09f609b26a
nvim: after/plugin/nvim-lint: Enable clang-tidy 2022-12-20 20:43:09 +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 a328fe3c5d nvim: after/ftplugin/sh: Add language server for bash 2022-12-06 12:49:30 +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 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 b294f196de nvim: after/plugin/nvim-lint: Use leader instead of local leader 2022-11-15 17:32:07 +05:30
Sanchayan Maity 8d9d230c18 nvim: after/plugin/fugitive: Update gd/D mappings to use difftool 2022-11-04 17:46:44 +05:30
Sanchayan Maity ba319f2bde nvim: after/plugin/gitsigns: Use on_attach callback to setup mappings
keymaps is deprecated.
2022-11-04 09:54:55 +05:30
Sanchayan Maity 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
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 43e4927c88 nvim: ftplugin: markdown: Enable spell check 2022-09-28 17:24:21 +05:30
Sanchayan Maity f4ee744e85 nvim: plugins: Use vale.nvim for vale support 2022-09-28 17:14:44 +05:30
Sanchayan Maity 3ea83c67ba nvim: after/plugin/nvim-lint: Drop languagetool & vale
Both seem to give errors at the moment. While at it, drop the unused
flake8 args setting.
2022-09-28 17:13:37 +05:30
Sanchayan Maity 6b9de43829 nvim: statusline: Add space after git ahead behind symbol 2022-09-05 19:04:30 +05:30
Sanchayan Maity 9a26ef9c10 nvim: Drop nvim-lspconfig
Use the new vim.lsp.start API and LspAttach/Detach auto commands.
Drop nvim-lspconfig in the process.

LSP server specific configuration has been taken from nvim-lspconfig.
2022-08-31 12:21:28 +05:30
Sanchayan Maity a18a0415b7 nvim: statusline: Do not set winbar for floating windows 2022-08-31 12:21:28 +05:30
Sanchayan Maity 490fe4e853 nvim: plugins: Drop rust-tools & use lsp-inlayhints
We do not use any of the other features provided by rust-tools and
only ever needed the inlay hints. Now that there is a plugin for
that which also allows us to use inlay hints for other languages
use that.

There are two options
https://github.com/lvimuser/lsp-inlayhints.nvim
https://github.com/simrat39/inlay-hints.nvim

The second one is from the rust-tools author himself but we could
not get that to work.
2022-08-19 16:59:19 +05:30
Sanchayan Maity f315c0060b nvim: statusline: Allow more width for git branch 2022-06-25 17:05:49 +05:30
Sanchayan Maity d057fa0385 nvim: fugitive: Execute commands while keeping current alt file
Keep current alternate file where possible for git commands executed
via fugitive.
2022-06-19 15:48:57 +05:30
Sanchayan Maity add2ceb869 nvim: statusline: Enable winbar
Use it to show full path for file. This frees up space in status line
when git branch names are long.
2022-06-08 09:51:47 +05:30
Sanchayan Maity 664db0f770 nvim: after/plugin/nvim-lint: Remove flake8 as a linter for Python 2022-05-19 11:11:56 +05:30
Sanchayan Maity f4b928bd3e nvim: after/plugin/ftplugin: Update setting of buffer local mappings 2022-05-14 13:45:21 +05:30
Sanchayan Maity 363ba685aa nvim: lsp/ftplugin/rust: Remove crate graph 2022-05-06 11:25:09 +05:30
Sanchayan Maity a460081971 nvim: after/plugin/gitlinker: Fix gnome url 2022-05-05 16:48:21 +05:30
Sanchayan Maity 86a89f99ab nvim: after/plugin/fugitive: Add mapping for git grep
The rebase abort mapping is not really required as fugitive already
provides the `ra` mapping when in git status window to abort rebase.
Use the `gr` mapping for git grep and `gR` for rebasing to origin.
2022-05-02 12:38:25 +05:30
Sanchayan Maity 679daf809a nvim: after/ftplugin/dirvish: Set bufhidden to hide
With commit 7e41cd7 entering in dirvish does not work if bufhidden is
not hide or empty. Set it to hide and using BS which is mapped to C-^
in our key mappings, we can go back to the previous buffer.
2022-04-28 15:20:44 +05:30
Sanchayan Maity 081f31aada nvim: plugins: Drop toggleterm
Now that we use tmux all the time this is not so useful.
2022-04-25 20:20:30 +05:30
Sanchayan Maity 306bd4b597 nvim: Enable linting for fish 2022-04-25 08:42:33 +05:30
Sanchayan Maity cc2fcffc56 nvim: after/plugin/snipcomp: Sync with upstream 2022-04-19 20:08:18 +05:30
Sanchayan Maity 686fec51d6 nvim: Use the new API for setting keymap 2022-04-16 14:27:22 +05:30
Sanchayan Maity 7e0060eacb nvim: after/ftplugin/fish: Add a key mapping to format with fish indent 2022-04-14 17:44:48 +05:30
Sanchayan Maity f7ab6b1532 nvim: after/plugin/fugitive: Automatically jump to the blame window
The blame window opens at the bottom of the current window by default.
Jump to it automatically.
2022-04-12 18:27:56 +05:30
Sanchayan Maity 9eff2e764a nvim: after/plugin/gitsigns: Blame is not very helpful 2022-04-12 17:34:46 +05:30
Sanchayan Maity 75ff0341f6 nvim: plugins: Add vim-dirvish-dovish 2022-04-05 17:41:49 +05:30
Sanchayan Maity 81fc328b4e nvim: after/plugin/fugitive: Only keep the diff window around
Somehow dirvish buffer opens along with diff window when using
this mapping. Use only to close any other windows in this tab.
2022-04-03 08:54:34 +05:30
Sanchayan Maity aad3027a89 nvim: after/ftplugin/qf: Use leader key for colder/cnewer 2022-04-03 08:54:34 +05:30
Sanchayan Maity 2d17fe00ab nvim: autoload/git: Use difftool for review
The difftool version is actually useful since it populates the quickfix
list when the -y argument is not used. This gives rise to a possibility
where the quickfix list can be filtered to ignore or look only at files
we want.

While at it also add the version which opens each changed file in a tab
and gives a diffsplit view.
2022-04-03 08:53:46 +05:30
Sanchayan Maity 6ae7da9eca nvim: autoload/git: Introduce a difftool version for git diff 2022-04-02 17:21:23 +05:30
Sanchayan Maity 9ebbd3640b nvim: after/plugin/fzf: BCommits also supports visual selection
BCommits supports visual selection of lines to track changes in
the range.
2022-03-27 19:26:36 +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 d9746a1c73 nvim: statusline: Decrease the truncation width for git status 2022-03-23 10:28:22 +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 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 b10ba79940 nvim: after/plugin/fzf-lua: Update actions for commits 2022-02-26 13:26:11 +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 447d4e50b5 nvim: plugins: Switch to fzf-lua 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 66af0bbd9e nvim: after/plugin/statusline: Use nvim-gps for statusline 2022-02-09 18:14:12 +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 8ff00d9cb0 nvim: after/plugin/nvim-lint: Enable linting for yaml 2022-01-28 16:35:55 +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 3cf20c4822 nvim: autoload/git: Generate a helpful name to use with stash 2022-01-19 17:44:15 +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 5a270db645 nvim: plugins: Drop wilder 2022-01-07 13:36:13 +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 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 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 755238d83c nvim: after/plugin/fzf: Add some more mappings for preview window 2021-12-16 20:23:36 +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