Skip to content

Commit 63d3993

Browse files
fix colors, debugger command, update Neovim screenshots
1 parent 2bf26dd commit 63d3993

3 files changed

Lines changed: 50 additions & 6 deletions

File tree

img/screenshot-neovim-a.jpg

145 KB
Loading

img/screenshot-neovim-b.jpg

-8.67 KB
Loading

nvim/init.lua

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ opt.dictionary:append(vim.fn.expand("~/.dic/en_US.dic"))
3030
vim.g.mapleader = " "
3131
vim.g.maplocalleader = " "
3232

33+
-- Suppress nvim-lspconfig deprecation notice for Nvim < 0.11
34+
do
35+
local _dep = vim.deprecate
36+
vim.deprecate = function(name, ...)
37+
if name == "nvim-lspconfig support for Nvim 0.10 or older" then return end
38+
return _dep(name, ...)
39+
end
40+
end
41+
3342
-- ============================================================
3443
-- LAZY.NVIM BOOTSTRAP
3544
-- ============================================================
@@ -53,16 +62,45 @@ require("lazy").setup({
5362
{ "nvim-lua/plenary.nvim", lazy = true },
5463
{ "nvim-tree/nvim-web-devicons", lazy = true },
5564

65+
-- ─── Colorscheme ─────────────────────────────────────────
66+
{
67+
"catppuccin/nvim",
68+
name = "catppuccin",
69+
priority = 1000,
70+
config = function()
71+
require("catppuccin").setup({
72+
flavour = "mocha",
73+
integrations = {
74+
treesitter = true,
75+
native_lsp = { enabled = true },
76+
indent_blankline = { enabled = true },
77+
gitsigns = true,
78+
telescope = { enabled = true },
79+
harpoon = true,
80+
lualine = true,
81+
},
82+
})
83+
vim.cmd.colorscheme("catppuccin")
84+
end,
85+
},
86+
5687
-- ─── Syntax / Parsing ────────────────────────────────────
5788
{
5889
"nvim-treesitter/nvim-treesitter",
90+
lazy = false,
5991
build = ":TSUpdate",
60-
event = { "BufReadPost", "BufNewFile" },
6192
config = function()
62-
require("nvim-treesitter.configs").setup({
63-
ensure_installed = { "c", "cpp", "python", "lua", "bash", "cmake", "make" },
64-
highlight = { enable = true },
65-
indent = { enable = true },
93+
-- Ensure parsers for common languages are installed
94+
require("nvim-treesitter").install({
95+
"c", "cpp", "python", "lua", "bash", "cmake", "make",
96+
"markdown", "markdown_inline",
97+
})
98+
-- Keep regex highlighting for markdown so bold/italic/headings get color
99+
vim.api.nvim_create_autocmd("FileType", {
100+
pattern = "markdown",
101+
callback = function(args)
102+
vim.bo[args.buf].syntax = "markdown"
103+
end,
66104
})
67105
end,
68106
},
@@ -143,7 +181,13 @@ require("lazy").setup({
143181
-- ─── Debugger ────────────────────────────────────────────
144182
{
145183
"mfussenegger/nvim-dap",
146-
keys = { "<leader>d" },
184+
keys = {
185+
{ "<leader>db", function() require("dap").toggle_breakpoint() end, desc = "Toggle breakpoint" },
186+
{ "<leader>dc", function() require("dap").continue() end, desc = "Continue" },
187+
{ "<leader>ds", function() require("dap").step_over() end, desc = "Step over" },
188+
{ "<leader>di", function() require("dap").step_into() end, desc = "Step into" },
189+
{ "<leader>do", function() require("dap").step_out() end, desc = "Step out" },
190+
},
147191
config = function()
148192
local dap = require("dap")
149193

0 commit comments

Comments
 (0)