set noerrorbells set history=500 set autoread set ruler set number set expandtab set smarttab set smartindent set nowrap set smartcase set noswapfile set nobackup set undodir=~/.nvim/undodir set undofile set incsearch set shiftwidth=4 set tabstop=4 softtabstop=4 set encoding=utf-8 set fileencoding=utf-8 set relativenumber set scrolloff=8 set hidden set signcolumn=yes set colorcolumn=110 set list call plug#begin("~/.nvim/plugged") Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " Treesitter highlighting Plug 'folke/tokyonight.nvim', {'branch': 'main' } " Active colour scheme Plug 'stevearc/oil.nvim' Plug 'akinsho/toggleterm.nvim' Plug 'ibhagwan/fzf-lua' call plug#end() packadd matchit let mapleader = " " lua require('treesitter') lua require('man-config') lua require('fzf-config') lua require('oil-config') lua require('toggleterm').setup({ direction = "horizontal", size = 15 }) command! Cheats edit ~/.config/nvim/cheats.md nnoremap h :nohlsearch nnoremap lua require('toggleterm').toggle(1, 15, vim.fn.expand('%:p:h'), 'horizontal') tnoremap lua require('toggleterm').toggle(1, 15, vim.fn.expand('%:p:h'), 'horizontal') nnoremap y "+y vnoremap y "+y nnoremap p "+p colorscheme tokyonight-night