Skip to content

Commit

Permalink
Add nvim-gps
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPickles committed Dec 14, 2021
1 parent 62dfa76 commit 2f00e22
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions nvim/lua/plugin/gps.lua
@@ -0,0 +1,5 @@
require('nvim-gps').setup({
icons = {
['container-name'] = '',
},
})
8 changes: 8 additions & 0 deletions nvim/lua/plugin/lualine.lua
@@ -1,2 +1,10 @@
local gps = require('nvim-gps')

require('lualine').setup({
sections = {
lualine_c = {
'filename',
{gps.get_location, cond = gps.is_available},
},
},
})
10 changes: 9 additions & 1 deletion nvim/lua/plugins.lua
Expand Up @@ -29,7 +29,10 @@ packer.startup(function(use)
use {
'nvim-lualine/lualine.nvim',
config = "require('plugin.lualine')",
requires = {'kyazdani42/nvim-web-devicons', opt = true}
requires = {
{'kyazdani42/nvim-web-devicons', opt = true},
'SmiteshP/nvim-gps',
},
}
use {
'akinsho/bufferline.nvim',
Expand Down Expand Up @@ -78,6 +81,11 @@ packer.startup(function(use)
config = "require('plugin.treesitter')",
run = ':TSUpdate',
}
use {
'SmiteshP/nvim-gps',
config = "require('plugin.gps')",
requires = 'nvim-treesitter/nvim-treesitter',
}
-- Vim Polyglot for the languages not supported by Treesitter.
use 'sheerun/vim-polyglot'

Expand Down

0 comments on commit 2f00e22

Please sign in to comment.