dot_files/.config/nvim/init.lua

37 lines
1.2 KiB
Lua

-- disable netrw at the very start of your init.lua (strongly advised)
-- nvim-tree requires this
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- turn off the mouse scrolling because it is confusing
vim.cmd [[set mousescroll=ver:0,hor:0]]
-- line numbers for debugging and screen sharing, takes up 4 columns
vim.opt.number = true
vim.opt.numberwidth = 4
-- highlight current line - very useful, shouldn't turn off, you will be lost
vim.opt.cursorline = true
-- highlighted column 80, only on python files, to keep lines shorter
vim.opt.colorcolumn = '80'
-- vim.opt.termguicolors to enable highlight groups
vim.opt.termguicolors = true
vim.g.indentLine_fileTypeExclude = [['dashboard']]
-- both of these are required to make packer, our plugin manager work
require('plugins')
vim.cmd [[source ~/.config/nvim/packerinit.vim]]
-- Colors need to be enabled after the plugins, because the colors are a plugin
vim.cmd [[colorscheme spacechalk]]
-- --------- these are plugin configs for plugins imported by packer ---------
require('user.nvim-tree')
require('user.tree-sitter')
require('user.ale')
require('user.airline')
require('user.dashboard')
require('user.folding')