Commit Graph

162 Commits

Author SHA1 Message Date
Dionisio E Alonso f14497ac68 feat: Use the same coding-style from other Vim modules
There was missing some spacing here and there used to separate parts.
2024-04-17 09:37:40 -03:00
Dionisio E Alonso 91a17f8da5
Merge branch 'master' 2024-04-16 17:50:30 -03:00
Dionisio E Alonso 8f7134b3bb feat(Neovim/Vim): Add context plugins for both editors
Added context plugins that keep block-starting lines at the top of the
editing window, to have some context of where is located the code one is
editing.
2024-04-16 16:05:57 -03:00
Dionisio E Alonso a7a7066fe0
feat(Neovim/Vim): Tune statusline a little bit
Removed the first-line a warning/error occurs, info from the status-line
for both, Neovim's LSP server and Vim's CoC.  That information can be
obtained when going through the quickfix list of diagnostics, instead of
seeing only the first and then the second, if the first gets fixed.

Also, as a bonus, enabled the global-status-line setting in Neovim.
2024-04-16 14:25:05 -03:00
Dionisio E Alonso 89613a8daa Merge branch 'master' 2024-04-10 22:47:31 -03:00
Dionisio E Alonso 465dfb7080 feat(vim-airline): Change icon shown for UNIX file format
Although it is nice to see the corresponding GNU/Linux distro logo in
the status bar; there is no relation between Debian, Fedora, Arch, etc,
and the file having UNIX line endings.

This patch anonymizes that by making the status bar show just a Tux then
the file has UNIX line-ending terminations.
2024-04-10 21:57:37 -03:00
Dionisio E Alonso e96f3220ab fix(vim-plugins): Minor correction in vim-plug settings 2024-04-10 14:53:20 -03:00
Dionisio E Alonso 05f3d81877 feat(vim-plugins): Relocate plugin following documentation
As the README states, the function of CoC in Vim is to provide
LSP-clinet capabilities.  As such, and as all LSP-stuff in Neovim is
packed under the `lsp` category in `packpath`, the same structure is
being replicated now for Vim.
2024-04-08 22:08:50 -03:00
Dionisio E Alonso df58ffee2a refactor(vim-plugins): Mark vim-airline dependencies
Marked some plugins needed for vim-airline as suggested in vim-plug's
documentation:
https://github.com/junegunn/vim-plug/wiki/faq#managing-dependencies

It's stylistic only since vim-plug doesn't handle dependencies per-se.
2024-04-08 11:27:17 -03:00
Dionisio E Alonso 7b2ea5cf9d refactor(Neovim/Vim): Adapt settings according to docs
Used docs recommendations for concatenating strings in Neovim and Vim
settings.
2024-04-08 09:34:38 -03:00
Dionisio E Alonso f8e79c5cd8 Merge branch 'master' 2024-04-07 23:55:14 -03:00
Dionisio E Alonso 3718f9ba0a fix(vim-plugins): Correct installation order for plugins
Currently, installed plugins were being loaded after some commands
provided by them were called, incurring in race-condition errors when
launching Neovim/Vim.

This reordering makes available plugins before their commands are
invoked.
2024-04-07 23:23:18 -03:00
Dionisio E Alonso 4d95556967 refactor(Neovim/Vim): Adapt settings according to docs
Used docs recommendations for concatenating strings in Neovim and Vim
settings.
2024-04-04 23:10:35 -03:00
Dionisio E Alonso 4da012f342 feat(Vim): Group all Neovim's defaults in a separate module
Put together all the defaults brought from Neovim, in a separate runtime
file in Vim's config dir.
2024-04-04 23:07:56 -03:00
Dionisio E Alonso e3979594cb feat(Vim): Add nice default for number of tabs 2024-04-04 15:27:33 -03:00
Dionisio E Alonso ac555813a9 fix(Neovim/Vim): Correct airline mapping of modes 2024-04-04 12:45:18 -03:00
Dionisio E Alonso 10255c0b55 feat(vim-plugins): Replace deprecated plugin
Vim's plugin auto-pairs has been unmaintained for several years now.  A
new project has risen as a fork of the original one.

