Commit graph

386 commits

Author SHA1 Message Date
Sanchayan Maity ff93725694 nvim: treesitter: Update treesitter configuration 2021-10-02 17:19:34 +05:30
Sanchayan Maity 2ff1ba46e1 nvim: plugins: Add TSUpdate as post install hook for treesitter 2021-10-02 17:19:34 +05:30
Sanchayan Maity ef61388c72 nvim: plugins: Drop neoformat
With LSP providing formatting have not used this in more than a year.
Just drop it. Also it is pretty stupid to look for everything global &
not use language build tool to pick the correct formatter and its
configuration.
2021-10-02 17:19:34 +05:30
Sanchayan Maity 8a43a1c14f nvim: keymappings: Drop mapping to save
We have a keyboard macro to do this.
2021-10-02 13:03:12 +05:30
Sanchayan Maity 331885ea25 nvim: plugins: Drop vim-better-whitespace
Using formatter already does this, so drop it.
2021-10-02 12:45:08 +05:30
Sanchayan Maity 05194ded3a nvim: plugins: Load AnsiEsc plugin only on AnsiEsc command 2021-10-02 11:06:23 +05:30
Sanchayan Maity 95d5a10abc nvim: plugins: Drop SyntaxAttr 2021-10-02 11:06:23 +05:30
Sanchayan Maity ae4edc5bed nvim: plugins: Drop unneeded text object plugins 2021-10-02 10:05:12 +05:30
Sanchayan Maity 31780f0c25 nvim: keymappings: Drop highlight search mapping
<C-l> now clears search highlight and update diffs and is mapped by
default.

See
https://github.com/neovim/neovim/issues/14090#issuecomment-901882455.
2021-10-01 14:55:30 +05:30
Sanchayan Maity 4b8caad3b6 nvim: plugins: Drop cscope
Now that we have migrated to clang LSP for C, the only reason for
keeping it around was using it to find files in gst-build repository
which was structured in such a way that fzf and rg could not be used.
Now that GStreamer has moved to monorepo setup, we can use fzf and
rg just like in any project. No need for cscope anymore.
2021-09-30 14:20:42 +05:30
Sanchayan Maity 0a21f7d979 nvim: lsp: Explicitly set the log level 2021-09-30 13:55:49 +05:30
Sanchayan Maity 8aaccc4f16 nvim: lsp: Refactor and alignment clean ups 2021-09-27 18:46:55 +05:30
Sanchayan Maity b6063211f7 nvim: plugins: Fix snippets not showing up in completion
For some reason without adding the snippets to the runtime path,
snippets do now show up in completion.

Found the solution here though the issue is on Ultisnips
https://github.com/hrsh7th/nvim-cmp/issues/241
2021-09-27 16:40:55 +05:30
Sanchayan Maity be02b5ead7 nvim: Switch to nvim-cmp
nvim-compe has been deprecated. While we tried to make it a few days
without any completion support, in javascript/typescript could not get
the default omnicompletion to work at all. It is possible that this
could be due to nvim-lsp-ts-utils/null-ls but who is gonna debug.

Also tried MUcomplete but it just would not work. There are open issues
on this. See https://github.com/neovim/neovim/issues/12390 and also
https://github.com/lifepillar/vim-mucomplete/issues/179.

So here we are with nvim-cmp. Some observations in comparison to compe
before. Using buffer completion seems not possible as most of the times
LSP completion items then do not turn up. Do not know if this is server
specific but at least it is the case with Rust. compe seemed better
performance wise especially in tsserver and considering the buffer
problem mentioned above. Also, even with vsnip added as the completion
source can't seem to get any snippet specific completions working.

Could have ditched all completion support if I did not have to use
tsserver but need it for work currently. So we will stick to enabling
this and hopefully it improves in future.

Fuck nodejs, javascript and typescript.

