Commit graph

1019 commits

Author SHA1 Message Date
f04308f569 nvim: plugins: Make packer not fetch/pull tags
Upstream repos overwrite tags like release and then PackerSync complains
about failing to update since existing tags would be clobbered after an
update.
2022-09-16 20:39:17 +05:30
b398542a94 nvim: lsp: Minor clean up of autocmd callbacks 2022-09-13 18:16:08 +05:30
108403ca3d nvim: lsp: Drop custom range formatting function
With commit 11167ab, vim.lsp.buf.format now has a range argument
which defaults to current selection in visual mode.
2022-09-13 18:16:08 +05:30
6b9de43829 nvim: statusline: Add space after git ahead behind symbol 2022-09-05 19:04:30 +05:30
7bae888f7d nvim: plugins: Drop suda
sudoedit is appropriate for our needs.
2022-09-01 09:31:52 +05:30
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
a18a0415b7 nvim: statusline: Do not set winbar for floating windows 2022-08-31 12:21:28 +05:30
8e8f6110e5 nvim: lsp: Fix argument ordering to on_attach for inlay hint 2022-08-29 17:35:47 +05:30
24f4e8aff1 nvim: Update packer 2022-08-23 10:00:34 +05:30
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
74183bb5ec nvim: init: Drop unnecessary require 2022-08-19 16:59:19 +05:30
2f58beffc7 nvim: Update packer 2022-08-08 09:46:00 +05:30
1cf5377ae5 nvim: lsp: Remove obsolete flag for clangd 2022-08-06 11:41:09 +05:30
01dfb0429c nvim: lsp: range_code_action is deprecated
See PR
https://github.com/neovim/neovim/pull/19551
2022-08-03 14:24:58 +05:30
19e651780e keymappings: Fix command line mode mappings
See https://github.com/neovim/neovim/issues/14090#issuecomment-1202280881.
2022-08-03 13:12:41 +05:30
4e60a3f53e nvim: plugins: Drop vimtex
For any future LaTeX writing needs we only intend to use
markdown/pandoc.
2022-07-27 12:21:48 +05:30
8198cf7396 nvim: Update packer 2022-07-27 12:21:42 +05:30
d4edc15bd2 nvim: keymappings: Disable macro recording 2022-07-11 19:28:00 +05:30
01dddffa53 nvim: Update packer 2022-07-08 10:05:14 +05:30
35f9bead79 nvim: init: filetype.lua is now default
See
https://github.com/neovim/neovim/issues/14090#issuecomment-1177933661
2022-07-08 09:18:19 +05:30
f6465cb3a5 nvim: Update packer 2022-07-02 13:04:59 +05:30
f315c0060b nvim: statusline: Allow more width for git branch 2022-06-25 17:05:49 +05:30
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
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
1fdb057edf nvim: Update packer 2022-06-05 15:03:49 +05:30
6be67782e6 nvim: treesitter: Add golang 2022-06-05 15:03:49 +05:30
664db0f770 nvim: after/plugin/nvim-lint: Remove flake8 as a linter for Python 2022-05-19 11:11:56 +05:30
d4f81fe865 nvim: plugin/visual-star-search: Set mark when doing backward search
While at it, drop calling set hlsearch for * and g* as hlsearch is
enabled by default and does not seem to be required.
2022-05-18 09:09:23 +05:30
f4b928bd3e nvim: after/plugin/ftplugin: Update setting of buffer local mappings 2022-05-14 13:45:21 +05:30
edb11e5e1d nvim: plugin/visual-star-search: Use custom visual star search
neovim enabled search selection by * and # in visual mode but seems
that is not good enough.
https://github.com/neovim/neovim/pull/18538#pullrequestreview-971039192

Add and use Justin Keyes version referenced above.
2022-05-14 09:10:13 +05:30
21944d6bca nvim: plugins: Update the marks repo location 2022-05-14 08:36:56 +05:30
285d1fb9a9 nvim: plugins: Drop vim-visual-star-search
Commit 233c41c in neovim upstream enabled search selection by * and #
in visual mode by default. We do not need this plugin anymore.
2022-05-13 09:11:02 +05:30
918df63073 nvim: Fix group argument to nvim_create_autocmd 2022-05-06 12:04:35 +05:30
463e9f5811 nvim: plugins: Drop dhall
We do not use this and haven't had anything to do with dhall in about
one and half year.
2022-05-06 11:36:17 +05:30
363ba685aa nvim: lsp/ftplugin/rust: Remove crate graph 2022-05-06 11:25:09 +05:30
ef00957fae nvim: lsp: Refactor configuration setting for clients 2022-05-05 21:00:25 +05:30
223ffe7505 nvim: lsp: Enable additionalTextEdits for completion item 2022-05-05 20:59:32 +05:30
a460081971 nvim: after/plugin/gitlinker: Fix gnome url 2022-05-05 16:48:21 +05:30
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
211cd39138 nvim: plugins/lsp: Drop nvim-lsp-ts-utils
The plugin is in maintenance mode and typescript.nvim does not support
inlay hints. We already use eslint language server and extra commands
provided by lsp-ts-utils/typescript.nvim is something we have never
used. Just drop it.
2022-05-02 10:34:44 +05:30
59b1696ffa nvim: lsp: Refactor setting up of autocmd for code lens & document highlight 2022-05-02 09:33:38 +05:30
fdc17306b7 nvim: lsp: Refactor setting up of key mappings 2022-05-02 09:33:38 +05:30
59c9556325 nvim: lsp: Sync with upstream
vim.lsp.buf.formatting function is deprecated and now replaces all the
below three functions with vim.lsp.buf.format.

- vim.lsp.buf.formatting
- vim.lsp.buf.formatting_sync
- vim.lsp.buf.formatting_seq_sync

client.resolved_capabilities is no longer used. One must now access
client.server_capabilities which matches the same structure as the
protocol.

https://microsoft.github.io/language-server-protocol/specification

See neovim commit c618b31.
2022-05-01 19:50:07 +05:30
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
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
306bd4b597 nvim: Enable linting for fish 2022-04-25 08:42:33 +05:30
3e9ed93517 nvim: yolokai: Sync with upstream
Sync with upstream to use the new nvim_set_hl API. The white color was
actually wrong, so fix it.
2022-04-21 20:32:40 +05:30
bc55909a12 nvim: yolokai: Add recently introduced hl-CurSearch 2022-04-21 20:31:41 +05:30
cc2fcffc56 nvim: after/plugin/snipcomp: Sync with upstream 2022-04-19 20:08:18 +05:30
686fec51d6 nvim: Use the new API for setting keymap 2022-04-16 14:27:22 +05:30