local vim = vim -- assign vim to local variable so the lua lsp is quieter vim.api.mapleader = "\\" -- map leader to backslash require("config.lazy") -- load lazy Plugin manager require("config.conform") -- load formatter config require("config.cmp") -- load completion config require("config.symbols-outline") -- load symbols outline require("config.telescope") -- load keyboard shortcuts for telescope -- load language configs require("config.lua") require("config.java") require("config.typescript") require("config.python") require("config.lsp") -- set up bufferline vim.opt.termguicolors = true require("bufferline").setup({}) vim.cmd("colorscheme cyberdream") -- set colorscheme vim.o.number = true -- show line numbers vim.o.wildmenu = true -- enable a menu that shows tab completion otions in the status bar vim.o.showmatch = true -- highlights matching brackets on cursor hover vim.o.ruler = true -- show cursor position in status bar vim.o.showcmd = true -- shows the normal mode command before it gets executed vim.o.encoding = "utf-8" vim.o.fileformats = "unix,dos,mac" vim.o.hlsearch = true -- highlights searches vim.o.incsearch = true -- incremental search (searches character by character) vim.o.ignorecase = true -- ignores the case of a search vim.o.smartcase = true -- only ignores case if there are no capital letters in search (only works after ignorecase has been set vim.o.tabstop = 4 -- the amount of spaces that vim will equate to a tab character vim.o.softtabstop = 4 -- like tabstop, but for editing operations (insert mode) vim.o.shiftwidth = 4 -- used for autoindent and << and >> operators in normal mode vim.autoindent = true -- copies indent from current line to the next line vim.expandtab = true -- tabs will expand to whitespace characters vim.o.textwidth = 80 -- for readability, the standard line length is 80 vim.o.colorcolumn = "+1,+41,+81" -- color columns relative to textwidth vim.o.ttimeoutlen = 20 -- timeout for a key code mapping vim.o.timeoutlen = 1000 -- time(ms) to wait for key mappings vim.o.mouse = "a" -- enable mouse in all modes vim.cmd("syntax enable") -- turn syntax highlighting on vim.cmd("filetype plugin indent on") -- load plugin and indent files associated with a detected filetype