···11+-- Autocmds are automatically loaded on the VeryLazy event
22+-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
33+--
44+-- Add any additional autocmds here
55+-- with `vim.api.nvim_create_autocmd`
66+--
77+-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
88+-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
99+1010+vim.api.nvim_create_autocmd("FileType", {
1111+ pattern = { "markdown", "text" },
1212+ callback = function()
1313+ vim.opt_local.spell = false
1414+ end,
1515+})
+3
nvim/lua/config/keymaps.lua
···11+-- Keymaps are automatically loaded on the VeryLazy event
22+-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
33+-- Add any additional keymaps here
+60
nvim/lua/config/lazy.lua
···11+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
22+if not (vim.uv or vim.loop).fs_stat(lazypath) then
33+ local lazyrepo = "https://github.com/folke/lazy.nvim.git"
44+ local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
55+ if vim.v.shell_error ~= 0 then
66+ vim.api.nvim_echo({
77+ { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
88+ { out, "WarningMsg" },
99+ { "\nPress any key to exit..." },
1010+ }, true, {})
1111+ vim.fn.getchar()
1212+ os.exit(1)
1313+ end
1414+end
1515+vim.opt.rtp:prepend(lazypath)
1616+1717+require("lazy").setup({
1818+ spec = {
1919+ -- add LazyVim and import its plugins
2020+ { "LazyVim/LazyVim", import = "lazyvim.plugins" },
2121+ -- import/override with your plugins
2222+ { import = "plugins" },
2323+ },
2424+ defaults = {
2525+ -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
2626+ -- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
2727+ lazy = false,
2828+ -- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
2929+ -- have outdated releases, which may break your Neovim install.
3030+ version = false, -- always use the latest git commit
3131+ -- version = "*", -- try installing the latest stable version for plugins that support semver
3232+ },
3333+ install = { colorscheme = { "tokyonight", "catppuccin" } },
3434+ checker = {
3535+ enabled = true, -- check for plugin updates periodically
3636+ notify = false, -- notify on update
3737+ }, -- automatically check for plugin updates
3838+ performance = {
3939+ rtp = {
4040+ -- disable some rtp plugins
4141+ disabled_plugins = {
4242+ "gzip",
4343+ -- "matchit",
4444+ -- "matchparen",
4545+ -- "netrwPlugin",
4646+ "tarPlugin",
4747+ "tohtml",
4848+ "tutor",
4949+ "zipPlugin",
5050+ },
5151+ },
5252+ },
5353+})
5454+5555+require("catppuccin").setup({
5656+ flavour = "mocha",
5757+ transparent_background = true,
5858+})
5959+6060+vim.cmd.colorscheme "catppuccin"
+4
nvim/lua/config/options.lua
···11+-- Options are automatically loaded before lazy.nvim startup
22+-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
33+-- Add any additional options here
44+vim.opt.relativenumber = false