Commit Graph

146 Commits

Author SHA1 Message Date
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 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 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 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
Dionisio E Alonso 6d1db792d7 Bump submodules' versions 2021-06-03 20:38:38 -03:00
Dionisio E Alonso d57b958fb8 Bump submodules' versions 2021-05-28 23:16:43 -03:00
Dionisio E Alonso fe39a00fcf Bump submodules' versions 2021-05-07 14:29:46 -03:00
Dionisio E Alonso 487b3e2ca4 Bump submodules' versions 2021-04-02 21:54:28 -03:00
Dionisio E Alonso 30d061c958 Remove ALE plugin submodule
Removed the ALE Neovim/Vim plugin in favour of other similar plugins
such as Neovim's native LSP and Conquer of Completion for Vim.
2021-03-28 21:23:24 -03:00
Dionisio E Alonso 8a377f8ce0 Set airline flags for tagbar extension in Neovim/Vim 2021-03-28 20:00:51 -03:00
Dionisio E Alonso e669ffb2a1 Bump submodules' versions 2021-03-28 00:28:18 -03:00
Dionisio E Alonso c91e98f960 Use airline for tabs when more than one is open 2021-03-26 21:46:06 -03:00
Dionisio E Alonso 23ee72f63e Minor change in Neovim/Vim augroup for Git commits 2021-03-26 19:22:45 -03:00
Dionisio E Alonso 01d62b8838 Bump submodules' versions 2021-03-26 19:02:19 -03:00
Dionisio E Alonso bd172f4675 Minor change in Vimrc 2021-03-26 18:58:48 -03:00
Dionisio E Alonso 5eca24ce23 Remove unnecessary/unused theme loading in configs 2021-03-26 18:21:43 -03:00
Dionisio E Alonso e38851c9cd Regroup/reorder colorscheme settings for Neovim/Vim 2021-03-26 18:19:56 -03:00
Dionisio E Alonso ab5974dc1d Set variables regardless of the active colorscheme
Some global variables were set only if the proper Neovim/Vim colorscheme
was loaded.  Those checks are unnecessary since those variables are
specific per colorscheme and don't conflict one with the other, and
setting them without using them doesn't cause any damage.
2021-03-26 18:10:04 -03:00
Dionisio E Alonso 81893dcc52 Add syntax highlighting to embedded code in Neovim/Vim 2021-03-21 19:01:19 -03:00
Dionisio E Alonso 1d9fff567d Bump submodules' versions 2021-03-19 20:43:52 -03:00