-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
98 lines (89 loc) · 2.35 KB
/
init.lua
File metadata and controls
98 lines (89 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
require("config.lazy")
vim.g.lazygit_config = false
vim.opt.termguicolors = true
vim.cmd("colorscheme default")
local customColor = "#1A1B27"
vim.api.nvim_set_hl(0, "WinSeparator", { fg = customColor })
vim.api.nvim_set_hl(0, "LspFloatWinBorder", { fg = customColor })
-- vim.api.nvim_set_hl(0, "NeoTreeNormal", { bg = "#23273C"})
-- vim.api.nvim_set_hl(0, "NeoTreeNormalNC", { bg = "#23273C" })
require("neo-tree").setup({
window = {
position = "right",
width = 45,
mappings = {
["P"] = {
"toggle_preview",
config = {
use_float = false,
use_image_nvim = true,
-- use_snacks_image = true,
-- title = 'Neo-tree Preview',
},
},
},
},
filesystem = {
components = {
icon = function(config, node, state)
if node.type == "file" then
return {}
end
return require("neo-tree.sources.common.components").icon(config, node, state)
end,
},
follow_current_file = {
enabled = true,
},
},
})
-- -- diff colorscheme
vim.api.nvim_set_hl(0, "DiffAdd", { bg = "#20303b" })
vim.api.nvim_set_hl(0, "DiffDelete", { bg = "#37222c" })
vim.api.nvim_set_hl(0, "DiffChange", { bg = "#1f2231" })
vim.api.nvim_set_hl(0, "DiffText", { bg = "#394b70" })
local dap = require("dap")
dap.adapters["pwa-node"] = {
type = "server",
host = "localhost",
port = "${port}",
executable = {
command = "node",
args = { "/Users/alejandro/workspace/cellar/js-debug/src/dapDebugServer.js", "${port}" },
},
}
dap.adapters.chrome = {
type = "executable",
command = "node",
args = { "/Users/alejandro/workspace/cellar/vscode-chrome-debug/src/chromeDebug.js" },
}
dap.configurations.javascript = {
{
name = "Next.js: debug server-side",
type = "pwa-node", -- Use pwa-node for Node.js debugging
request = "launch",
runtimeExecutable = "npm",
runtimeArgs = { "run", "dev" },
cwd = vim.fn.getcwd(), -- Current working directory
},
{
name = "Next.js: debug client-side",
type = "chrome",
request = "launch",
url = "http://localhost:3000",
webRoot = "${workspaceFolder}",
},
{
name = "Next.js: debug full stack",
type = "pwa-node", -- Use pwa-node for Node.js debugging
request = "launch",
runtimeExecutable = "npm",
runtimeArgs = { "run", "dev" },
cwd = vim.fn.getcwd(),
serverReadyAction = {
pattern = "started server on .+, url: (https?://.+)",
uriFormat = "%s",
action = "debugWithChrome",
},
},
}