69 Commits

Author SHA1 Message Date
Nathan Lovato
32086df833 Merge pull request #138 from xiliuya/add-macos-config-support
Set darwin's eglot config dir
2024-05-09 17:23:16 +02:00
Nicolas Petton
becce1a4ba Fix #142: Add missing function `gdscript-mark-defun' 2024-04-18 01:14:58 +02:00
xiliuya
a6efb8713d - Using unless to change eglot-server-program 2023-09-24 11:56:49 +08:00
xiliuya
9b26d25aa3 - Make sure `eglot-server-programs only have one 'gdscript-mode key 2023-09-23 12:21:05 +08:00
xiliuya
45e05fd58b - gdscript-ts-mode: Add treesit support for emacs 29+ 2023-05-23 18:20:13 +08:00
Ruijie Yu
30c4d48f81 Added integration with eglot (#122)
Fixes #121.

* gdscript-eglot.el gdscript-eglot-version: added customizable option for
the godot version in use.
(gdscript-eglot-contact): added function to allow `eglot' to find the godot LSP
port.
* gdscript-mode.el Commmentary: double space after period.
(require 'gdscript-eglot): require this new file.
(with-eval-after-load 'eglot): tell eglot how to find godot LSP.
2023-04-21 08:20:10 +02:00
Benjamin Kästner
9043e1a6b6 Replace old repository path
The repository was moved from GDQuest to godotengine on GitHub.
2021-03-28 20:59:54 +02:00
Nathan Lovato
bdce2da794 Add ability to toggle breakpoints on current line 2021-01-24 22:14:35 -06:00
Nathan Lovato
fe59b77c3f Add keybindings to run the game, add breakpoints, and continue execution 2021-01-24 22:14:35 -06:00
Josef Vlach
152e1b8cea Debug Hydra 2020-09-15 21:40:20 +01:00
Josef Vlach
80b08e0afd Debugger - initial support 2020-09-12 11:25:36 +01:00
Nathan Lovato
110d36da96 Remove gdscript-indent-guess-indent-offset
The function would guess indents wrong and often find an offset value of
8 instead of 4. It's also getting in the way and adding configuration
for little benefit.
2020-09-07 22:19:13 -06:00
RichieHH
4a95d69034 Add command to search the online API, add customisable variables (#79)
* add option to "force-online" API lookups with a parameter or using prefix-arg (C-u). Added function to search online Godot API with symbol at point OR using prefix arg to enter a search term.

* implemented review suggestions #79

* fixed no symbol at point bug. pop existing API buffer for local docs too. Minor docstring changes.

* be a bit more helpful when local docs are missing

Co-authored-by: Richard G. Riley <rileyrg@gmail>
2020-08-27 00:16:59 -06:00
Josef Vlach
e8f56823eb Use gdscript-mode-syntax-table instead of gdscript-syntax-table
Highlight '$' operator constant similar to Godot editor
2020-07-25 14:22:17 +01:00
Josef Vlach
3ad2680edf Hydra implementation 2020-05-29 13:08:51 +01:00
Nathan Lovato
87ba0803e0 Update keyboard shortcuts to use mnemonic keys
Closes #58
2020-05-28 10:39:31 -06:00
Nathan Lovato
e4981f7656 Rename gdscript-documentation to gdscript-docs, update README 2020-05-27 11:06:33 -06:00
Josef Vlach
db2f50f9bf Display only main section when browsing Godot API documentation 2020-05-27 17:41:53 +01:00
Josef Vlach
59753af564 Godot API browsing using eww 2020-05-25 09:39:20 +01:00
Franco Eusébio Garcia
b4d2bec304 Format buffer and region.
Closes #38.

The implementation was simplified. Moreover, it is now possible to customize the
path to the `gdformat` executable.
2020-04-02 20:12:54 -03:00
Franco Eusébio Garcia
68c425b57f Added a command to insert a file path at point using Projectile.
Closes #36.
2020-03-30 21:36:48 -03:00
Franco Eusébio Garcia
e30e890d62 Address omissions from fa26dd5 refactor. 2020-03-30 13:36:30 -03:00
Nathan Lovato
fa26dd5676 Refactor commands to open files in Godot
Closes #11
2020-03-30 08:15:28 -06:00
Franco Eusébio Garcia
beac587761 Add commands to open and run files in Godot
Closes #11 and #13.
2020-03-30 08:15:28 -06:00
Nathan Lovato
dd8c5bc5bf Remove outline-heading-end-regexp from gdscript-mode
It's causing a compile lint error, and doesn't seem to do much.
2020-03-23 08:02:15 -06:00
Nathan Lovato
6997f4ddd3 Fix more melpazoid warnings
Remove FSF from copyright lines
Address warnings in gdscript-indent-and-nav.el
2020-03-22 13:35:18 -06:00
Nathan Lovato
e922a1fc83 Fix hideshow local value
The variable needed an alist, I had to quote the only entry we're using
for gdscript-mode
2020-03-01 13:50:34 -06:00
Nathan Lovato
fb215bb83b Fix linter error in gdscript-mode body
Use setq-local for hs-special-modes-alist
2020-03-01 06:56:48 -06:00
Nathan Lovato
3c5e31bfe3 Address package-lint warnings and errors
See #4
2020-02-17 10:34:32 -06:00
Nathan Lovato
dfe2cd922e Update documentation using checkdoc
Preparing for the MELPA release.

See #4
2020-02-17 09:43:49 -06:00
Nathan Lovato
c633a6f4d1 Refactor rx code to fix import error with gdscript-rx macro 2020-02-17 07:36:34 -06:00
Nathan Lovato
b7584fe1dc Update package headers, fix flycheck errors 2020-02-15 20:25:10 -06:00
Nathan Lovato
b6b864e3bf Use with-eval-after-load for hideshow
From the dev of Doom Emacs: "That package isn't guaranteed to be loaded when
this major mode activates, and it will throw a void-variable error if it isn't."
2020-02-15 20:11:38 -06:00
Nathan Lovato
98274b4b52 Add autoload cookies to gdscript-mode.el
When installing packages from a package-manager, this will help defer execution
and loading of the package until the corresponding symbols are actually called.*

*At least, if I understood this correctly.
2020-02-15 19:54:36 -06:00
Nathan Lovato
2e31a15c95 Add basic auto-completion support
This adds support for all the keywords found in the data/* directory using
Emacs's built-in completion system.
2020-02-15 18:18:25 -06:00
Nathan Lovato
fabbc7a7bb Split package into several modules
Closes #19
2020-02-15 14:23:49 -06:00
Nathan Lovato
b352c3d592 Fix error when calling imenu in a gdscript file 2020-02-14 21:36:04 -06:00
Nathan Lovato
15042b1f02 Move language keywords to individual text files
This will make it easier to update the keywords from Godot's source code, using
the shell.
Also, this makes the gdscript-mode buffer faster to parse and more performant
when viewing it.

Part of #19
2020-02-14 21:30:59 -06:00
Nathan Lovato
d174438496 Move imenu code to its own file, gdscript-imenu.el 2020-02-14 21:30:14 -06:00
Nathan Lovato
615b3e19b5 Fix incorrect regex to detect static function
Fix #17
2020-02-14 18:23:47 -06:00
Nathan Lovato
ff2d400e9a Add class_name built-in keyword
Fix #16
2020-02-14 18:15:54 -06:00
Nathan Lovato
884c544f03 Update gdscript-mode description and update comment 2020-02-14 17:58:20 -06:00
Nathan Lovato
b5eb183d44 Revert "Load file gdscript-rx.el in Emacs 26 and before"
This reverts commit 8026003323.
I'm having an error that the file gdscript-rx can't be found in Spacemacs, but
I'm not sure why.
2020-02-14 10:18:37 -06:00
Nathan Lovato
8026003323 Load file gdscript-rx.el in Emacs 26 and before 2020-02-14 08:36:01 -06:00
Nathan Lovato
086445a6be Add missing version check to support Emacs 27 2020-02-05 08:45:57 -06:00
Nathan Lovato
c4a5976ebb Merge branch 'ofrank123-master' 2020-02-05 08:37:01 -06:00
Oliver Frank
3d4adf08b5 Add support for .tres and .tscn files
This uses conf-toml-mode
2020-02-05 08:35:39 -06:00
Oliver Frank
acc503078d Add support for Emacs 26
This adds a copy of the rx package from Emacs 27 and adds some code that checks
the version of Emacs.
2020-02-05 08:35:07 -06:00
Oliver Frank
5111cad171 Add static keyword to block starters 2020-02-05 08:34:03 -06:00
Nathan Lovato
32d4622357 Mark utility functions as private top-level functions 2020-02-01 09:51:32 -06:00