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.
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.
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.
The gui.scale is to achieve the same viewpoint as in a full-HD screen
(1080p) but on a smaller screen size of only 1366x768. This value
should be different on other screen sizes, but for now is the one
available.
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.
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.
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.
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.
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.