Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.66 KB

README.md

File metadata and controls

61 lines (39 loc) · 1.66 KB

Description

GDScript is the primary scripting language used by the Godot Game Engine.

This project has been forked and adapted from Rubonnek/vim-gdscript3 in the following ways:

  • Support for Godot 4.x GDScript flavor
  • Use existing filetype and syntax definitions bundled with Vim
  • Extend and improve Vim's existing filetype and syntax definitions where useful
  • Fix and integrate Tagbar support
  • Add some configuration settings for tweaking highlighting and indent behavior

Installation

Using vim-plug

Plug 'mphe/vim-gdscript4'

Configuration

The plugin defines a few settings related to highlighting and indentation. See vim-gdscript4.vim.

Completion, Go To Definition and Error Linting

Completion is not part of this plugin but can be enabled using the Godot Language Server.

Using coc.nvim

See also here (Port has been changed to 6005 in Godot 4.x).

"languageserver": {
    "godot": {
        "host": "127.0.0.1",
        "filetypes": ["gd", "gdscript"],
        "port": 6005
    },
}

See also here.

require'lspconfig'.gdscript.setup{}

Screenshot

Screenshot

Colorscheme: Solarized

License

MIT