Skip to content

Instantly share code, notes, and snippets.

@gmdias727
Created February 7, 2025 01:16
Show Gist options
  • Save gmdias727/bc4415cc7038e643a699c08fe82ef626 to your computer and use it in GitHub Desktop.
Save gmdias727/bc4415cc7038e643a699c08fe82ef626 to your computer and use it in GitHub Desktop.
vim.cmd("set expandtab")
vim.cmd("set tabstop=4")
vim.cmd("set softtabstop=4")
vim.cmd("set shiftwidth=4")
vim.cmd("set number")
vim.g.mapleader = " "
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
local plugins = {
{'nvim-telescope/telescope.nvim', tag = '0.1.8', dependencies = { 'nvim-lua/plenary.nvim',{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' }}},
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
{"nvim-treesitter/nvim-treesitter", build = ":TSUpdate"},
{'IogaMaster/neocord', event = "VeryLazy"}
}
local opts = {}
require("lazy").setup(plugins, opts)
local builtin = require("telescope.builtin")
vim.keymap.set('n', '<C-p>', builtin.find_files, {})
require("catppuccin").setup()
vim.cmd.colorscheme "catppuccin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment