Add gdscript

This commit is contained in:
Fabrice Mouhartem 2024-05-19 00:09:35 +02:00
parent ae0e55e3d1
commit 7f1702d917
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7
3 changed files with 28 additions and 2 deletions

View File

@ -27,6 +27,9 @@ require('lazy').setup({
},
},
-- DAP: Debug Adapter Protocol
'mfussenegger/nvim-dap',
{
-- Autocompletion
'hrsh7th/nvim-cmp',
@ -299,5 +302,4 @@ require('lazy').setup({
ft = { "markdown", "pandoc" },
build = function() vim.fn["mkdp#util#install"]() end,
}
}, {})

View File

@ -165,6 +165,7 @@ servers = {
},
}
},
gdscript = {},
}
for server_name, server_settings in pairs(servers) do
@ -174,3 +175,26 @@ for server_name, server_settings in pairs(servers) do
settings = server_settings,
}
end
local setup_godot_dap = function()
local dap = require("dap")
dap.adapters.godot = {
type = "server",
host = "127.0.0.1",
port = 6006,
}
dap.configurations.gdscript = {
{
launch_game_instance = false,
launch_scene = false,
name = "Launch scene",
project = "${workspaceFolder}",
request = "launch",
type = "godot",
},
}
end
setup_godot_dap()

View File

@ -3,7 +3,7 @@
vim.defer_fn(function()
require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash', 'norg', 'norg_meta' },
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash', 'norg', 'norg_meta', 'gdscript' },
ignore_install = {'latex', 'tex', 'markdown'},
disable = {'latex', 'tex', 'markdown'},