Commit Graph

654 Commits

Author SHA1 Message Date
Dionisio E Alonso 7dfa03eb73 feat(LSP): Delete default flag from config
The flag being deleted already has its default value set to what was on
the configuration file.  Having the configuration was redundant.
2024-02-06 09:02:03 -03:00
Dionisio E Alonso f248c257bd fix(LSP): Correct pylsp configuration syntax
Eglot's configuration for LSP servers does not have a “false” literal in
Lisp.  Furthermore, the previously used `nil` value was being mapped to
JSON's `null` value instead of `false`; making the LSP server to load
defaults for those settings instead of setting those settings to false.
2024-02-06 08:08:24 -03:00
Dionisio E Alonso 6b5452f9d1 feat(LSP): Add pylint executable explicitly
Without telling python-lsp-server which the pylint executable is,
explicitly, the plugin never runs.  This modification ensures the plugin
is running.
2024-02-06 08:06:18 -03:00
Dionisio E Alonso 54938dd02c feat(LSP): Add PyLSP configurations for eglot
Replicate the same base configuration used for python-lsp-server in
Neovim but for Emacs's Eglot LSP client.
2024-02-04 18:33:28 -03:00
Dionisio E Alonso af5a35e874 Merge branch 'emacs-refactor' into pylsp-settings 2024-02-04 18:28:04 -03:00
Dionisio E Alonso 6d2951b2b1 feat(LSP): Amend documentation
This is a minimal correction on the comments documenting the use of the
file.
2024-02-04 18:26:15 -03:00
Dionisio E Alonso 00a57f889c feat(mypy): Change configuration format
Changed mypy configuration INI format.  Python's configparser checks
boolean values in a case-insensitive manner, so it doesn't matter if
values start in Title-case or lower-case.  This way, the configuration
is easily translated to TOML format for writing a pyproject.toml file;
with the exception of string values which will have to be enclosed in
quotes anyways.
2024-02-04 18:20:09 -03:00
Dionisio E Alonso e5a65b3ea9 feat(emacs): Add some LSP functionality to Emacs
This feature requires for LSP servers to be already installed, and the
PATH variable to point to where the executables reside.
2024-02-03 20:30:16 -03:00
Dionisio E Alonso 13920d3841 feat(emacs): Delete unused option for typeface 2024-02-03 20:20:43 -03:00
Dionisio E Alonso 4ef1f32186 feat(emacs): Setup some packages for emacs
Similar to a plugin manager, Emacs has Elpa and Melpa repos.  Here,
Melpa repository is being added and then some packages (themes and
languages' modes) provided by that repo.
2024-02-03 20:17:30 -03:00
Dionisio E Alonso 584deb9575 feat(emacs): Remember last cursor position per file 2024-02-03 15:11:14 -03:00
Dionisio E Alonso a272a609a3 feat(emacs): Split lines in setting for readability 2024-02-03 15:08:07 -03:00
Dionisio E Alonso 881a3b70ce feat(emacs): Move font attributes outside custom-set-font
As with previous change, the custom-set-font interface reorders stuff
it's own way.  Moving this settings outside that scope makes the
settings stay put.
2024-02-03 15:08:07 -03:00
Dionisio E Alonso 7a260bf0da feat(emacs): Move settings outside customize
Emacs customization interface has it's own way to sort settings out.
With this change, the same settings' effects are achieved manually
without having to rely on the internal sorting the customize interface
intends.
2024-02-03 15:03:17 -03:00
Dionisio E Alonso cd10517361 Merge branch 'pylsp-settings' 2024-01-31 00:24:49 -03:00
Dionisio E Alonso 848d6377f1 feat(mypy): Change configuration format
Changed mypy configuration file format from INI to TOML.  It works all
the same and in this way there are more similarities with the format
inside pyproject.toml file.
2024-01-31 00:22:20 -03:00
Dionisio E Alonso 07b3b2a6df Merge branch 'master' into pylsp-settings 2024-01-31 00:21:38 -03:00
Dionisio E Alonso 1ca997c674 feat(mypy): Reorder some options in preference order 2024-01-31 00:20:04 -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 ea03e3300a feat(Neovim): Correct folding options
The function that added nice text for folded blocks was reverted in
https://github.com/neovim/neovim/pull/27217 in favor of the default text
generated by setting the folding-text option to `""`.
2024-01-29 05:43:31 -03:00
Dionisio E Alonso 1d2aa742e8 Merge branch 'refactor-lua-configs' 2024-01-26 13:53:22 -03:00
Dionisio E Alonso bd061bf7b3 feat(LSP): Delete unused variables
There is no need for these variables under this auto-command.
2024-01-26 13:50:01 -03:00
Dionisio E Alonso 97e4052934 feat(LSP): Delete erroneous argument `buffer`
The argument `buffer` us used for another type of autocmd's, those with
whole buffer scope.
2024-01-26 13:48:02 -03:00
Dionisio E Alonso 5971e6e019 feat(shells): Add an alias for vi to run nvim
This fallback is in case an app ignores the `EDITOR` env variable, and
directly runs the command `vi` as a default for tui text editor.
2024-01-26 12:30:44 -03:00
Dionisio E Alonso ae1d9a6043 feat(Fish): Set default editor to Neovim
Using the recommendation in the FAQ
(https://fishshell.com/docs/current/faq.html#why-doesn-t-set-ux-exported-universal-variables-seem-to-work),
set the `EDITOR` environment variable to `nvim`.
2024-01-26 10:04:08 -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 fb843d5dbc Merge branch 'refactor-lua-configs' 2024-01-25 13:15:26 -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 9b659ae6dd feat(templates): Bump some hook's versions 2024-01-24 22:28:18 -03:00
Dionisio E Alonso 8c40b02eda feat(templates): Add a pre-commit template for Python project hooks 2024-01-24 22:23:04 -03:00
Dionisio E Alonso fa9077a603 feat(LSP): Change functionality in diagnostics pop-up
Now, the automatic pop-up that appears when the cursor is idle, appears
en both, Normal and Insert modes; and only displays messages under the
cursor, not the entire line.

For the other behavior, there is still the keybinding `<space>`+`e`.
2024-01-24 18:42:52 -03:00
Dionisio E Alonso 1880c45bc8 feat(templates): Update default C standard in Makefile 2024-01-24 17:25:27 -03:00
Dionisio E Alonso b204811426 feat(Git): Add nice default date format for blame 2024-01-24 17:16:19 -03:00
Dionisio E Alonso cc9b4d7582 Merge branch 'pylsp-settings' 2024-01-23 19:45:08 -03:00
Dionisio E Alonso 7ac935e2ca feat(templates): Add some nice defaults for Pylint 2024-01-23 19:43:13 -03:00
Dionisio E Alonso 56ca26d493 feat(Pylint): Add nice configurations to pytest
This configurations are intended to be used as either, user
configuration, or in a project.
2024-01-23 19:31:08 -03:00
Dionisio E Alonso 0d08a423d3 feat(LSP): Add minimum configuration to Fourmolu. 2024-01-23 19:29:10 -03:00
Dionisio E Alonso 741ad52052 feat(templates): Add some comments explaining 2024-01-23 19:25:52 -03:00
Dionisio E Alonso 4e30f2806f feat(templates): Add mypy base settings to pyproject.toml 2024-01-23 18:59:42 -03:00
Dionisio E Alonso 2f9692c1e3 feat(templates): Add defaults for Pylint in pyproject.toml
Also included some duplicated messages that can be excluded because they
are already covered by other linters.
2024-01-23 16:47:05 -03:00
Dionisio E Alonso 4025066a19 feat(templates): Add Flake8 defaults in pyproject.toml 2024-01-23 16:45:25 -03:00
Dionisio E Alonso 43bf852b71 feat(templates): Add default exclusion for Ruff 2024-01-23 16:43:44 -03:00
Dionisio E Alonso ede333abc5 feat(templates): Add first attempt at a pyproject.toml template
Added ruff rules copied from ruff.toml but changing the max-line-length
argument.
2024-01-23 16:29:06 -03:00
Dionisio E Alonso 0db220678a Merge branch 'master' into pylsp-settings 2024-01-23 16:26:06 -03:00
Dionisio E Alonso 83c1c4f10d feat(LSP): Add missing duplicate Pylint message
Added a newly found Pylint message that's duplicated by pycodestyle (via
Flake8).

This message wasn't on the documentation but has a PR and is awaiting
approval.
2024-01-23 16:24:07 -03:00
Dionisio E Alonso eb2204a567 feat(LSP): Minor whitespace fix 2024-01-23 16:23:05 -03:00
Dionisio E Alonso 8550e82f06 feat(templates): Add some templates for Makefiles
The purpose of this Makefile and base.mk files are to emulate the
behavior of command `make` when only given a build target (inferring the
source file to use); but using instead a custom set of building flags.

base.mk holds those custom set of building flags, Makefile is just the
wrapper to add get the target name and source file.
2024-01-23 12:54:24 -03:00
Dionisio E Alonso 5e8067677c feat(templates): Add a clang-format template file
As starting with the versioning of templates that can only be used as
per-project basis, the clang-format template file and a README are
added.
2024-01-23 11:53:31 -03:00
Dionisio E Alonso 7b1944e11a Merge branch 'pylsp-settings' 2024-01-23 11:28:40 -03:00
Dionisio E Alonso 7cbc5f95e5 feat(LSP): Add a default clangd configuration
In order to achieve the same linting as when compiling a C project, use
those default compilation options for linting inside text editors that
support clangd LSP.
2024-01-23 11:26:40 -03:00