fixed merge conflict

This commit is contained in:
Ivar Fatland
2024-04-03 21:45:14 +02:00
+4 -6
View File
@@ -147,6 +147,7 @@ local function packer_startup(use)
use 'mfussenegger/nvim-dap' use 'mfussenegger/nvim-dap'
use 'mfussenegger/nvim-dap-python' -- follow instructions or start venv before starting nvim. use 'mfussenegger/nvim-dap-python' -- follow instructions or start venv before starting nvim.
use 'theHamsta/nvim-dap-virtual-text' use 'theHamsta/nvim-dap-virtual-text'
use 'leoluz/nvim-dap-go'
use "ellisonleao/gruvbox.nvim" use "ellisonleao/gruvbox.nvim"
@@ -313,6 +314,7 @@ local function packer_startup(use)
-- More configurations: -- More configurations:
-- https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#go -- https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#go
require'dap-python'.setup('~/.virtualenvs/debugpy/bin/python') require'dap-python'.setup('~/.virtualenvs/debugpy/bin/python')
require'dap-go'.setup()
dap.adapters.gdb = { dap.adapters.gdb = {
@@ -336,10 +338,7 @@ local function packer_startup(use)
-- nicer debugging. displays variable values inline -- nicer debugging. displays variable values inline
-- https://github.com/theHamsta/nvim-dap-virtual-text -- https://github.com/theHamsta/nvim-dap-virtual-text
require'nvim-dap-virtual-text'.setup{ require'nvim-dap-virtual-text'.setup{}
}
end end
---@param name string ---@param name string
@@ -364,8 +363,7 @@ vim.api.nvim_create_user_command(
'S', 'S',
function () function ()
---@type string ---@type string
local snippets_path = vim.fn.stdpath('config') .. '/snippets/' .. local snippets_path = vim.fn.stdpath('config') .. '/snippets/' .. vim.api.nvim_buf_get_option(0, "filetype") .. '.snippets'
vim.api.nvim_buf_get_option(0, "filetype") .. '.snippets'
if not file_exists(snippets_path) then if not file_exists(snippets_path) then
local file = io.open( snippets_path, 'w' ) local file = io.open( snippets_path, 'w' )