diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2b438b6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +# This gitignore is going to be quite big +# It will exclude EVERY plugin that is pulled in by packer +# that way git doesn't try to add and commit them +plugin/packer_compiled.lua diff --git a/after/plugin/lualine.lua b/after/plugin/lualine.lua new file mode 100644 index 0000000..7af170b --- /dev/null +++ b/after/plugin/lualine.lua @@ -0,0 +1,29 @@ +require('lualine').setup { + options = { + icons_enabled = true, + theme = 'gruvbox', + component_separators = { left = '', right = '' }, + section_separators = { left = '', right = '' }, + disabled_filetypes = {}, + always_divide_middle = true, + globalstatus = true, + }, + sections = { + lualine_a = {'mode'}, + lualine_b = {'branch', 'diff', 'diagnostics'}, + lualine_c = {'filename'}, + lualine_x = {'encoding', 'fileformat', 'filetype'}, + lualine_y = {'progress'}, + lualine_z = {'location'} + }, + inactive_sections = { + lualine_a = {}, + lualine_b = {}, + lualine_c = {'filename'}, + lualine_x = {'location'}, + lualine_y = {}, + lualine_z = {} + }, + tabline = {}, + extensions = {} +} diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..b42e186 --- /dev/null +++ b/init.lua @@ -0,0 +1,8 @@ +-- Initialisation file. NOW IN LUA + +-- Grab Packer. (This should be OS agnostic) +-- But does require git to be installed TODO: add check for git +-- Inititally by @Iron-E and @khuedoan on GitHub reimplemented by me to my standards + +require('sherlock5512.plugins') +require('sherlock5512.settings') diff --git a/lua/sherlock5512/plugins.lua b/lua/sherlock5512/plugins.lua new file mode 100644 index 0000000..750027c --- /dev/null +++ b/lua/sherlock5512/plugins.lua @@ -0,0 +1,37 @@ +-- this file configures my plugins + +-- Grab Packer. (This should be OS agnostic) +-- But does require git to be installed TODO: add check for git +-- by @Iron-E and @khuedoan on GitHub + +local fn = vim.fn +local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' +if fn.empty(fn.glob(install_path)) > 0 then + packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) + vim.cmd 'packadd packer.nvim' +end + +return require('packer').startup(function(use) + -- Make packer manage itself + use 'wbthomason/packer.nvim' + + -- Lualine over airline for now + use { + 'nvim-lualine/lualine.nvim', + requires = {'kyazdani42/nvim-web-devicons', opt = true} + } + + use 'morhetz/gruvbox' + use { + 'ms-jpq/chadtree', + run = + function() + _ = vim.fn.system({'python3' , '-m' , 'chadtree' , 'deps'}) + vim.fn[CHADdeps](0) + end + } + + if packer_bootstrap then + require('packer').sync() + end +end) diff --git a/lua/sherlock5512/settings.lua b/lua/sherlock5512/settings.lua new file mode 100644 index 0000000..c3e72d3 --- /dev/null +++ b/lua/sherlock5512/settings.lua @@ -0,0 +1,11 @@ +-- General global settings for neovim + +local opt = vim.opt -- basically the same as set + +opt.relativenumber = true -- might make this false if I hate it after using it +opt.number = true +vim.cmd([[colorscheme gruvbox]]) + +opt.ignorecase = true +opt.smartcase = true +