Giter VIP home page Giter VIP logo

quickgd.nvim's Introduction

quickgd.nvim

Tools for neovim that comes with helpfull godot / tscn launch commands, setup for treesitter and auto-completion for gdshader.

quickgd.nvim_example_1.mp4

✨ Features

  • Dynamic auto-completion for gdshaders including all shader types.
  • Use GLSL to setup up treesitter in gdshaders.
  • Quick launch commands.

⛑ Requirements

  • nvim-telescope needed to use telescope else disable in settings.
  • nvim-treesitter needed for auto completion make sure you have GLTF parser installed.
  • nvim >= 0.8

📜 Commands

  • GodotRun - Opens a selecter where you can pick a tscn to run.
  • GodotRunLast - Runs the last chosen tscn from GodotRun.
  • GodotStart - Opens your current Godot project located in your working directory.

🔌 Install

💤 Lazy

{
  "QuickGD/quickgd.nvim",
  ft = {"gdshader", "gdshaderinc"}
  cmd = {"GodotRun","GodotRunLast","GodotStart"},
  -- Use opts if passing in settings else use config
  init = function()
    vim.filetype.add {
      extension = {
        gdshaderinc = "gdshaderinc",
      },
    }
  end,
  config = true
  opts = {} -- remove config and use this if changing settings.
}

📦 Packer

{
  "QuickGD/quickgd.nvim",
  config = function()
    vim.filetype.add {
      extension = {
        gdshaderinc = "gdshaderinc",
      },
    }
    require("quickgd").setup() {
      -- settings
    } 
  end,
}

📝 CMP

    sources = {
      { name = "nvim_lsp", priority = 1000 },
      { name = "quickgd", priority = 750 }, -- make sure to add quickgd to your source list
      { name = "luasnip", priority = 700 },
      { name = "path", priority = 650 },
      { name = "buffer", priority = 400 },
    },

⚙ Settings

   {
    -- Sets the path of your Godot executable.    
    -- Will look for path in GODOT environment variable if not set.
    godot_path = "/path/to/godot"
    -- If opened in project root folder path will already be set.
    project_path = "path/to"
    -- If set to false will use internal selector.
    telescope = true
    -- Enables GLSL treesitter for gdshader / gdshaderinc. 
    treesitter = true, -- optional: needed for cmp
    -- Disable if you don't want the autocompletion.
    cmp = true, -- optional
  }

quickgd.nvim's People

Contributors

a-lamia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.