For references see,
https://github.com/kristijanhusak/neovim-config
https://github.com/sQVe/dotfiles/tree/master/config/nvim
2021-09-27 16:29:18 +05:30
Sanchayan Maity b95a14b8d1 nvim: lsp: Fix enabling of range format support again!
47b1578 did not actually fix it. We need to keep using 'gq' but actually
correctly specify whether we want normal or visual mode. Also disable
range formatting explicitly for tsserver.
2021-09-27 15:23:12 +05:30
Sanchayan Maity c781b15582 nvim: Drop signify and switch to gitsigns
signify seems to be giving an error after somewhat long usage of
"E489: too many highlight and syntax groups".
2021-09-27 13:14:27 +05:30
Sanchayan Maity 91eecec611 nvim: keymappings: Drop the mapping for help 2021-09-27 13:14:27 +05:30
Sanchayan Maity 975e6a646e nvim: plugins: Switch from vim-which-key to which-key 2021-09-27 13:14:20 +05:30
Sanchayan Maity 00670a867f nvim: lsp: Enable rust-tools for inlay hints 2021-09-27 12:31:27 +05:30
Sanchayan Maity 97db1c6c9d nvim: keymappings: Enable unique and refactor/cleanup
Enable unique to detect and avoid conflicting key mappings.
2021-09-26 11:51:04 +05:30
Sanchayan Maity f7d12b27d3 nvim: lsp: Alignment cleanup 2021-09-26 11:50:36 +05:30
Sanchayan Maity 47b157805d nvim: lsp: Fix enabling of range format support
If range formatting is supported we should check that first to enable
it else since most LSP servers support formatting, without range
formatting check being first, it would never be enabled.
2021-09-25 18:21:51 +05:30
Sanchayan Maity 8801b26fa9 nvim: lsp: Add range formatting with motion 2021-09-25 15:26:52 +05:30
Sanchayan Maity eebffce98e nvim: lsp: Add back custom preview function
Follow up to 469e367.
2021-09-25 15:26:52 +05:30
Sanchayan Maity f01b1d6a52 nvim: lsp: Use Leader k mapping for LSP hover
While at it, align code to look nice.
2021-09-25 15:13:49 +05:30
Sanchayan Maity 616c4f003c nvim: lsp: Increase value of debounce didChange notifications 2021-09-25 13:21:01 +05:30
Sanchayan Maity 469e36756b nvim: lsp: Drop custom preview function
Those functions do not work anymore. May be we will add it later
via https://github.com/rmagatti/goto-preview.
2021-09-25 13:21:01 +05:30
Sanchayan Maity 9ab36d4b1b nvim: lsp: Fix null-ls setup 2021-09-25 13:21:01 +05:30
Sanchayan Maity 643e1be349 nvim: keymappings: Add mappings to paste from + & * register 2021-09-22 17:52:15 +05:30
Sanchayan Maity 71f5c334f1 nvim: plugins: Drop nvim-peekup
Does not work correctly and keeps pasting in the first window instead of
where the cursor is placed.
2021-09-21 11:02:25 +05:30
Sanchayan Maity 52ff789cf3 nvim: Switch to the maintained galaxyline fork
See
https://github.com/NTBBloodbath/galaxyline.nvim
https://www.reddit.com/r/neovim/comments/pq3zvq/galaxylinenvim_is_back/
2021-09-21 11:02:25 +05:30
Sanchayan Maity e1cfc0408d nvim: yolokai: Sync with nvim-highlite upstream 2021-09-13 18:00:40 +05:30
Sanchayan Maity 5b6685b165 nvim: lsp: Enable clangd for C and C++ 2021-09-10 14:06:59 +05:30
Sanchayan Maity 555026ef80 nvim: lsp: Sync nvim-lsp-ts-utils settings with upstream 2021-08-31 11:02:34 +05:30
Sanchayan Maity 88ed57fb8b nvim: keymappings: Enable escape and arrow keys
Now that we use Planck EZ as our main keyboard with Colemak as the
layout, allow use of escape and arrow keys. HJKL are not usable the
same way as before.
2021-08-06 10:51:22 +05:30
Sanchayan Maity 8f5e45cb52 nvim: keymappings: Add mapping to copy to clipboard 2021-08-06 10:51:22 +05:30
Sanchayan Maity bdc14d4ebc nvim: Add lightbulb for discoverable LSP code actions 2021-07-26 18:44:41 +05:30
Sanchayan Maity 3e7fd609ec nvim: lsp: Sync nvim-lsp-ts-utils configuration with upstream 2021-07-21 11:00:40 +05:30
Sanchayan Maity cc2bedbe5d nvim: keymappings: Add mappings to move lines 2021-07-20 21:01:13 +05:30
Sanchayan Maity c646381a00 nvim: lsp: Add support for lua 2021-07-17 18:38:32 +05:30
Sanchayan Maity 4565822924 nvim: lsp: Switch to pylsp
pyls is deprecated and not supported in nvim-lspconfig anymore.

