Commit graph

33 commits

Author SHA1 Message Date
Sanchayan Maity 0dad89e0fb
nvim: plugin/shell: Add helper to get decimal & hexadecimal values 2024-01-11 13:24:26 +05:30
Sanchayan Maity 39c8f2890a
nvim: plugin/epoch-converter: Use UTC time zone 2023-09-14 14:50:23 +05:30
Sanchayan Maity b6243f2a9a
Revert "nvim: plugin: Add a simple whitespace plugin"
This reverts commit 891fae907b.

Now that we have mini.trailspace enabled by default, drop this
whitespace plugin.
2023-06-07 14:14:56 +05:30
Sanchayan Maity 245855e5ff
nvim: plugin/session: Do not load session if Quickfix list is loaded
This is required if we want to use git-jump or do anything with `nvim -q`.
2023-05-15 20:45:48 +05:30
Sanchayan Maity eafc975e35
nvim: plugin: Add a simple session management plugin 2023-05-02 16:33:52 +05:30
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 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 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 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 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
Sanchayan Maity a9136536f7 nvim: plugin/ansiesc: Do not set relative number 2022-01-05 18:21:10 +05:30
Sanchayan Maity c806eafe5c nvim: plugin: Move gdb_helper to it's appropriate directory
Should have been in plugin and not after/plugin.
2021-11-18 13:25:14 +05:30
Sanchayan Maity ee584495dc nvim: plugins: Drop AnsiEsc and add a simpler replacement
Sanitises buffer by removing ANSI codes.

Idea taken from
https://www.reddit.com/r/neovim/comments/qqf4nn/comment/hk1nwnk
https://superuser.com/questions/1445805/removing-ansi-color-codes-from-a-text-file-in-vi
2021-11-18 10:38:38 +05:30
Sanchayan Maity 891fae907b nvim: plugin: Add a simple whitespace plugin
Now that we dropped vim-better-whitespace just add something simple to
strip whitespace if we do ever need it.
2021-10-02 16:14:31 +05:30
Sanchayan Maity ee6af66c8a nvim: Do not rely on plugins.vim to load plugins
We do not really need to rely on a plugins file in 'plugin' to load the
packages using 'execute luafile'. Just do a 'require plugins' in init.lua.
2020-11-10 21:06:15 +05:30
Sanchayan Maity 4bc376433b nvim: Drop gitjump
We can move between conflict markers using functionality from the
conflict markers plugin and we also have gina. If required just
introduce the command mapping later.
2020-11-02 14:00:30 +05:30
Sanchayan Maity 3691d67298 nvim: Use galaxyline for statusline 2020-10-30 14:28:14 +05:30
Sanchayan Maity cbd37c1856 nvim: Move to packer 2020-10-29 21:06:46 +05:30
Sanchayan Maity d59e74f588 nvim: Add support for LSP in status line
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-09-02 14:45:27 +05:30
Sanchayan Maity 8ea80b9af7 nvim: Switch to ferret & drop our bare bones grepper
See ferret's README for the advantages.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-06-14 11:22:03 +05:30
Sanchayan Maity e366962b4e nvim: plugin: statusline: Oops, make read only descriptive
Just R does not make any sense.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-05-22 10:31:54 +05:30
Sanchayan Maity 467a660409 nvim: Drop neomake, QFGrep and vim-grepper
Profiling with below
nvim -c 'profile start vim.log' -c 'profile func *' -c 'q'

shows that neomake adds to the start up time. Currently we only use it
for two tasks. Running hlint for Haskell and stack build asynchronously.

Use asyncdo and define a generic wrapper command for running makeprg
asynchronously. This can be used for anything as long as makeprg is
set correctly.

vim-grepper also adds somewhat to the startup time though not much. We
do not need the functionality of switching between grep tools. Here
again just use asyncdo and define a generic command for running grepprg
asynchronously.

Drop QFGrep as we can use in built Cfilter plugin for filtering the
quickfix list.

Note that all start times mentioned above are a few milliseconds not
even more than 5ms. However, we would like to be as fast as possible
and use in built functions.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-05-21 16:39:06 +05:30
Sanchayan Maity 3b7326b6ed nvim: plugin: statusline: Show read only or modified status
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-05-21 13:17:58 +05:30
Sanchayan Maity df18cc7ec4 nvim: plugin: gitjump: Git jump integration with vim
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-05-19 15:57:53 +05:30
Sanchayan Maity c1f6813a9d nvim: plugin: statusline: Drop hunk summary in status line
Hunk summary in status line has not been useful.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-05-19 15:33:17 +05:30
Sanchayan Maity 80e2aa9341 nvim: Refactor neovim configuration
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-05-07 13:06:50 +05:30
Sanchayan Maity f57a5fffc0 nvim: Switch to showing the full file path in statusline
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-05-01 17:57:21 +05:30
Sanchayan Maity f56bb8c5fb nvim: Drop vim-fugitive and move to gina
vim-fugitive from Tpope is synchronous on neovim. It is
asynchronous on vim when vim-dispatch is available but for
neovim it will always be synchronous. Gina is asynchronous
by default and does not freeze on large repos like fugitive
does. So drop fugitive, other plugins and settings dependent
on it.

While at it, also add some more good things from git gutter
and some shortcuts.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-04-26 18:29:07 +05:30
Sanchayan Maity d879a43b48 nvim: statusline: Add a hunk summary to the status line
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-04-24 20:35:31 +05:30
Sanchayan Maity f6c8b8d8fa nvim: Fix color scheme setting point
It seems since we are using hard coded colors, so we do not need the
auto command at all. Getting rid of it gives the right results.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-04-23 10:17:54 +05:30
Sanchayan Maity 8af9c11813 nvim: Drop dependency on vim-airline
Use a custom status line and buftabline.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-04-23 09:33:30 +05:30