Commit Graph

68 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 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 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 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 8a377f8ce0 Set airline flags for tagbar extension in Neovim/Vim 2021-03-28 20:00:51 -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 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 a253a10c11 Add comment in setting for Vim
As onedark theme doesn't load well specifically on Vim, the packadd
setting helps on loading the coloscheme correctly.
2021-03-17 21:26:52 -03:00
Dionisio E Alonso 0d2f641a83 Reorder package's loads in Vim/Neovim 2021-02-26 19:31:41 -03:00
Dionisio E Alonso f56877aaa8 Add more colored columns after 80col max line length 2020-07-16 10:16:38 -03:00
Dionisio E Alonso c5e8869d95 Add relative line numbering for Neovim/Vim 2020-02-21 02:13:05 -03:00
Dionisio E Alonso dac5d9e79e Merge branch 'master' into neovim-vim 2020-01-21 13:31:09 -03:00
Dionisio E Alonso 979aecaa73 Set buffer switching policy for Neovim/Vim 2020-01-21 13:29:35 -03:00
Dionisio E Alonso 79b1d19a9c Change tabs and spaces indicator characters for Neovim/Vim 2020-01-21 13:28:51 -03:00
Dionisio E Alonso 6864139bf9 Turn on italics for Neovim/Vim colorscheme 2020-01-21 13:21:32 -03:00
Dionisio E Alonso 41c2818149 Merge branch 'master' into neovim-vim 2019-12-15 10:52:35 -03:00
Dionisio E Alonso a0f80e803a Minor change in autocommand for Vim colorscheme 2019-12-15 10:51:01 -03:00
Dionisio E Alonso 18831b6ac6 Move LSP configs to a separate module for Vim 2019-12-15 08:20:03 -03:00
Dionisio E Alonso 62f15c20a5 Merge branch 'master' into neovim-vim 2019-12-10 12:05:24 -03:00
Dionisio E Alonso 2fd09e2388 Add leading spaces char indicator for Vim/Neovim 2019-12-10 11:36:31 -03:00
Dionisio E Alonso af31cf0639 Merge branch 'master' into neovim-vim 2019-09-06 12:35:55 -03:00
Dionisio E Alonso c76f4e30ec Remove numbers' column for Git commits on Vim/Neovim 2019-04-24 01:44:53 -03:00
Dionisio E Alonso e4fa24e010 Add ALE options for Python in Vim and Neovim 2019-04-23 13:00:57 -03:00
Dionisio E Alonso a094ceeb1a Set ALE options for Python in Vim and Neovim 2019-04-22 22:15:34 -03:00
Dionisio E Alonso bcd5692bf0 Add shrotcut to launch terminal in Neovim and Vim 2019-04-16 19:25:59 -03:00
Dionisio E Alonso 7b2864f3f1 Set height when calling :Terminal in Neovim and Vim 2019-04-16 19:24:01 -03:00
Dionisio E Alonso 2832822492 Minor syntax changes on Vim and Neovim configs 2019-04-04 13:13:56 -03:00
Dionisio E Alonso bc0f1da598 Use onedark.vim's interface to unset background
Instead of using bare Vim command to set background for onedark.vim use
the functions defined by the theme.  This approach works properly on
both, Vim and Neovim.
2019-04-04 11:54:42 -03:00
Dionisio E Alonso 5148ffb0ca Add support for termguicolors escape codes for Vim
This hack solves running Vim with termguicolors inside Tmux.
2019-03-18 14:59:58 -03:00
Dionisio E Alonso 2fc8939692 Remove unnecessary mouse setting for Vim 2019-03-17 23:11:14 -03:00