The supported python language server is here.
https://github.com/python-lsp/python-lsp-server
2021-07-15 18:13:52 +05:30
Sanchayan Maity a493297cae nvim: plugins: For handling files with ANSI escape sequences better 2021-07-12 12:23:52 +05:30
Sanchayan Maity 119c91a6b7 nvim: plugins: Add nvim-gdb 2021-07-05 17:39:56 +05:30
Sanchayan Maity ffadf1cf4f nvim: keymappings: Map ;; to :
Let's us get over the annoyance of having to press shift for using :.
2021-07-05 10:48:53 +05:30
Sanchayan Maity fff7723126 nvim: treesitter: Enable Haskell 2021-06-28 16:43:06 +05:30
Sanchayan Maity 112239bd31 nvim: plugins: Drop indentLine
indentLine seems to have general performance issues.
2021-06-26 11:19:47 +05:30
Sanchayan Maity 6406ae8a71 nvim: plugins: Drop plugins
Drop plugins we never use anymore or got around to using.
2021-06-23 12:30:11 +05:30
Sanchayan Maity 44a39eee24 nvim: treesitter: Enable playground
Helps to see what treesitter queries are being made. Would be helpful in
tuning the color scheme.
2021-06-23 12:28:44 +05:30
Sanchayan Maity 0649b639da nvim: treesitter: Force nvim-treesitter to use a specific compiler
Required for Haskell. See
https://github.com/tree-sitter/tree-sitter-haskell#building-with-nvim-treesitter
2021-06-19 11:26:13 +05:30
Sanchayan Maity 108630d19c nvim: Move plugin configuration files to after/plugin
Now that neovim runtime can also source lua files from traditional vim
runtime directories like after/plugin/ftplugin etc, move all plugin
configuration files to after/plugin.
2021-06-17 10:07:51 +05:30
Sanchayan Maity ca9e0d1754 nvim: after/plugin: fzf: Move fzf configuration
Do all fzf configuration in after/plugin instead of lua/modules. While at
it, add functionality to add fzf items to the quickfix list.
2021-06-16 19:11:11 +05:30
Sanchayan Maity 7fb370f824 nvim: lsp: Enable code lens support
Relevant PR
https://github.com/neovim/neovim/pull/13165
2021-06-15 15:41:28 +05:30
Sanchayan Maity 2fcdea1cb2 nvim: keymappings: Add a key mapping to help with opening vim docs 2021-06-15 09:56:23 +05:30
Sanchayan Maity 3d8ccb4f23 nvim: yolokai: Sync with nvim-highlite upstream 2021-06-15 08:34:27 +05:30
Sanchayan Maity 0eb9b86927 Revert "nvim: Fix accessing t_Co"
This reverts commit 72e3b80274.
2021-06-15 08:34:27 +05:30
Sanchayan Maity e715f19d1e nvim: modules: Alignment cleanup
Slight OCD :).
2021-06-12 12:24:57 +05:30
Sanchayan Maity 511d5a17aa nvim: plugins: Add plenary and null-ls
nvim-lsp-ts-utils now has plenary and null-ls as a requirement.
2021-06-10 10:30:27 +05:30
Sanchayan Maity 4e2abc80df nvim: after/ftplugin: gitrebase: Add vim-interactive-rebase-reverse
The plugin is a pretty small ftplugin. Just add it to our ftplugin.
This also fixes the issue where this plugin did not take affect
when using interactive rebase from within fugitive.
2021-05-29 13:39:44 +05:30
Sanchayan Maity 72e3b80274 nvim: Fix accessing t_Co
With neovim/neovim#13479 merged, window option needs to be used for
accessing t_Co correctly.
2021-05-29 13:33:32 +05:30
Sanchayan Maity 7383245dd3 nvim: plugins/lsp: Add nvim-lsp-ts-utils 2021-05-24 17:20:23 +05:30
Sanchayan Maity 25afe0527c nvim: keymappings: Add a key mapping to select last pasted/yanked text 2021-05-24 15:59:29 +05:30
Sanchayan Maity 66f07fba89 nvim: plugins/treesitter: Enable treesitter text objects 2021-05-22 15:30:52 +05:30
Sanchayan Maity f846dace39 nvim: keymappings: Drop mapping for copying whole buffer
Now that we have a text object for the whole buffer, this is not
required anymore.
2021-05-21 15:40:11 +05:30
Sanchayan Maity 66b022dcb0 nvim: plugins: Add various text object plugins 2021-05-21 11:16:43 +05:30
Sanchayan Maity 9848348881 nvim: plugins: Drop all LISP support
Flights of fancy. Thought I will learn LISP but dynamically typed
languages are just annoying to work with.
2021-05-17 20:39:46 +05:30
Sanchayan Maity 5462060452 nvim: plugins: Drop rainbow
Does not really work with treesitter.

There is nvim-ts-rainbow but it seems to have performance problems.
https://github.com/p00f/nvim-ts-rainbow/issues/5
2021-05-17 20:38:09 +05:30
Sanchayan Maity 04b2a511e1 nvim: treesitter: Add fish and nix
Drop the syntax highlighting plugins for fish and nix and switch to
treesitter. The ftdetect is taken from the respective plugins.

