Add gdscript
This commit is contained in:
parent
ae0e55e3d1
commit
7f1702d917
@ -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,
|
||||
}
|
||||
|
||||
}, {})
|
||||
|
24
lua/lsp.lua
24
lua/lsp.lua
@ -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()
|
||||
|
@ -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'},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user