From 16d3b05a8f33eb62c8cbe7c43394893e8034690a Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 2 Mar 2022 10:33:30 +0530 Subject: [PATCH] nvim: plugins: Drop nvim-gps --- nvim/.config/nvim/after/plugin/statusline.lua | 18 ------------------ nvim/.config/nvim/lua/plugins.lua | 1 - 2 files changed, 19 deletions(-) diff --git a/nvim/.config/nvim/after/plugin/statusline.lua b/nvim/.config/nvim/after/plugin/statusline.lua index a06946d..1917b6d 100644 --- a/nvim/.config/nvim/after/plugin/statusline.lua +++ b/nvim/.config/nvim/after/plugin/statusline.lua @@ -1,10 +1,7 @@ -local gps = require 'nvim-gps' local fn = vim.fn local api = vim.api local cmd = vim.cmd -gps.setup({ disable_icons = true }) - local M = {} local colors = { @@ -36,7 +33,6 @@ highlight("DiffAdded" , colors.green , colors.bg) highlight("DiffChanged" , colors.orange , colors.bg) highlight("DiffRemoved" , colors.red , colors.bg) -highlight("TSStatus" , colors.magenta, colors.bg) highlight("DiagnosticsE", colors.red , colors.bg) highlight("DiagnosticsW", colors.yellow , colors.bg) highlight("DiagnosticsI", colors.cyan , colors.bg) @@ -170,24 +166,10 @@ M.progress = function() return string.format(" %s%s", "%#Progress#", "%3p%% ") 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) return table.concat { self:get_filename(), self:get_git_status(), - self:treesitter_status(), "%=", self:diagnostic_status(), self:get_line_col(), diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index 18c2a2c..f28fe1e 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -96,7 +96,6 @@ local init = function () 'chentau/marks.nvim', } use 'andymass/vim-matchup' - use 'SmiteshP/nvim-gps' end return require('packer').startup(init)