We might need to add the indent specific scripts for fish and nix
later since we are not enabling indent with treesitter.
2021-05-14 19:36:43 +05:30
Sanchayan Maity ed8fd2a359 nvim: plugins: Drop textobj-word-column
Does not seem to work as expected due to possible conflict with targets.
2021-05-14 17:12:58 +05:30
Sanchayan Maity e909c059a4 nvim: modules: completion: min_length needs to be 2
This is required if we want completion to trigger on identifiers like
'if' to be able to select snippets.
2021-05-14 16:34:25 +05:30
Sanchayan Maity 7767b23f69 nvim: plugins: Drop conflict-marker
We have been mostly relying on diffconflicts plugin to resolve merge
conflicts. For complex merge conflicts, it becomes difficult to
understand which conflict hunk to pick. The syntax highlighting also
stopped taking effect due to treesitter probably. So just drop this.
Introducing a mapping to jump among conflicts would be helpful.

We let the syntax highlighting entries in our color scheme be, just
in case we decide to revisit this.
2021-05-14 13:13:43 +05:30
Sanchayan Maity e24fc200ec nvim: Add support for using snippets 2021-05-13 21:07:42 +05:30
Sanchayan Maity ca46007f89 nvim: lsp: Debounce didChange notifications to the server 2021-05-13 21:07:42 +05:30
Sanchayan Maity 1c9b8aae40 nvim: plugins: Add support for Coq 2021-05-13 19:38:37 +05:30
Sanchayan Maity aa1bdca912 nvim: plugins: Drop guile support
We added this to explore guix but lost interest. Also no time. Will only
explore racket if at all.
2021-05-12 19:23:36 +05:30
Sanchayan Maity c768cd89f1 nvim: lsp: Remove LSP workspace mappings
We never seem to need those.
2021-05-12 18:06:12 +05:30
Sanchayan Maity 2eea1feb69 nvim: keymappings/plugins: Add support for marks and registers
We drop vim-system-copy and will explicitly use registers when required.
Add nvim-peekup to help with registers and vim-signature for marks. Some
additional helper bindings for working with marks are added as well.
2021-05-12 18:06:12 +05:30
Sanchayan Maity 49c9fd9a2c nvim: modules: workspace: Drop key mapping for toggling workspace
Rather than waste a key mapping starting with 'p', we can call this
ourselves when required.
2021-05-12 18:06:12 +05:30
Sanchayan Maity 0d806355ab nvim: keymappings: Add helpful mappings for visual block shift & buffer copy 2021-05-08 14:40:12 +05:30
Sanchayan Maity 16a797df6f nvim: modules: fzf: Use the leader 'fm' mapping for marks 2021-05-08 14:40:04 +05:30
Sanchayan Maity 91604ca16c nvim: lsp/plugins: Add support for automatically showing fn signature 2021-05-08 14:39:58 +05:30
Sanchayan Maity a899271748 nvim: plugins: Search in visual mode using * and # 2021-05-08 14:39:52 +05:30
Sanchayan Maity 3efb1c1c94 nvim: plugins: Drop aniseed
It's really not required and we do not intend to write out nvim
configuration in fennel either. Conjure support for lisp is enough.
2021-05-08 14:39:45 +05:30
Sanchayan Maity d5be9384ed nvim: lua: plugins: Update aniseed and conjure 2021-05-05 20:58:38 +05:30
Sanchayan Maity b064bb14a9 nvim: lua: plugins: Add diffview
Also add a helper on lines similar to Git difftool from fugitive.
2021-05-03 19:25:38 +05:30
Sanchayan Maity b6e2f23516 nvim: lua: autocmd: Fix highlight on yank autocmd
Still does not seem to work though 🤔.
2021-05-02 13:16:29 +05:30
Sanchayan Maity 734eda3f37 nvim: lua: statusline: Sync with galaxyline changes upstream 2021-05-01 16:37:00 +05:30
Sanchayan Maity 3c3558b3d0 Revert "nvim: lua: plugins/colors: Switch to which-key.nvim"
This reverts commit 86de71d5da.

