-- Bootstrap lazy.nvim 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) -- Basic settings vim.g.mapleader = " " vim.g.maplocalleader = " " vim.opt.number = true vim.opt.relativenumber = true vim.opt.mouse = "a" vim.opt.ignorecase = true vim.opt.smartcase = true vim.opt.hlsearch = false vim.opt.wrap = false vim.opt.tabstop = 2 vim.opt.shiftwidth = 2 vim.opt.expandtab = true vim.opt.termguicolors = true -- Use Fish shell vim.opt.shell = "/usr/bin/fish" -- Enable word wrap for markdown files vim.api.nvim_create_autocmd("FileType", { pattern = "markdown", callback = function() vim.opt_local.wrap = true vim.opt_local.linebreak = true end, }) -- Only load plugins if not in VS Code if not vim.g.vscode then -- Load plugins require("lazy").setup("plugins") -- Load IDE layout command require("ide-layout") end