From 939b23c312e0e5ecfcb76dc7adc42a67ed77a1aa Mon Sep 17 00:00:00 2001 From: Ava Gaiety W Date: Fri, 22 Mar 2024 23:56:15 -0500 Subject: [PATCH] prettier lvim theme --- README.md | 4 +-- config.lua | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++ lvim.config | 42 --------------------------- 3 files changed, 83 insertions(+), 44 deletions(-) create mode 100644 config.lua delete mode 100644 lvim.config diff --git a/README.md b/README.md index 293213e..31897ba 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ Designed for Unix Systems. * Install [NeoVim](https://neovim.io/) * Install [LunarVim](https://www.lunarvim.org/) `lvim` to run - Additional config in `lvim.config` + Additional config in `config.lua` * Install fzf - ```bash + ```sh git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf ~/.fzf/install ``` diff --git a/config.lua b/config.lua new file mode 100644 index 0000000..4bbe376 --- /dev/null +++ b/config.lua @@ -0,0 +1,81 @@ +-- Read the docs: https://www.lunarvim.org/docs/configuration +-- Video Tutorials: https://www.youtube.com/watch?v=sFA9kX-Ud_c&list=PLhoH5vyxr6QqGu0i7tt_XoVK9v-KvZ3m6 +-- Forum: https://www.reddit.com/r/lunarvim/ +-- Discord: https://discord.com/invite/Xb9B4Ny +-- + +-- Generic Custom Settings +vim.opt.relativenumber = true +vim.opt.mouse = "" +lvim.transparent_window = true +vim.g.codestats_api_key = 'SFMyNTY.WjJGcFpYUjUjI01qSXhPVFU9.fMtCrS4QvdQKCgS_pasnqpWGUyrk3At646kPkN7LIn8' + +-- Custom Plugins +lvim.plugins = { + { "catppuccin/nvim", name = "catppuccin", priority = 1000 }, + { url = "https://gitlab.com/code-stats/code-stats-vim.git"} +} + +-- Theme Overrides +require("catppuccin").setup({ + flavour = "macchiato", -- latte, frappe, macchiato, mocha + background = { -- :h background + light = "latte", + dark = "mocha", + }, + transparent_background = true, -- disables setting the background color. + show_end_of_buffer = false, -- shows the '~' characters after the end of buffers + term_colors = false, -- sets terminal colors (e.g. `g:terminal_color_0`) + dim_inactive = { + enabled = true, -- dims the background color of inactive window + shade = "dark", + percentage = 0.15, -- percentage of the shade to apply to the inactive window + }, + styles = { -- Handles the styles of general hi groups (see `:h highlight-args`): + comments = { "italic" }, -- Change the style of comments + conditionals = { "italic" }, + loops = {}, + functions = {}, + keywords = {}, + strings = {}, + variables = {}, + numbers = {}, + booleans = {}, + properties = {}, + types = {}, + operators = {}, + -- miscs = {}, -- Uncomment to turn off hard-coded styles + }, + color_overrides = {}, + custom_highlights = {}, +}) + +vim.cmd[[colorscheme catppuccin]] +lvim.colorscheme = "catppuccin" + +-- DAP +local dap = require('dap') +dap.configurations.typescript = { + { + name = "Launch", + type = "node2", + request = "launch", + cwd = vim.loop.cwd(), + runtimeArgs = { "-r", "ts-node/register" }, + runtimeExecutable = "node", + args = {"--inspect", "${file}"}, + sourceMaps = true, + skipFiles = { "/**", "node_modules/**" }, + }, { + name = "Attach", + type = "node2", + request = "attach", + processId = require 'dap.utils'.pick_process, + } + +} +dap.adapters.node2 = { + type = 'executable', + command = 'node', + args = {os.getenv('HOME') .. '/dev/microsoft/vscode-node-debug2/out/src/nodeDebug.js'}, +} diff --git a/lvim.config b/lvim.config deleted file mode 100644 index 904a05e..0000000 --- a/lvim.config +++ /dev/null @@ -1,42 +0,0 @@ -vim.opt.relativenumber = true - -lvim.transparent_window = true - -vim.g.codestats_api_key = 'SFMyNTY.WjJGcFpYUjUjI01qSXhPVFU9.fMtCrS4QvdQKCgS_pasnqpWGUyrk3At646kPkN7LIn8' - -lvim.plugins = { - { "dracula/vim" }, - { url = "https://gitlab.com/code-stats/code-stats-vim.git"} -} - -vim.cmd[[colorscheme dracula]] -lvim.colorscheme = "dracula" - -local dap = require('dap') - -dap.configurations.typescript = { - { - name = "Launch", - type = "node2", - request = "launch", - cwd = vim.loop.cwd(), - runtimeArgs = { "-r", "ts-node/register" }, - runtimeExecutable = "node", - args = {"--inspect", "${file}"}, - sourceMaps = true, - skipFiles = { "/**", "node_modules/**" }, - }, { - name = "Attach", - type = "node2", - request = "attach", - processId = require 'dap.utils'.pick_process, - } - -} - -dap.adapters.node2 = { - type = 'executable', - command = 'node', - args = {os.getenv('HOME') .. '/dev/microsoft/vscode-node-debug2/out/src/nodeDebug.js'}, -} -