Skip to content

Vim syntax highlighting, indentation, snippets and tagbar support for Godot 4.x.

License

Notifications You must be signed in to change notification settings

mphe/vim-gdscript4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Vim syntax highlighting, indentation, snippets and tagbar support for Godot 4.x.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

  • Vim Script 76.4%
  • Vim Snippet 23.6%