nvim: plugins: Drop nvim-gps
This commit is contained in:
parent
564448abc7
commit
16d3b05a8f
2 changed files with 0 additions and 19 deletions
|
@ -1,10 +1,7 @@
|
||||||
local gps = require 'nvim-gps'
|
|
||||||
local fn = vim.fn
|
local fn = vim.fn
|
||||||
local api = vim.api
|
local api = vim.api
|
||||||
local cmd = vim.cmd
|
local cmd = vim.cmd
|
||||||
|
|
||||||
gps.setup({ disable_icons = true })
|
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
local colors = {
|
local colors = {
|
||||||
|
@ -36,7 +33,6 @@ highlight("DiffAdded" , colors.green , colors.bg)
|
||||||
highlight("DiffChanged" , colors.orange , colors.bg)
|
highlight("DiffChanged" , colors.orange , colors.bg)
|
||||||
highlight("DiffRemoved" , colors.red , colors.bg)
|
highlight("DiffRemoved" , colors.red , colors.bg)
|
||||||
|
|
||||||
highlight("TSStatus" , colors.magenta, colors.bg)
|
|
||||||
highlight("DiagnosticsE", colors.red , colors.bg)
|
highlight("DiagnosticsE", colors.red , colors.bg)
|
||||||
highlight("DiagnosticsW", colors.yellow , colors.bg)
|
highlight("DiagnosticsW", colors.yellow , colors.bg)
|
||||||
highlight("DiagnosticsI", colors.cyan , colors.bg)
|
highlight("DiagnosticsI", colors.cyan , colors.bg)
|
||||||
|
@ -170,24 +166,10 @@ M.progress = function()
|
||||||
return string.format(" %s%s", "%#Progress#", "%3p%% ")
|
return string.format(" %s%s", "%#Progress#", "%3p%% ")
|
||||||
end
|
end
|
||||||
|
|
||||||
M.treesitter_status = function()
|
|
||||||
if gps.is_available then
|
|
||||||
local location = gps.get_location()
|
|
||||||
if location == 'error' then
|
|
||||||
return ''
|
|
||||||
else
|
|
||||||
return string.format("%s%s", ' %#TSStatus#', location)
|
|
||||||
end
|
|
||||||
else
|
|
||||||
return ''
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
M.set_active = function(self)
|
M.set_active = function(self)
|
||||||
return table.concat {
|
return table.concat {
|
||||||
self:get_filename(),
|
self:get_filename(),
|
||||||
self:get_git_status(),
|
self:get_git_status(),
|
||||||
self:treesitter_status(),
|
|
||||||
"%=",
|
"%=",
|
||||||
self:diagnostic_status(),
|
self:diagnostic_status(),
|
||||||
self:get_line_col(),
|
self:get_line_col(),
|
||||||
|
|
|
@ -96,7 +96,6 @@ local init = function ()
|
||||||
'chentau/marks.nvim',
|
'chentau/marks.nvim',
|
||||||
}
|
}
|
||||||
use 'andymass/vim-matchup'
|
use 'andymass/vim-matchup'
|
||||||
use 'SmiteshP/nvim-gps'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return require('packer').startup(init)
|
return require('packer').startup(init)
|
||||||
|
|
Loading…
Reference in a new issue