This plugin seems to create problems for things that should work. For
example, trying to paste with 'p' triggers which-key when it should not.
Disabling everything in setup except for Leader prefixed keys does not
work either.
2021-04-30 14:14:48 +05:30
Sanchayan Maity 86de71d5da nvim: lua: plugins/colors: Switch to which-key.nvim 2021-04-29 19:41:30 +05:30
Sanchayan Maity 07bd4e8592 nvim: lua: plugins: Drop hlslens 2021-04-29 13:41:19 +05:30
Sanchayan Maity 9d3efb1a3c nvim: lua: autocmd: Drop scrollbar autocmd
Should have been cleaned as part of 5058b6b.
2021-04-29 10:58:41 +05:30
Sanchayan Maity 053ddbf55e nvim: lua: plugins: Drop vim-tmux-focus-events
This plugin is now obsolete and no longer needed as both neovim and vim
(since version 8.2.2345) have native support for this functionality.
2021-04-28 10:58:39 +05:30
Sanchayan Maity 10237ec093 nvim: lua: plugins: Drop nvim-bqf and add back QFEnter
With nvim-bqf when opening the quickfix list, it jumps around the opened
buffers. For example, when calling LSP reference on a variable in buffer
one, it jumps to buffer three after the quickfix list opens. This is
annoying, so dump it. The preview feature has not been that helpful
anyways.
2021-04-28 10:58:12 +05:30
Sanchayan Maity baa70ee678 nvim: keymappings: Add a useful mapping for closing tabs 2021-04-22 10:55:37 +05:30
Sanchayan Maity c8b64ae94f Revert "nvim: keymappings: Do not use 'jk' for Esc anymore"
This reverts commit 915a5427e3.
2021-04-19 12:20:00 +05:30
Sanchayan Maity 66213e0d06 nvim: modules: floaterm: Drop binding for lazygit
Fugitive actually has everything one needs on a daily basis.
2021-04-19 12:20:00 +05:30
Sanchayan Maity 915a5427e3 nvim: keymappings: Do not use 'jk' for Esc anymore
With 60% keyboard, Esc is easier to hit and in sway, may be we should
map Caps to Esc.
2021-04-07 20:31:37 +05:30
Sanchayan Maity 39aaa2fd5c nvim: Update conjure to the new release 2021-04-02 20:05:53 +05:30
Sanchayan Maity 3b2e3adee1 nvim: plugins: Enable support for guile 2021-03-10 21:36:55 +05:30
Sanchayan Maity 8943ecf656 nvim: plugins: Update conjure and aniseed 2021-03-10 21:36:55 +05:30
Sanchayan Maity 05a87e36a8 nvim: plugins: Switch from parinfer to vim-sexp 2021-03-10 21:36:55 +05:30
Sanchayan Maity e8ef3a4ded nvim: lsp: Enable typescript language server
Need it for some work stuff :(.
2021-03-10 21:36:55 +05:30
Sanchayan Maity 3707429737 nvim: lsp: Update LSP key bindings 2021-02-25 17:53:45 +05:30
Sanchayan Maity 7360f65e2f nvim: lsp: Enable python language server 2021-02-25 17:35:50 +05:30
Sanchayan Maity eff13b5225 nvim: yolokai: Sync with upstream nvim-highlite 2021-02-25 13:27:28 +05:30
Sanchayan Maity abd22a73db nvim: treesitter: Enable some more languages with treesitter 2021-02-25 12:32:05 +05:30
Sanchayan Maity c9526d8997 nvim: Drop vim-smoothie 2021-02-22 14:23:01 +05:30
Sanchayan Maity ae391080a1 nvim: Sync nvim-compe settings with upstream 2021-02-18 19:07:13 +05:30
Sanchayan Maity 47e40e765d nvim: Add support for inserting visual block to anywhere 2021-02-16 20:38:03 +05:30
Sanchayan Maity c5cd375c25 nvim: modules: completion: Move key bindings in lua module
nvim-compe recently included instructions on using backspace and tab
correctly. Include the same configuration.
2021-02-08 11:42:01 +05:30
Sanchayan Maity 51b848d1f6 nvim: lua: completion: Enable treesitter completion with nvim-compe
compe recently added completion support with treesitter. Enable it.
2021-02-05 13:58:11 +05:30
Sanchayan Maity 75f5b0d63e nvim: lua: plugins: Drop QFEnter
Now that we use nvim-bqf it already provides opening a quickfix entry in
either of tab, split or vsplit. So drop QFEnter.
2021-02-03 16:23:31 +05:30
Sanchayan Maity a18a122b97 nvim: lua: lsp: Drop lspfuzzy
Now that we are using nvim-bqf, we have a nicer interface to quickfix
list and nvim-bqf also integrates fzf mode. So drop lspfuzzy.
2021-02-02 20:28:51 +05:30
Sanchayan Maity cb6eef2314 nvim: lua: lsp: Drop lsp-status
We use galaxyline for the status line and it already provides
LSP diagnostics info. So drop lsp-status. While the progress
message during the loading in status line is nice, may be will
incorporate it later by picking only the required pieces.

While at it, expose all diagnostics via statusline using galaxyline
components.
2021-02-02 20:13:07 +05:30
Sanchayan Maity 9918959aa2 nvim: Switch to nvim-compe 2021-02-02 18:09:35 +05:30
Sanchayan Maity 6ef47458e2 nvim: lsp: Move the completion item symbols from completion-nvim to LSP 2021-02-02 17:33:21 +05:30
Sanchayan Maity 91be84b9d7 nvim: Switch back to fugitive again :)
With most of our operations now being done through fzf + git command
line or lazygit, we primarily only require the log & blame facilities.
The blame interface in Gina is confusing.

