Sanchayan Maity
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
Sanchayan Maity
f4b928bd3e
nvim: after/plugin/ftplugin: Update setting of buffer local mappings
2022-05-14 13:45:21 +05:30
Sanchayan Maity
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
Sanchayan Maity
21944d6bca
nvim: plugins: Update the marks repo location
2022-05-14 08:36:56 +05:30
Sanchayan Maity
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
Sanchayan Maity
918df63073
nvim: Fix group argument to nvim_create_autocmd
2022-05-06 12:04:35 +05:30
Sanchayan Maity
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
Sanchayan Maity
363ba685aa
nvim: lsp/ftplugin/rust: Remove crate graph
2022-05-06 11:25:09 +05:30
Sanchayan Maity
ef00957fae
nvim: lsp: Refactor configuration setting for clients
2022-05-05 21:00:25 +05:30
Sanchayan Maity
223ffe7505
nvim: lsp: Enable additionalTextEdits for completion item
2022-05-05 20:59:32 +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
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
Sanchayan Maity
59b1696ffa
nvim: lsp: Refactor setting up of autocmd for code lens & document highlight
2022-05-02 09:33:38 +05:30
Sanchayan Maity
fdc17306b7
nvim: lsp: Refactor setting up of key mappings
2022-05-02 09:33:38 +05:30
Sanchayan Maity
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
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
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
Sanchayan Maity
bc55909a12
nvim: yolokai: Add recently introduced hl-CurSearch
2022-04-21 20:31:41 +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
ef1ed4b7d1
nvim: autocmd: On exit set cursor shape to horizontal & not vertical
...
We specify an underline cursor shape in terminal settings. This actually
fixes 5c6eebf
where we just copied the settings from the referenced
issue but did not actually fix it.
2022-04-15 14:05:14 +05:30
Sanchayan Maity
e071172069
nvim: yolokai: Update diagnostic highlight names
2022-04-15 12:09:21 +05:30
Sanchayan Maity
5c80b85d69
nvim: plugin/epoch-converter: Fix timestamp conversion helper
...
The epoch time under cursor may be in milliseconds or seconds. Use
visual selection to select epoch since we won't know which. Else when
the epoch was in milliseconds we would just get wrong results.
2022-04-15 11:09:29 +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
93110c3445
nvim: keymappings: Add mapping to resize splits
2022-04-12 20:06:51 +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
9fb93edb72
Revert "nvim: plugins: Add patchreview"
...
This reverts commit 0928a6e37e
.
2022-04-03 08:54:34 +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
c95289343a
nvim: autoload/git: Fix the arguments to diff
...
Not sure how we keep getting this wrong.
2022-04-02 11:04:13 +05:30
Sanchayan Maity
78d986ab26
nvim: plugin/shell: Add key mapping to run jq on visual selection
...
While at it, add some explanation to the functions for posterity.
2022-04-01 19:14:07 +05:30
Sanchayan Maity
8e851ef1a8
nvim: plugin/shell: Add key mapping to invoke ripgrep easily
2022-04-01 18:22:53 +05:30
Sanchayan Maity
d4a5bc933c
nvim: plugin/shell: Allows getting shell command output in temp buffer
...
Taken from
https://stackoverflow.com/questions/10493452/vim-open-a-temporary-buffer-displaying-executables-output
2022-03-29 15:16:02 +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
701bd244be
Allow seamless navigation between vim and tmux splits
2022-03-27 16:12:08 +05:30
Sanchayan Maity
758e624b07
nvim: autocmd: Do not run AnsiEsc on loading of log files
2022-03-27 16:12:08 +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
2ed668e2c1
nvim: Update packer
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
ac29090179
nvim: init: Fix copy and paste with clipboard when using tmux
2022-03-17 16:59:53 +05:30
Sanchayan Maity
2e8f138f8b
nvim: plugin: Add a plugin to help with epoch timestamp conversions
...
We look at logs frequently these days with epoch timestamps and this
helps with getting the human readable timestamp and vice versa.
2022-03-14 13:36:45 +05:30