Commit Graph

232 Commits

Author SHA1 Message Date
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 5f63f1d2eb fix(neovim): Relocate Neovim's colorscheme plugin 2023-04-07 17:11:50 -03:00
Dionisio E Alonso d66a36e04e feat(nvim-gtk): Update color reset steps for colorscheme onedark
In order to be able to re-load/reset default settings in colorscheme
onedark, there is no longer a function (`onedark#extend_highlight`) to
re-apply colors, but instead that can be achieved by re-loading the
highlighting with the `syntax reset` command.
2023-04-06 21:21:47 -03:00
Dionisio E Alonso c98fca0624 feat(nvim-gtk): Use new variant of curly-braces in Iosevka 2023-04-02 17:31:25 -03:00
Dionisio E Alonso 7cb944f691 feat(nvim-gtk): Bump Iosevka's font features version
From Iosevka's v4.0.3 to v22.0.0 many of the character variants used for
customizing the font in Neovim-GTK has changed codes.  With this patch
those codes where updated to their current values using as reference the
project's Github page.
2023-04-02 01:37:43 -03:00
Dionisio E Alonso a0e9c3f5b5 feat: Update keymaps calls
Instead of wrapping Vim's API for Lua to perform a COMMAND call,
directly map Lua functions as callbacks for the selected keymap.
2023-01-15 14:32:59 -03:00
Dionisio E Alonso 0a96f286e4 feat: Update Neovim's README
Since the NerdFonts project now includes codicon glyphs in standard
releases, so there is no need to indicate users to download some RC
version of the fonts.
2022-11-03 19:09:38 -03:00
Dionisio E Alonso 67431961c2 feat: Jump to first line when committing in Git
If using the Neovim editor to edit commit messages, ensure to have the
cursor in the first line of the file before start editing.
2022-11-03 19:07:40 -03:00
Dionisio E Alonso 06a7b25746 feat: Update capabilities setter for cmp-nvim-lsp
Due to a deprecation in the cmp-nvim-lsp project plugin, renaming the
method used to update de default capabilities; there has to be changed
in settings as well.
2022-11-03 19:03:19 -03:00
Dionisio E Alonso 626dafdc1c fix: Load meson package to have PATH correction
Without loading the meson package, paths to locally installed LSP
servers won't be accessible from Neovim.
2022-08-24 12:06:59 -03:00
Dionisio E Alonso 9c1dbc5c1a feat: Add some configuration to mason-lspconfig
Now LSP servers can be installed via meson-lspconfig, allowing them to
reside in local Neovim directories and not forcing the user to know
which dependencies need to be installed for each language.

meson-lspconfig depends on core functionality provided directly by
meson, that's why the other submodule has been also added to the repo.
2022-08-24 11:02:33 -03:00
Dionisio E Alonso 9d39ce6d46 Merge branch 'master' into lsp-settings 2022-08-23 10:05:30 -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 0deac9eed5 feat: Add plugin to automatically download LSP servers
Added a Neovim plugin to automatically download and update LSP servers
that run with Neovim's native LSP client.
2022-08-09 19:39:40 -03:00
Dionisio E Alonso 089d064c5c feat: Reorder some parts in the README 2022-08-09 09:16:08 -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 da94042e34 fix: Minor fix in README 2022-08-08 16:30:12 -03:00
Dionisio E Alonso 3790123c74 feat: Add some more useful key-mappings to cmp plugin 2022-08-08 15:05:14 -03:00
Dionisio E Alonso d8f9c222bf Minor refactor of lsp configuration files 2022-08-08 12:57:03 -03:00
Dionisio E Alonso 5de106dee3 Merge branch 'diagnostics-config' 2022-08-08 11:51:32 -03:00
Dionisio E Alonso 8af69b9d0a fix: Add group to autocmd (to be able to clear it)
Also added some nice border style to the diagnostics pop-up.
2022-08-08 11:50:07 -03:00
Dionisio E Alonso 5a0861419b Merge branch 'symbolic-fonts' 2022-08-08 10:10:28 -03:00
Dionisio E Alonso f8654a688e Convert unicode escaped codes to glyphs
To normalize the content of the file with others in the project, that
hold unicode characters (nvim/init.vim, vim/vimrc,
vim/coc-settings.json, among them) converted all unicode escaped codes
in their glyph representation.  This change also brings more readability
to the file in the way that symbols represent more than code numbers.
2022-08-08 09:24:46 -03:00
Dionisio E Alonso 82697ea146 feat: Migrate autocmd in on_attach to pure Lua call
Migrated, following TeeJ_Dv's advice, the auto-command creation to a Lua
function.  As this auto-command only cares for the on_attach Lua scope,
it seems correct to have this one defined as a Lua function instead of
the legacy Vimscript.
2022-08-07 23:46:46 -03:00
Dionisio E Alonso 099f247c2e fix: Add diagnostic open_float focus option
Made the floating window not focusable to avoid mistakes.
2022-08-07 23:33:16 -03:00
Dionisio E Alonso 314b10e343 fix: Migrate config to the new option definition 2022-08-07 23:24:17 -03:00
Dionisio E Alonso 91126c88fe Merge branch 'symbolic-fonts' 2022-08-07 18:47:14 -03:00
Dionisio E Alonso b9a34d6059 fix: Update keybinding to use new Lua's pretty_print 2022-08-07 18:42:43 -03:00
Dionisio E Alonso 9300e16d2e feat: Update diagnostics to use VSCode's codicons signs 2022-08-07 18:31: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 53a663ec59 fix: Migrate transparent configuration to new version
According to the README of the project, the transparent configuration
(among other settings) got migrated and this syntax is the newly
adopted.
2022-08-05 12:40:14 -03:00
Dionisio E Alonso 9c0df409ba feat: Add transparent setting to onedark.nvim
This setting was on the previously used version of onedark, but with the
migration for the Neovim's specific version the setting got lost.
2022-08-05 12:32:37 -03:00
Dionisio E Alonso 124eb75776 Merge branch 'nvim-treesitter' 2022-07-20 13:01:47 -03:00
Dionisio E Alonso 6c7a5a2c37 fix: Change keyword class grouping in treesiter
Most colorchemes get the wrong color for the python class-keyword. This
fix overrides the default and groups “class” to be highlighted with the
same color than function declarations.