This time however, we include some nice helper functions of our own.
2021-02-01 18:17:13 +05:30
Sanchayan Maity a23caf6d12 nvim: Introduce LISP support 2021-02-01 10:35:29 +05:30
Sanchayan Maity a0739c3ef9 nvim: Switch back to vim-signify
vim-signify recently fixed the below issue which was a problem earlier.
https://github.com/mhinz/vim-signify/issues/345

Considering that gitsigns exhibits a problem where the complete sign
column is marked while in the middle of a rebase, switch back to using
signify.
2021-01-30 15:03:57 +05:30
Sanchayan Maity 48dff4004d nvim: lua: plugins: Do not use file type loading for Haskell plugins
The syntax plugin does not seem to take an effect, when the file type
loading feature from packer is used. So, remove it.
2021-01-27 09:13:47 +05:30
Sanchayan Maity 1dbb82fc49 nvim: Update LSP status configuration variables 2021-01-27 09:13:47 +05:30
Sanchayan Maity 47ab28723f nvim: modules: statusline: Use srcery variant for white foreground 2021-01-22 16:10:43 +05:30
Sanchayan Maity 874a2801d4 nvim: lua: plugins: Add nvim-bqf to improve quickfix 2021-01-21 10:48:59 +05:30
Sanchayan Maity 54b66455cd nvim: lua: modules: gitsigns: Enable hunk text objects 2021-01-17 11:50:34 +05:30
Sanchayan Maity 14ebb51f9f nvim: plugins: Drop vim-hoogle
With LSP enabled for Haskell, we do not really need this.
2021-01-16 12:28:44 +05:30
Sanchayan Maity 795fe5208b Revert "nvim: Enable treesitter refactor and text objects"
This reverts commit 41f1e85929.

Enabling these two, seems to somehow result in highlighting not working
anymore. So disable them.
2021-01-14 20:05:41 +05:30
Sanchayan Maity 4efbec8683 nvim: treesitter: Enable some more languages 2021-01-14 20:05:41 +05:30
Sanchayan Maity 30011d5c9d nvim: Add SyntaxAttr plugin to help show highlight group under cursor 2021-01-13 16:04:27 +05:30
Sanchayan Maity 41f1e85929 nvim: Enable treesitter refactor and text objects 2021-01-12 16:34:52 +05:30
Sanchayan Maity d0e3d43830 nvim: modules: statusline: Show file name for inactive buffer 2021-01-11 12:11:51 +05:30
Sanchayan Maity 757b29b026 nvim: Allow doing commits from within floating terminal
With this we can invoke git commit and not have a nested neovim
instance. This also makes 'C' option in lazygit to work properly
when lazygit is being used from the floating terminal with floaterm.
2021-01-09 17:21:17 +05:30
Sanchayan Maity 94865fce59 nvim: Add customised LSP labels
Taken from
https://github.com/lukas-reineke/dotfiles/blob/master/vim/lua/lsp.lua
2021-01-08 20:44:39 +05:30
Sanchayan Maity 5058b6b6b0 nvim: lua: plugins: Drop scrollbar 2021-01-05 14:39:59 +05:30
Sanchayan Maity fcbdfc31ab nvim: Fix LSP configuration
Not sure what changed in recent releases for either nvim, packer or
lspconfig plugins, but, our custom LSP configuration file seems to
not be loaded or have any effect when specified via packer's config
directive. So load it manually in init.
2021-01-01 11:56:33 +05:30
Sanchayan Maity f73f40f5af nvim: Drop searchlight and switch to hlslens 2020-12-23 16:38:55 +05:30
Sanchayan Maity 42f707adb4 nvim: Drop syntax highlighting plugins we do not need 2020-12-23 16:38:55 +05:30
Sanchayan Maity dfe44fb14c git/nvim: Switch to using diffconflicts for resolving merge conflicts
While we dropped diffconflicts earlier and switch to vanilla vimdiff,
two way merges are definitely better than three way merges. 3 way merge
as in gina or vimdiff is extremely confusing except for may be the
simplest of merge conflicts.

