Minimal config

This commit is contained in:
Marcelo Jacobus 2025-06-29 20:01:18 -03:00
parent f173c8c76a
commit 332f2992ac
4 changed files with 39 additions and 0 deletions

View file

@ -1,3 +1,9 @@
require("user.options")
require("user.keymaps")
require("user.plugins")
vim.cmd.colorscheme("catppuccin-mocha")
require("nvim-treesitter.configs").setup({
highlight = { enable = true },
})

View file

@ -0,0 +1,6 @@
vim.g.mapleader = " "
local keymap = vim.keymap.set
keymap("n", "<leader>pv", vim.cmd.Ex)
keymap("n", "<C-s>", ":w<CR>", { desc = "Save file" })
keymap("i", "jk", "<Esc>")

View file

@ -0,0 +1,11 @@
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.termguicolors = true
vim.opt.cursorline = true
vim.opt.signcolumn = "yes"
vim.opt.updatetime = 300
vim.opt.scrolloff = 8

View file

@ -0,0 +1,16 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git", "clone", "--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
{ "nvim-lua/plenary.nvim" },
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
{ "nvim-telescope/telescope.nvim", tag = "0.1.5" },
{ "catppuccin/nvim", name = "catppuccin" },
})