mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-24 13:31:04 +00:00
Minimal config
This commit is contained in:
parent
f173c8c76a
commit
332f2992ac
4 changed files with 39 additions and 0 deletions
6
init.lua
6
init.lua
|
|
@ -1,3 +1,9 @@
|
||||||
require("user.options")
|
require("user.options")
|
||||||
require("user.keymaps")
|
require("user.keymaps")
|
||||||
require("user.plugins")
|
require("user.plugins")
|
||||||
|
|
||||||
|
vim.cmd.colorscheme("catppuccin-mocha")
|
||||||
|
|
||||||
|
require("nvim-treesitter.configs").setup({
|
||||||
|
highlight = { enable = true },
|
||||||
|
})
|
||||||
|
|
|
||||||
|
|
@ -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>")
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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" },
|
||||||
|
})
|
||||||
Loading…
Add table
Reference in a new issue