diff --git a/after/plugin/dap.lua b/after/plugin/dap.lua index f61c602..e021b55 100644 --- a/after/plugin/dap.lua +++ b/after/plugin/dap.lua @@ -5,3 +5,14 @@ dap.adapters.godot = { host = "127.0.0.1", port = 6006, } + +dap.configurations.gdscript = { + { + type = "godot", + request = "launch", + name = "Launch scene", + project = "${workspaceFolder}", + launch_scene = true, + } +} + diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 34524d1..48d8de2 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -1,6 +1,5 @@ local lsp = require("lsp-zero") - local cmp = require('cmp') local cmp_select = {behavior = cmp.SelectBehavior.Select} local cmp_mappings = lsp.defaults.cmp_mappings({ @@ -32,10 +31,13 @@ lsp.on_attach(function(client, bufnr) vim.keymap.set("n", "vca", function() vim.lsp.buf.code_action() end, opts) vim.keymap.set("n", "vrr", function() vim.lsp.buf.references() end, opts) vim.keymap.set("n", "vrn", function() vim.lsp.buf.rename() end, opts) - vim.keymap.set("n", "", function() vim.lsp.buf.signature_help() end, opts) + vim.keymap.set("i", "", function() vim.lsp.buf.signature_help() end, opts) end) +require'lspconfig'.gdscript.setup{} + + require('mason').setup({}) require('mason-lspconfig').setup({ ensure_installed = {'tsserver', 'eslint', 'rust_analyzer', 'gopls'},