local opt = vim.opt local g = vim.g vim.cmd [[ colorscheme spacegray if has("autocmd") au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif endif autocmd Filetype json \ let g:indentLine_setConceal = 0 | \ let g:vim_json_syntax_conceal = 0 ]] g.mapleader = ' ' opt.undofile = true opt.undodir = "/home/sijmen/.cache/nvim/undo" opt.backupdir = "/home/sijmen/.cache/nvim/backup" opt.shada = "!,'100,<50,s10,h" opt.smartindent = true opt.autoindent = true opt.tabstop = 2 opt.shiftwidth = 2 opt.expandtab = true opt.mouse = "a" opt.termguicolors = true opt.cursorline = true opt.relativenumber = true opt.viminfo = "" opt.viminfofile = "NONE" opt.smartcase = true opt.ttimeoutlen = 5 opt.compatible = false opt.autoread = true opt.incsearch = true opt.hidden = true opt.shortmess = "atI" require("nvim-tree").setup() require("nvim-treesitter.configs").setup { auto_install = true, highlight = { enable = true, }, } local lspconfig = require("lspconfig") lspconfig.rnix.setup {} lspconfig.pyright.setup {} require("rust-tools").setup {} vim.api.nvim_set_keymap("n", "", ":NvimTreeToggle", { noremap = true, silent = true })