diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..7a9bb99 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "asvetliakov.vscode-neovim" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b793c71 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,22 @@ +{ + "workbench.colorCustomizations": { + "activityBar.activeBackground": "#7ed1d0", + "activityBar.background": "#7ed1d0", + "activityBar.foreground": "#15202b", + "activityBar.inactiveForeground": "#15202b99", + "activityBarBadge.background": "#c35bc4", + "activityBarBadge.foreground": "#15202b", + "commandCenter.border": "#15202b99", + "sash.hoverBorder": "#7ed1d0", + "statusBar.background": "#59c3c2", + "statusBar.foreground": "#15202b", + "statusBarItem.hoverBackground": "#3eabaa", + "statusBarItem.remoteBackground": "#59c3c2", + "statusBarItem.remoteForeground": "#15202b", + "titleBar.activeBackground": "#59c3c2", + "titleBar.activeForeground": "#15202b", + "titleBar.inactiveBackground": "#59c3c299", + "titleBar.inactiveForeground": "#15202b99" + }, + "peacock.color": "#59c3c2" +} \ No newline at end of file diff --git a/lazy-lock.json b/lazy-lock.json index 0b67194..bc6c62a 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,4 +1,10 @@ { - "lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" }, - "tokyonight.nvim": { "branch": "main", "commit": "2cd12582c98a3552032824ffa67fd44b4d81184a" } + "lazy.nvim": { + "branch": "main", + "commit": "077102c5bfc578693f12377846d427f49bc50076" + }, + "tokyonight.nvim": { + "branch": "main", + "commit": "2cd12582c98a3552032824ffa67fd44b4d81184a" + } } diff --git a/lua/code/code.lua b/lua/code/code.lua new file mode 100644 index 0000000..9b4bab1 --- /dev/null +++ b/lua/code/code.lua @@ -0,0 +1,8 @@ +-- source: https://www.lazyvim.org/extras/vscode +require("lazy").setup({ + spec = { + { "LazyVim/LazyVim", import = "lazyvim.plugins" }, + { import = "lazyvim.plugins.extras.vscode" }, + { import = "plugins" }, + }, +}) \ No newline at end of file diff --git a/lua/code/test.lua b/lua/code/test.lua new file mode 100644 index 0000000..1a7271e --- /dev/null +++ b/lua/code/test.lua @@ -0,0 +1,16 @@ +-- file to test vscode extension post load +local vscode = require('vscode') + +-- defined callback to test basic functionality +do -- Execute _ping asynchronously and print the result + vscode.action("_ping", { + callback = function(err, res) + if err == nil then + print(res) -- outputs: pong + end + end, + }) +end + +-- call callback +print(vscode.call("_ping")) -- outputs: pong \ No newline at end of file