Moved fully away from helix to minimal nvim
This commit is contained in:
@@ -6,7 +6,7 @@ vim.o.relativenumber = true -- Show relative line numbers
|
||||
vim.o.cursorline = true -- Highlight the line where the cursor is
|
||||
vim.o.wrap = false -- Don't wrap long lines to the next line
|
||||
vim.o.list = true -- Show invisible characters (tabs, trailing spaces)
|
||||
vim.o.scrolloff = 20 -- Keep 20 lines above/below cursor when scrolling
|
||||
vim.o.scrolloff = 15 -- Keep 15 lines above/below cursor when scrolling
|
||||
vim.o.winborder = 'rounded' -- Use rounded borders for floating windows
|
||||
vim.o.ignorecase = true -- Ignore case in search patterns
|
||||
vim.o.smartcase = true -- ...unless search contains an uppercase letter
|
||||
|
||||
@@ -63,6 +63,28 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||
end,
|
||||
})
|
||||
|
||||
-- Define highlight groups
|
||||
vim.api.nvim_set_hl(0, "TodoFix", { fg = "#FF5555", bold = true })
|
||||
vim.api.nvim_set_hl(0, "TodoTodo", { fg = "#FFB86C", bold = true })
|
||||
vim.api.nvim_set_hl(0, "TodoNote", { fg = "#A8D8FF", bold = true })
|
||||
vim.api.nvim_set_hl(0, "TodoInfo", { fg = "#98DB6F", bold = true })
|
||||
|
||||
-- Match and highlight keywords in comments
|
||||
local keywords = {
|
||||
{ pattern = "FIX:.*", group = "TodoFix" },
|
||||
{ pattern = "TODO:.*", group = "TodoTodo" },
|
||||
{ pattern = "NOTE:.*", group = "TodoNote" },
|
||||
{ pattern = "INFO:.*", group = "TodoInfo" },
|
||||
}
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost" }, {
|
||||
callback = function()
|
||||
for _, kw in ipairs(keywords) do
|
||||
vim.fn.matchadd(kw.group, kw.pattern)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- Format: whole file or visual selection via :Fc
|
||||
local function smart_format()
|
||||
local mode = vim.fn.mode()
|
||||
|
||||
@@ -2,10 +2,10 @@ vim.pack.add({
|
||||
{ src = "https://github.com/ibhagwan/fzf-lua" },
|
||||
{ src = "https://github.com/neovim/nvim-lspconfig" },
|
||||
{ src = "https://github.com/romus204/tree-sitter-manager.nvim" },
|
||||
{ src = "https://github.com/catppuccin/nvim", name = "catppuccin" },
|
||||
{ src = "https://github.com/tribela/transparent.nvim" }
|
||||
{ src = "https://github.com/rebelot/kanagawa.nvim" },
|
||||
{ src = "https://github.com/tribela/transparent.nvim" },
|
||||
})
|
||||
vim.cmd(":colorscheme catppuccin-nvim")
|
||||
vim.cmd(":colorscheme kanagawa")
|
||||
|
||||
require("tree-sitter-manager").setup({})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user