This patch uses the new fork and sets some defaults existing in the
previous plugin.
2024-04-03 21:43:23 -03:00
Dionisio E Alonso 22a64f89f9 feat(vim-plugins): Delete unmaintained plugin for (Neo)Vim
indentLine has had support dropped since mid-2023.  There is no
replacement that works on both Neovim and Vim; but almost the same
behavior can be achieved with `listchars` and some autocmd magic.

So the plugin is getting removed as dependency from this repo.
2024-04-03 15:36:26 -03:00
Dionisio E Alonso e839064e12 feat(vim-plugins): Move some behavior away from plugins
indentLine is archived since last year and with that, there are no
further updates.  But the project's GitHub states that the same behavior
can be achieved with Vim's listchars, so this patch does that.
2024-04-03 15:22:53 -03:00
Dionisio E Alonso 7343d1aab6 fix(vim-plugins): Proper close of vim-plug environment
Anticipating the possible migration to a different home for plugins,
and using the advantage that `plug#end()` command ensures adding
plugins to the Vim's runtimepath.

Until now, plugins are loaded because they are located in Vim's native
package structure.  That location may change for this repo.

As `plug#end()` command doesn't duplicate paths in the runtimepath,
there is no need to omit it.  On the other hand, it was necessary to add
the `'on': []` Plug's option for those plugins that currently reside in
`opt` Vim's package directories to prevent those plugins from being
loaded in the runtimepath, as such plugins are excluded from runtimepath
but their commands loaded for Vim anyways.
2024-03-26 15:50:07 -03:00
Dionisio E Alonso 7ce3e704f0 feat(vim-plugins): Migrate vim plugin to vim-plug 2024-03-26 14:40:54 -03:00
Dionisio E Alonso 6b9252cfa4 feat(vim-plugins): Migrate statusline plugins to vim-plug
Migrate management of the statusline-related plugins from git
sub-modules to vim-plug.
2024-03-26 14:33:41 -03:00
Dionisio E Alonso 1081f640a6 feat(vim-plugins): Migrate four essential plugins for Vim
Moved the top four most essential plugins to have on Vim, from git
sub-modules to vim-plug.
2024-03-26 14:14:42 -03:00
Dionisio E Alonso a856be373d fix(vim-plugins): Coding-style correction for long line 2024-03-26 09:34:40 -03:00
Dionisio E Alonso 720bd1b962 feat(vim-plugins): Migrate first plugins into vim-plug
Delete sub-modules and added the plugins as a vim-plug managed plugins.
Enforced the directory location to honor the same exactly location those
plugins had as sub-modules.

This approach, although less standard, helps the migration process
ensuring nothing is moving around arbitrarily.
2024-03-26 09:34:02 -03:00
Dionisio E Alonso d6abcfefc5 feat(vim-plugins): Add vim-plug to Vim config
Started the process of migrating git-submodules for Neovim and Vim to
plugin managers.
2024-03-25 18:44:15 -03:00
Dionisio E Alonso 9a003190ed feat(Vim): Turn off folding display by default 2024-01-29 05:47:24 -03:00
Dionisio E Alonso 72fc1f4244 feat(Vim): Add some extra folding functionality
Not quite working yet, but is the first attempt to mimic Treesitter's
functionality in Neovim.
2024-01-25 20:44:23 -03:00
Dionisio E Alonso 82d55e6231 feat(Neovim/Vim): Add some basic folding functionality 2024-01-25 13:11:17 -03:00
Dionisio E Alonso 50a61778e7 feat(Vim): Change LSP for Python in CoC 2024-01-22 15:56:09 -03:00
Dionisio E Alonso fff98b3bf5 feat(Vim): Update diagnostics icons for CoC 2024-01-22 15:32:04 -03:00
Dionisio E Alonso 724587d5e5 feat(Vim): Add some LSP servers to CoC
Also reordered the configuration a little bit.
2024-01-22 15:29:37 -03:00
Dionisio E Alonso 2a8118e694 feat(Neovim/Vim): Update default indentation rules
Stopped enforcing a different indentation size for C files, it now uses
the same 4 character width as for other filetypes.