conflict-marker and diffconflicts should let us handle all cases.
2020-12-19 16:29:06 +05:30
Sanchayan Maity 766a429ce7 nvim: yolokai: Sync with nvim-highlite upstream 2020-12-19 09:53:09 +05:30
Sanchayan Maity 8b8b7ec139 nvim: modules: floaterm: Add key mapping to open lazygit directly 2020-12-18 13:55:42 +05:30
Sanchayan Maity 97d10b6a1b nvim: modules: gitsigns: Sync settings with upstream 2020-12-16 11:26:23 +05:30
Sanchayan Maity 62553ba8c7 nvim: plugins/lua: Add lspfuzzy 2020-12-14 17:16:28 +05:30
Sanchayan Maity 8e07da50c9 nvim: Add pandoc support 2020-12-14 12:41:35 +05:30
Sanchayan Maity 2e6e01eb2a nvim: lua: plugins: Drop edita
We added edita to be able to do interactive rebase inside neovim
terminal which Gina does not support by default.

See issue
https://github.com/lambdalisue/gina.vim/issues/276

Mostly haven't been using this, just relying on spawning a separate pane
in tmux or kitty window to do the rebase. So drop this.
2020-12-11 11:40:51 +05:30
Sanchayan Maity eb8346e80f nvim: lua: lsp: Add support for incremental sync
Support for incremental sync landed in neovim with this MR.
https://github.com/neovim/neovim/pull/13371
2020-12-09 10:14:18 +05:30
Sanchayan Maity ab59251f2e nvim: lua: lsp: Fix call to show line diagnostics 2020-12-08 18:35:20 +05:30
Sanchayan Maity 1e55c5d336 Revert "nvim: Switch to using toggleterm instead of floaterm"
This reverts commit 7ef8054d41.
2020-12-08 16:42:42 +05:30
Sanchayan Maity fef45b50e9 Drop init.vim
With the below PR merged
https://github.com/neovim/neovim/pull/12235

init.lua is now first class and we have no need for init.vim anymore.
2020-12-07 13:05:08 +05:30
Sanchayan Maity 7ef8054d41 nvim: Switch to using toggleterm instead of floaterm 2020-11-25 10:29:36 +05:30
Sanchayan Maity b861963f9a nvim: Add tmux completion source for completion-nvim 2020-11-21 12:08:25 +05:30
Sanchayan Maity 9a2f273a7d nvim: Sync with nvim-highlite upstream 2020-11-21 12:08:25 +05:30
Sanchayan Maity 1a88bddf19 nvim: lua: plugins: No need to specify branch anymore
With this commit upstream
a68b21be60

packer can handle finding default branches by itself and does not error
out like earlier for anything named other than master.
2020-11-21 11:13:02 +05:30
Sanchayan Maity 50a5d55fe4 nvim: Update for nvim LSP diagnostics
The diagnostic-nvim plugin got merged upstream and as a result the
plugin is not required anymore. LSP diagnostic highlight group names
were also updated.

See the below issues for notes on migration.
https://github.com/neovim/neovim/pull/12655
https://github.com/nvim-lua/diagnostic-nvim/issues/73
2020-11-21 11:05:07 +05:30
Sanchayan Maity 77514eaea0 nvim: Fix loading of git messenger
Relying on lazy loading on command invocation feature seems to not make the
default key bindings of the plugin take effect. Remove it.
2020-11-17 18:36:45 +05:30
Sanchayan Maity 7bb5343314 nvim: lua: modules: gitsigns: Add preview hunk feature now available upstream 2020-11-17 18:19:34 +05:30
Sanchayan Maity 974c399bea nvim: nvim lsp lua module name has changed upstream 2020-11-15 22:39:01 +05:30
Sanchayan Maity be594ae121 nvim: Use nvim_command for disabling back ups and swap
Using the vim.o API seems to have no effect for these three options. Set
them via the 'nvim_command' API.
2020-11-11 19:43:18 +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 07739669c5 nvim: modules: gitsigns: Update key map as per upstream changes 2020-11-10 15:47:09 +05:30
Sanchayan Maity 7bc8295486 nvim: Clean up commands for searching word under cursor 2020-11-05 18:58:37 +05:30
Sanchayan Maity 801f9725b4 nvim: Add easy-align 2020-11-05 11:39:57 +05:30
Sanchayan Maity 7887a04d62 Revert "nvim: lua: plugins: Remove post install hook for fzf"
This reverts commit aba40d88df and also
fixes the post install hook command.

