From b907418558ac08afd1a7411d3e1e6c1adbd3ca14 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sun, 19 Jun 2022 16:34:51 +0200 Subject: Add some packages, fix dap ui new error warning --- lua/alpha/dap.lua | 24 ++++++++++++++++++++---- lua/alpha/lsp.lua | 7 +++++++ lua/alpha/plugins.lua | 2 ++ 3 files changed, 29 insertions(+), 4 deletions(-) (limited to 'lua/alpha') diff --git a/lua/alpha/dap.lua b/lua/alpha/dap.lua index 27b596d..3c87f00 100644 --- a/lua/alpha/dap.lua +++ b/lua/alpha/dap.lua @@ -2,10 +2,26 @@ local dap, dapui, dap_install = require("dap"), require("dapui"), require("dap-i local api = vim.api dapui.setup({ - sidebar = { - size = 80, - position = "right", - }, + layouts = { + { + elements = { + 'scopes', + 'breakpoints', + 'stacks', + 'watches', + }, + size = 80, + position = 'right', + }, + { + elements = { + 'repl', + 'console', + }, + size = 10, + position = 'bottom', + }, + }, }) require("dap-go").setup() diff --git a/lua/alpha/lsp.lua b/lua/alpha/lsp.lua index 30d6562..ed81b81 100644 --- a/lua/alpha/lsp.lua +++ b/lua/alpha/lsp.lua @@ -9,6 +9,9 @@ local filetype_attach = setmetatable({ augroup END ]]) end, + + gdscript = function (_) + end }, { __index = function() return function() end @@ -54,6 +57,10 @@ lsp_installer.on_server_ready(function(server) vim.cmd([[ do User LspAttachBuffers ]]) end) +require("lspconfig").gdscript.setup({ + on_attach = on_attach, +}) + vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, { underline = true, update_in_insert = false, diff --git a/lua/alpha/plugins.lua b/lua/alpha/plugins.lua index b736e1b..dc2b150 100644 --- a/lua/alpha/plugins.lua +++ b/lua/alpha/plugins.lua @@ -193,4 +193,6 @@ return require("packer").startup(function(use) -- Local plugins can be included local_use("telescope-projectionist.nvim") local_use("telescope-laravel.nvim") + + use({"habamax/vim-godot"}) end) -- cgit v1.2.3