From 4635b515e0d6ec7ec13bb72388e6f44595435c1a Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Sun, 10 Oct 2021 20:26:32 -0400 Subject: [PATCH] Add gps --- init.vim | 1 + lua/plugins.lua | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/init.vim b/init.vim index ffaed9a..502b255 100644 --- a/init.vim +++ b/init.vim @@ -17,6 +17,7 @@ Plug 'akinsho/bufferline.nvim' Plug 'numtostr/FTerm.nvim' Plug 'andweeb/presence.nvim' Plug 'tpope/vim-fugitive' +Plug 'SmiteshP/nvim-gps' call plug#end() set termguicolors set mouse=a diff --git a/lua/plugins.lua b/lua/plugins.lua index 54cb03b..646af2b 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -1,3 +1,6 @@ +local gps = require("nvim-gps") +gps.setup() + require("indent_blankline").setup { char = "|", buftype_exclude = {"terminal"} @@ -40,7 +43,7 @@ require('lualine').setup { sections = { lualine_a = {'mode'}, lualine_b = {'branch'}, - lualine_c = {'filename'}, + lualine_c = {'filename', { gps.get_location, condition = gps.is_available }}, lualine_x = {'encoding', 'fileformat', 'filetype'}, lualine_y = {'progress'}, lualine_z = {'location'} @@ -58,4 +61,3 @@ require('lualine').setup { } require("bufferline").setup({}) -