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
148e808cee
nvim: after/plugin/gitsigns: Update configuration
...
current_line_blame_formatter_opts is deprecated. Update the signs
configuration.
2023-02-25 18:00:07 +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
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