Removed plugins
This commit is contained in:
@@ -1,80 +0,0 @@
|
|||||||
--- @type LazyPluginSpec
|
|
||||||
return {
|
|
||||||
"b0o/incline.nvim",
|
|
||||||
event = "VeryLazy",
|
|
||||||
enabled = false,
|
|
||||||
config = function()
|
|
||||||
local incline = require("incline")
|
|
||||||
|
|
||||||
incline.setup({
|
|
||||||
highlight = {
|
|
||||||
groups = {
|
|
||||||
InclineNormal = {
|
|
||||||
default = true,
|
|
||||||
group = "Normal",
|
|
||||||
},
|
|
||||||
InclineNormalNC = {
|
|
||||||
default = true,
|
|
||||||
group = "Normal",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
render = function(props)
|
|
||||||
local devicons = require("nvim-web-devicons")
|
|
||||||
local helpers = require("incline.helpers")
|
|
||||||
local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ":t")
|
|
||||||
if filename == "" then
|
|
||||||
filename = "[No Name]"
|
|
||||||
end
|
|
||||||
local ft_icon, ft_color = devicons.get_icon_color(filename)
|
|
||||||
local modified = vim.bo[props.buf].modified
|
|
||||||
|
|
||||||
local function get_git_diff()
|
|
||||||
local icons = { removed = "", changed = "", added = "" }
|
|
||||||
local signs = vim.b[props.buf].gitsigns_status_dict
|
|
||||||
local labels = {}
|
|
||||||
if signs == nil then
|
|
||||||
return labels
|
|
||||||
end
|
|
||||||
for name, icon in pairs(icons) do
|
|
||||||
if tonumber(signs[name]) and signs[name] > 0 then
|
|
||||||
table.insert(labels, { icon .. signs[name] .. " ", group = "Diff" .. name })
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if #labels > 0 then
|
|
||||||
table.insert(labels, { "┊ " })
|
|
||||||
end
|
|
||||||
return labels
|
|
||||||
end
|
|
||||||
|
|
||||||
local function get_diagnostic_label()
|
|
||||||
local icons = { error = "", warn = "", info = "", hint = "" }
|
|
||||||
local label = {}
|
|
||||||
|
|
||||||
for severity, icon in pairs(icons) do
|
|
||||||
local n = #vim.diagnostic.get(
|
|
||||||
props.buf,
|
|
||||||
{ severity = vim.diagnostic.severity[string.upper(severity)] }
|
|
||||||
)
|
|
||||||
if n > 0 then
|
|
||||||
table.insert(label, { icon .. n .. " ", group = "DiagnosticSign" .. severity })
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if #label > 0 then
|
|
||||||
table.insert(label, { "┊ " })
|
|
||||||
end
|
|
||||||
|
|
||||||
return label
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
|
||||||
{ get_diagnostic_label() },
|
|
||||||
{ get_git_diff() },
|
|
||||||
ft_icon and { " ", ft_icon, " ", guibg = ft_color, guifg = helpers.contrast_color(ft_color) } or "",
|
|
||||||
" ",
|
|
||||||
{ filename, gui = modified and "bold,italic" or "bold" },
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
--- @type LazyPluginSpec
|
|
||||||
return {
|
|
||||||
"IogaMaster/neocord",
|
|
||||||
enabled = false,
|
|
||||||
config = function()
|
|
||||||
local neocord = require("neocord")
|
|
||||||
|
|
||||||
neocord.setup({
|
|
||||||
logo = "neovim",
|
|
||||||
logo_tooltip = "The One True Text Editor",
|
|
||||||
main_image = "neovim",
|
|
||||||
client_id = "793271441293967371",
|
|
||||||
log_level = nil,
|
|
||||||
debounce_timeout = 10,
|
|
||||||
blacklist = {},
|
|
||||||
file_assets = {},
|
|
||||||
show_time = true,
|
|
||||||
global_timer = true,
|
|
||||||
|
|
||||||
editing_text = "Editing %s",
|
|
||||||
file_explorer_text = "Browsing %s",
|
|
||||||
git_commit_text = "Committing changes",
|
|
||||||
plugin_manager_text = "Managing plugins",
|
|
||||||
reading_text = "Reading %s",
|
|
||||||
workspace_text = "Working on %s",
|
|
||||||
line_number_text = "Line %s out of %s",
|
|
||||||
terminal_text = "Using Terminal",
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
--- @type LazyPluginSpec
|
|
||||||
return {
|
|
||||||
"nvim-tree/nvim-tree.lua",
|
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
||||||
enabled = false,
|
|
||||||
init = function()
|
|
||||||
vim.g.loaded_netrw = 1
|
|
||||||
vim.g.loaded_netrwPlugin = 1
|
|
||||||
end,
|
|
||||||
config = function()
|
|
||||||
local nvimtree = require("nvim-tree")
|
|
||||||
|
|
||||||
nvimtree.setup({
|
|
||||||
sync_root_with_cwd = true,
|
|
||||||
view = {
|
|
||||||
width = 30,
|
|
||||||
},
|
|
||||||
git = {
|
|
||||||
ignore = false,
|
|
||||||
},
|
|
||||||
filters = {
|
|
||||||
dotfiles = false,
|
|
||||||
custom = {
|
|
||||||
"node_modules",
|
|
||||||
".git",
|
|
||||||
},
|
|
||||||
exclude = {
|
|
||||||
".gitignore",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>n", ":NvimTreeToggle <CR>", { silent = true, desc = "Toggle nvim-tree" })
|
|
||||||
vim.keymap.set("n", "<leader>e", ":NvimTreeFocus <CR>", { silent = true, desc = "Focus nvim-tree" })
|
|
||||||
vim.keymap.set("n", "<leader>r", ":NvimTreeRefresh <CR>", { silent = true, desc = "Refresh nvim-tree" })
|
|
||||||
vim.keymap.set("n", "<leader>tr", function()
|
|
||||||
require("nvim-tree.api").tree.change_root(vim.fn.getcwd())
|
|
||||||
end, { silent = true, desc = "Change root dir to current dir" })
|
|
||||||
|
|
||||||
local autocmd = vim.api.nvim_create_autocmd
|
|
||||||
local augroup = vim.api.nvim_create_augroup
|
|
||||||
local neogitCmds = augroup("MyCustomNeogitEvents", { clear = true })
|
|
||||||
|
|
||||||
autocmd("User", {
|
|
||||||
pattern = "NeogitPushComplete",
|
|
||||||
group = neogitCmds,
|
|
||||||
callback = function()
|
|
||||||
require("nvim-tree.api").tree.reload()
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
autocmd("User", {
|
|
||||||
pattern = "NeogitPullComplete",
|
|
||||||
group = neogitCmds,
|
|
||||||
callback = function()
|
|
||||||
require("nvim-tree.api").tree.reload()
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
autocmd("User", {
|
|
||||||
pattern = "NeogitFetchComplete",
|
|
||||||
group = neogitCmds,
|
|
||||||
callback = function()
|
|
||||||
require("nvim-tree.api").tree.reload()
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -5,20 +5,6 @@ return {
|
|||||||
config = true,
|
config = true,
|
||||||
cmd = "GrugFar",
|
cmd = "GrugFar",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"Bekaboo/dropbar.nvim",
|
|
||||||
enabled = false,
|
|
||||||
dependencies = {
|
|
||||||
"nvim-telescope/telescope-fzf-native.nvim",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"OXY2DEV/markview.nvim",
|
|
||||||
enabled = false,
|
|
||||||
dependencies = {
|
|
||||||
"nvim-tree/nvim-web-devicons",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"OXY2DEV/helpview.nvim",
|
"OXY2DEV/helpview.nvim",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
@@ -43,12 +29,6 @@ return {
|
|||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = true,
|
config = true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"wakatime/vim-wakatime",
|
|
||||||
name = "Wakatime",
|
|
||||||
lazy = false,
|
|
||||||
enabled = false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"folke/todo-comments.nvim",
|
"folke/todo-comments.nvim",
|
||||||
ependencies = { "nvim-lua/plenary.nvim" },
|
ependencies = { "nvim-lua/plenary.nvim" },
|
||||||
|
|||||||
Reference in New Issue
Block a user