@@ -3,19 +3,6 @@ vim.g.mapleader = ' '
33vim .g .maplocalleader = ' '
44vim .g .have_nerd_font = true
55
6- local function nvim_ver (major , minor )
7- local version = vim .version ()
8- return (version .major > major or version .minor >= minor )
9- end
10-
11- -- fs_stat moves based on version :(
12- local fs_stat = function (path )
13- if nvim_ver (0 , 10 ) then
14- return vim .uv .fs_stat (path )
15- end
16- return vim .loop .fs_stat (path )
17- end
18-
196-- Margins
207vim .opt .title = false -- in status, not great with tmux
218vim .opt .number = true -- show line number
@@ -92,8 +79,9 @@ vim.api.nvim_create_autocmd('TextYankPost', {
9279
9380-- Install Lazy from Github
9481local lazypath = vim .fn .stdpath ' data' .. ' /lazy/lazy.nvim'
82+ local uv = vim .uv or vim .loop
9583
96- if not fs_stat (lazypath ) then
84+ if not uv . fs_stat (lazypath ) then
9785 local lazyrepo = ' https://github.com/folke/lazy.nvim.git'
9886 local out = vim .fn .system { ' git' , ' clone' , ' --filter=blob:none' , ' --branch=stable' , lazyrepo , lazypath }
9987 if vim .v .shell_error ~= 0 then
@@ -106,6 +94,7 @@ vim.opt.rtp:prepend(lazypath)
10694require (' lazy' ).setup ({
10795
10896 require ' plugins.indentguess' , -- Detects tabstop and shiftwidth to match orig
97+ require ' plugins.indent_line' , -- Mark indent with vertical ruler (default as toggle off)
10998 require ' plugins.neovimacs' , -- Emacs-style keybindings while in insert mode
11099 require ' plugins.gitsigns' , -- Add git changes to gutter
111100 require ' plugins.which-key' , -- Show keybindings as you go
0 commit comments