Also, instead of hardcoding the value of softtabstop to the same value
as shiftwidth, set it to a negative value; which makes it behave exactly
like that, according to documentation.
2024-01-20 12:07:14 -03:00
Dionisio E Alonso 035e74b485 feat(LSP): Normalize configs between Neovim and Vim
Rename the LSP module in Vim to mimic naming used in Neovim's great
refactor.
2024-01-20 11:40:53 -03:00
Dionisio E Alonso ee563a8556 feat(Vim): Change diagnostics signs for CoC
In order to unify the experience between using Vim+CoC and Neovim with
it's native LSP support; use the very same unicode characters to
represent the level for the diagnostics.
2023-04-15 14:50:47 -03:00
Dionisio E Alonso e1ce8170e7 feat(submodules): Bump versions in (Neo)vim's plugins
Due to a new stable version of Neovim, bump all the plugins to properly
work with current release.
2023-04-07 19:47:33 -03:00
Dionisio E Alonso 6d89f99c14 feat(Neovim/vim): Set VSCode Dark+ as default colorscheme
Set in both editors the VSCode theme Dark+ variant.  Each editor uses a
plugin built specifically for it, because Neovim's is written in Lua and
Vim's doesn't provide TreeSitter support.
2023-04-07 18:30:27 -03:00
Dionisio E Alonso 720010881b feat(vim): Add VSCode Dark+ colorscheme for Vim
As the Neovim's version of this colorscheme is written in Lua and
doesn't work on Vim, this version of the theme is added to achieve
almost the same look/experience in both editors.

This colorscheme implements the vim-airline version of the theme, that
is also used in Neovim (the airline plugin) and needs of this to look
integrated.
2023-04-07 17:27:40 -03:00
Dionisio E Alonso 7d87621665 feat: Add tagbar plugin to Neovim/Vim 2022-08-18 22:22:57 -03:00
Dionisio E Alonso 04106ecf9a feat: Add devicons plugin to Neovim/Vim 2022-08-18 22:18:23 -03:00
Dionisio E Alonso 84917339a7 feat: Add default installation of CoC extensions
Those extensions that I consider to be essential get installed once
coc.nvim plugin is able to launch.
2022-08-08 17:40:07 -03:00
Dionisio E Alonso 3e9382736a fix: Deleting deprecated configuration from CoC
The CoC extension coc-python got unmaintained (and it's repo archived:
https://github.com/neoclide/coc-python).  Therefore there is no need to
keep the corresponding settings either coc-settings.json file.
2022-08-08 17:02:41 -03:00
Dionisio E Alonso 3bc0000614 feat: Add another diagnostics server for linting
coc-python is not working at the moment and some checks are just passing
by.  Added another CoC server to catch those which are not being
detected in Vim at the moment.
2022-08-08 16:57:30 -03:00
Dionisio E Alonso 6b0588673e fix: Add the same linting options for Vim from Neovim
Use the latest used linting options in Neovim when using CoC for Vim
that doesn't have a built-in LSP client.
2022-08-08 16:40:09 -03:00
Dionisio E Alonso 46daa3177e feat: Move Neovim/Vim specific docs to their own README
There is too many instructions specifically for the code editors
Neovim/Vim.  Having their instructions in the main project README file
can confuse and overwhelm.
2022-08-07 18:25:34 -03:00
Dionisio E Alonso b8448a5d98 fix: Rename modules for LSP for both Vim and Neovim
Renamed Vim-script and Lua modules to separate the functions from, which
settings correspond to the client part and which to the server part of
the LSP protocol for either editor.
2022-05-10 17:47:44 -03:00
Dionisio E Alonso 5d1d031997 Update terminal command and keybinds for Vim/Neovim 2021-07-30 23:49:59 -03:00
Dionisio E Alonso aba33b1a2f Reduce some space on airline plugin for Vim/Neovim
Reduced some space on the airline plugin by stripping out to one letter
the mode indicator.  Mode indicator is kinda redundant since it comes in
full on native Vim/Neovim status bar (except perhaps for Normal mode).
2021-07-25 19:55:39 -03:00
Dionisio E Alonso 4dc836cbbb Bump submodules' versions 2021-07-06 18:31:55 -03:00
Dionisio E Alonso 6a181526fa Bump submodules' versions 2021-06-17 22:14:48 -03:00