Sanchayan Maity
6dd655ebce
nvim: after/ftplugin/diff: Do not highlight white space
2023-07-07 17:52:01 +05:30
Sanchayan Maity
d3775127f8
nvim: treesitter: Register haskell parser in ftplugin
...
4468c8b
made PureScript use Haskell for treesitter queries. However,
setting them up globally sometimes seems to result in Haskell files
getting identified as PureScript and triggering a PureScript LSP
server attach. At least that's what the behaviour seems like.
To prevent this, register the usage of Haskell treesitter queries
in ftplugin viz. when PureScript file type is detected.
2023-06-20 16:58:13 +05:30
Sanchayan Maity
6f78a23ab3
nvim: after/ftplugin/haskell: Update tags on file save
2023-06-20 16:58:12 +05:30
Sanchayan Maity
e9f10fa776
nvim: after/ftplugin: haskell: Set makeprg
2023-06-16 12:59:37 +05:30
Sanchayan Maity
5a1883fb2d
nvim: after/ftplugin/cabal: Set comment string
2023-06-10 13:30:04 +05:30
Sanchayan Maity
e758ef0a08
nvim: after/ftplugin: Disable mini trailspace
...
Now we enable trailspace module from mini, disable it for file types
where we do not want trailing space to be highlighted.
2023-06-07 12:43:15 +05:30
Sanchayan Maity
8d2b94856c
nvim: after/ftplugin/scheme: Drop use of racket lang server for scheme
2023-05-31 10:29:38 +05:30
Sanchayan Maity
5674bbdc06
nvim: lsp: Add support for reloading Cargo workspace
...
While at it, refactor the custom setup and clean up for clients in
a single function.
2023-05-25 13:41:58 +05:30
Sanchayan Maity
95cb836e8d
nvim: after/ftplugin/cabal: Add cabalfmt plugin
...
Since we reverted cabal-fmt support via HLS in the previous commit
add the cabalfmt plugin. Just add it to our own ftplugin instead of
adding via the plugin list.
2023-04-25 16:28:02 +05:30
Sanchayan Maity
5bba0b1789
Revert "nvim: after/ftplugin/cabal: Enable HLS on cabal files"
...
This reverts commit 34a5bbdacb
.
HLS complains a lot (forgot the error) when trying to edit cabal files
making it almost unusable. It was nice to not require a separate plugin
for formatting cabal files, but, since this is not usable, disable it.
2023-04-25 16:28:02 +05:30
Sanchayan Maity
39900dd9a7
nvim: after/ftplugin/purescript: Add PureScript LSP support
2023-04-22 13:05:51 +05:30
Sanchayan Maity
7ca6a1c1b8
nvim: after/ftplugin/rust: Remove format on save
...
Formatting on save tends to go completely wrong sometimes for some
reason. Just remove it.
2023-03-21 17:22:52 +05:30
Sanchayan Maity
34a5bbdacb
nvim: after/ftplugin/cabal: Enable HLS on cabal files
...
Enabling HLS on cabal files allows us to format them using gq. HLS
just uses the internal cabal-fmt plugin.
https://haskell-language-server.readthedocs.io/en/latest/features.html#formatting
2023-03-06 22:15:29 +05:30
Sanchayan Maity
110a1643cb
nvim: Move LSP configuration to it's own LSP utils
...
This allows us to have all the language server configuration in one
place and only import relevant LSP server configuration to pass to
vim.lsp.start in after/ftplugin.
While at it, we also enable deno support.
2023-02-28 20:56:36 +05:30
Sanchayan Maity
26488153f0
nvim: after/ftplugin/haskell: Remove old configuration
...
We use cabal instead of stack these days and we dropped asyncdo more
than a year ago.
2023-02-28 00:17:45 +05:30
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
0b1380f28b
nvim: after/ftplugin: js/ts: Do not add node_modules to buffer list
2023-01-31 20:33: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
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