From 51eb3ba0dd7b87f6e9d0858afe0d4e5ca582cb70 Mon Sep 17 00:00:00 2001 From: ucpr Date: Wed, 20 Mar 2024 23:36:18 +0900 Subject: [PATCH] chore: remove dap --- nvim/init.lua | 97 +-------------------------------------------------- 1 file changed, 1 insertion(+), 96 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index 1e13c18..ce4a0c0 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -630,6 +630,7 @@ require('packer').startup(function(use) }, }, } + -- treesitter use { "nvim-treesitter/nvim-treesitter", @@ -805,102 +806,6 @@ require('packer').startup(function(use) end } - -- nvim-dap - use { - "mfussenegger/nvim-dap", - requires = { - { - "rcarriga/nvim-dap-ui", - event = { 'VimEnter' }, - config = function() - require("dapui").setup({ - icons = { expanded = "▾", collapsed = "▸", current_frame = "▸" }, - mappings = { - -- Use a table to apply multiple mappings - expand = { "", "<2-LeftMouse>" }, - open = "o", - remove = "d", - edit = "e", - repl = "r", - toggle = "t", - }, - layouts = { - { - elements = { - -- Elements can be strings or table with id and size keys. - { id = "scopes", size = 0.25 }, - "breakpoints", - "stacks", - "watches", - }, - size = 40, -- 40 columns - position = "left", - }, - { - elements = { - "repl", - }, - size = 0.25, -- 25% of total lines - position = "bottom", - }, - }, - controls = { - -- Requires Neovim nightly (or 0.8 when released) - enabled = true, - -- Display controls in this element - element = "repl", - icons = { - pause = "", - play = "", - step_into = "", - step_over = "", - step_out = "", - step_back = "", - run_last = "↻", - terminate = "□", - }, - }, - floating = { - max_height = nil, -- These can be integers or a float between 0 and 1. - max_width = nil, -- Floats will be treated as percentage of your screen. - border = "single", -- Border style. Can be "single", "double" or "rounded" - mappings = { - close = { "q", "" }, - }, - }, - windows = { indent = 1 }, - render = { - max_type_length = nil, -- Can be integer or nil. - max_value_lines = 100, -- Can be integer or nil. - } - }) - end, - }, - { - "leoluz/nvim-dap-go", - event = { 'VimEnter' }, - config = function() - require("dap-go").setup { - dap_configurations = { - { - type = "go", - name = "Attach remote", - mode = "remote", - request = "attach", - }, - }, - delve = { - path = "dlv", - initialize_timeout_sec = 20, - port = "${port}", - args = {} - }, - } - end, - }, - }, - } - -- go use { "kyoh86/vim-go-coverage", ft = "go" } use { "mattn/vim-goaddtags", ft = "go" } -- knotmirror 0.0.1