Original issue:
https://github.com/wbthomason/packer.nvim/issues/83

Fixed by:
6f9efb232a
2020-11-05 11:39:28 +05:30
Sanchayan Maity aba40d88df nvim: lua: plugins: Remove post install hook for fzf
The post install hook does not work in packer currently and has no
effect. Remove it.
2020-11-03 12:25:13 +05:30
Sanchayan Maity 2c5c6b7c1a nvim: Drop tabular 2020-10-30 16:37:06 +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 21167993bf nvim: Use gitsigns
Currently there is an observable bug where this doesn't play well with
gina buffers. Perhaps it should be disabled for any gina buffers or
something similar.
2020-10-28 11:11:46 +05:30
Sanchayan Maity d0687b7f1a nvim: Drop vim-signify
The undo hunk feature is complete garbage at the moment. Also it seems
whenever we have changes and thus signs in gutter, sometimes there is
an observable sluggishness.
2020-10-27 21:28:46 +05:30
Sanchayan Maity 47fcbd2233 nvim: Some consistency cleanup 2020-10-26 11:01:54 +05:30
Sanchayan Maity efc8bf88b5 nvim: Except for gina migrate everything in after/plugin to lua 2020-10-24 11:06:27 +05:30
Sanchayan Maity a382ca376a nvim: lua: plugins: Fix paq cleaning itself
Since PaqClean cleans up anything in packages directory that are not in
configuration, including itself, it is necessary to include paq itself
in the packages list.
2020-10-24 11:06:27 +05:30
Sanchayan Maity b1c51c6e83 nvim: Migrate from vim-plug to paq-nvim 2020-10-24 11:06:27 +05:30
Sanchayan Maity cb16ddec0c nvim: Refactor configuration and start moving to lua 2020-10-23 17:23:51 +05:30
Sanchayan Maity 8c69639144 nvim: lsp: Drop purescript language server 2020-10-23 13:34:31 +05:30
Sanchayan Maity ded93ed2fe nvim: HLS is now supported in nvim-lspconfig
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-09-16 13:03:41 +05:30
Sanchayan Maity af410754a4 nvim: Add nvim-treesitter
Drop the syntax highlight plugins for the languages for which treesitter
is now enabled.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-09-11 20:21:35 +05:30
Sanchayan Maity b006265b14 nvim: Sync with changes to nvim-highlite upstream
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-09-07 12:13:33 +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 a3e7f17fa7 nvim: lua: lsp: Add key binding for LSP code action
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-08-26 12:37:31 +05:30
Sanchayan Maity 5b4ed5f9c6 nvim: Sync with changes to nvim-highlite upstream
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-07-29 13:24:20 +05:30
Sanchayan Maity 8b9e46b8b8 nvim: Switch to using a color scheme template engine
Use this color scheme template to have a proper custom monokai color
scheme variant.
https://github.com/Iron-E/nvim-highlite

We will call it yolokai. YOLO monokai. While at it, drop all earlier
ones.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-07-07 16:34:51 +05:30
Sanchayan Maity a2b8d386a0 nvim: lua: lsp: Add support for peek definition
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-06-11 15:29:48 +05:30
Sanchayan Maity ebd1bd566b nvim: lua: nvim_lsp: hls: Do not start unless hie.yaml is found
Do not start haskell-language-server unless a hie.yaml file is present
for proper multi-component support.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-06-09 17:26:23 +05:30
Sanchayan Maity 690a1bdae8 nvim: lua: Switch to haskell-language-server for Haskell
This is not available in upstream nvim_lsp repository but works with a
simple lua config addition for the same.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-06-05 19:42:33 +05:30
Sanchayan Maity 1ae0477bfb nvim: lua: lsp: Add key bindings for navigating LSP diagnostics
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-06-03 16:53:40 +05:30
Sanchayan Maity fa04744c9a nvim: Enable purescript language server
This does not perform any better than purs ide and psc-ide-vim could not
jump to definitions in other components which is the same case here.
But, at least we now need one less package and additional bindings for
psc-ide-vim.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-06-03 14:26:19 +05:30
Sanchayan Maity f40584b6a9 nvim: Enable LSP support for Haskell
With ghcide release v0.2.0 adding multi-component support this should
work more widely now. We still can have tags, so change the key binding
for jump to definition and drop key binding K for Hoogle.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-06-03 12:35:15 +05:30
Sanchayan Maity dc895fe1ee nvim: Refactor the nvim-lsp settings
This also helps in the key bindings now being in effect only for which
language servers has been enabled.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-05-29 11:14:00 +05:30