Commit graph

122 commits

Author SHA1 Message Date
Sanchayan Maity f3190ffa0b
nvim: after/ftplugin/diff: spell is window local & not buffer local 2023-01-19 14:15:13 +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 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 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 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 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 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 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 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 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 306bd4b597 nvim: Enable linting for fish 2022-04-25 08:42:33 +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 75ff0341f6 nvim: plugins: Add vim-dirvish-dovish 2022-04-05 17:41:49 +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 6ae7da9eca nvim: autoload/git: Introduce a difftool version for git diff 2022-04-02 17:21:23 +05:30
Sanchayan Maity 4edfa99a21 nvim: autoload/ftplugin: git: Add helper for format-patch 2022-02-10 21:31:57 +05:30
Sanchayan Maity 4d978c02f6 nvim: after/plugin/nvim-lint: Enable linting for Dockerfile 2022-01-12 13:16:29 +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 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 591077efb4 nvim: Update Python related configuration 2021-12-10 14:09:12 +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 7a25c8b062 nvim: after/ftplugin/rust: Add a mapping to open cargo docs 2021-10-22 18:08:30 +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 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 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 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 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 00670a867f nvim: lsp: Enable rust-tools for inlay hints 2021-09-27 12:31:27 +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 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 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 d00bf90b30 nvim: after/plugin: nvimgdb: Update nvim-gdb configuration 2021-07-21 10:29:21 +05:30
Sanchayan Maity efaba37bcf nvim: fugitive/git: Add helper to rename branch 2021-07-15 21:12:27 +05:30
Sanchayan Maity d3b8cec40a nvim: git: Add functionality to restore using git reflog 2021-07-09 10:34:12 +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