There is a comment in the file referring an where the tip came from.
2022-07-20 12:58:33 -03:00
Dionisio E Alonso 65486600bc feat: Add some defaults for nvim-treesitter
Add defaults of what treesitter modules to load by default and some
languages to build the rules for.
2022-07-20 12:56:31 -03:00
Dionisio E Alonso 0a292c87f4 feat: Disable some redundant checks for LSP 2022-05-19 11:25:34 -03:00
Dionisio E Alonso 800653ff28 fix: Restore some keybindings to nvim-cmp
In recent versions, nvim-cmp plugin has dropped the default keybindings
that had to use the plugin, enforcing users to set their own.
2022-05-11 09:15:04 -03:00
Dionisio E Alonso 39bc82d399 fix: Upgrade cmp_format options from deprecated one
The "text" format option has been deprecated in favor of the "mode"
option which permits more values other than just `true` or `false`
2022-05-11 09:09:02 -03:00
Dionisio E Alonso 03e7a1dd34 fix: Neovim's argument passing, not in global scope anymore
An argument to a Neovim's Lua function that used to live in global
scope, now needs to be declared as part of the function definition, and
passed accordingly.
2022-05-11 08:58:15 -03:00
Dionisio E Alonso 48341a2d10 feat: Merge LSP workspace settings with default ones
Instead of just override the entire Neovim's LSP server settings with
new ones from the workspace, merge new settings with existing ones.
2022-05-10 22:49:16 -03:00
Dionisio E Alonso bfbf40be41 feat: Override LSP server settings with workspace settings 2022-05-10 22:44:03 -03:00
Dionisio E Alonso 0c189664fb fix: Add missing rename in module call 2022-05-10 17:53:17 -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 7de34f40dd fix: Restore general purpose LSP settings Lua module 2022-05-10 11:36:57 -03:00
Dionisio E Alonso c69be87d1c fix: Re-modularize all Neovim-lsp plugin specific settings
For Neovim's LSP, move all the python-lsp-server plugins' settings to
its own separate Lua module.
2022-05-10 11:33:15 -03:00
Dionisio E Alonso 74deba1cc2 feat: Add venv detection to adjust PyLSP plugins' paths
In order to be able to complete, navigate and lint code according to the
project's modules and dependencies, there is the need to use
python-lsp-server plugins installed in the same virtualenv the project
uses. Although the LSP plugin manager (python-lsp-server) is not
installed inside the project itself.

This settings detect the presence of those executables and adjusts their
paths to use the ones inside the virtualenv.
2022-05-10 10:50:39 -03:00
Dionisio E Alonso d4b2afb8da Update commands according to changes in Neovim's Lua API
From version 0.5 to 0.6 some changes in Neovim's Lua API occurred, and
some settings had stopped working.  These changes are made to ensure
shortcuts and some stuff continues working on newer versions of Neovim.
Legacy behaviour was not considered and hence this configs may no longer
work on older stable versions of Neovim.
2022-01-07 17:37:19 -03:00
Dionisio E Alonso 3d3756176a Add Treesitter to Neovim packages
From version 0.6, Neovim comes with support to Treesitter, which helps
on navigating code's AST and adds the ability to make language specific
decisions with plugins.
2022-01-07 16:07:53 -03:00
Dionisio E Alonso ecfb1b20d7 Add new VSCode-like theme to Neovim packages 2022-01-07 16:01:21 -03:00