chore(nvim): remove unused configuration
This commit is contained in:
parent
421d1658a8
commit
5c9da925d5
|
@ -1,6 +0,0 @@
|
||||||
local status_ok, fidget = pcall(require, "fidget")
|
|
||||||
if not status_ok then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
fidget.setup {}
|
|
|
@ -1,4 +0,0 @@
|
||||||
vim.g.floaterm_autoinsert = 1
|
|
||||||
vim.g.floaterm_height = 0.8
|
|
||||||
vim.g.floaterm_title = 0
|
|
||||||
vim.g.floaterm_width = 0.8
|
|
|
@ -1,30 +0,0 @@
|
||||||
local status_ok, neogit = pcall(require, "neogit")
|
|
||||||
if not status_ok then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
neogit.setup {
|
|
||||||
disable_commit_confirmation = true,
|
|
||||||
}
|
|
||||||
|
|
||||||
local nmap = require("opdavies.keymap").nmap
|
|
||||||
|
|
||||||
nmap {
|
|
||||||
"<leader>gc",
|
|
||||||
function()
|
|
||||||
neogit.open { "commit" }
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
nmap {
|
|
||||||
"<leader>gl",
|
|
||||||
function()
|
|
||||||
neogit.open { "log" }
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
nmap {
|
|
||||||
"<leader>gp",
|
|
||||||
function()
|
|
||||||
neogit.open { "push" }
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
nmap { "<leader>gs", neogit.open }
|
|
|
@ -1 +0,0 @@
|
||||||
vim.g.mkdp_refresh_slow = 1
|
|
|
@ -1,6 +0,0 @@
|
||||||
local has_lastplace, lastplace = pcall(require, "nvim-lastplace")
|
|
||||||
if not has_lastplace then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
lastplace.setup {}
|
|
|
@ -1,3 +0,0 @@
|
||||||
-- vim.g.seiya_auto_enable = 1
|
|
||||||
|
|
||||||
-- vim.g.seiya_target_groups = { "guibg" }
|
|
|
@ -1,81 +0,0 @@
|
||||||
local status_ok, el = pcall(require, "el")
|
|
||||||
if not status_ok then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local builtin = require "el.builtin"
|
|
||||||
local diagnostic = require "el.diagnostic"
|
|
||||||
local extensions = require "el.extensions"
|
|
||||||
local lsp_statusline = require "el.plugins.lsp_status"
|
|
||||||
local sections = require "el.sections"
|
|
||||||
local subscribe = require "el.subscribe"
|
|
||||||
|
|
||||||
local file_icon = subscribe.buf_autocmd("el_file_icon", "BufRead", function(_, buffer)
|
|
||||||
return extensions.file_icon(_, buffer)
|
|
||||||
end)
|
|
||||||
|
|
||||||
local git_branch = subscribe.buf_autocmd("el_git_branch", "BufEnter", function(window, buffer)
|
|
||||||
local branch = extensions.git_branch(window, buffer)
|
|
||||||
if branch then
|
|
||||||
return " " .. extensions.git_icon() .. " " .. branch
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
||||||
local git_changes = subscribe.buf_autocmd("el_git_changes", "BufWritePost", function(window, buffer)
|
|
||||||
return extensions.git_changes(window, buffer)
|
|
||||||
end)
|
|
||||||
|
|
||||||
local show_current_func = function(window, buffer)
|
|
||||||
if buffer.filetype == "lua" then
|
|
||||||
return ""
|
|
||||||
end
|
|
||||||
|
|
||||||
return lsp_statusline.current_function(window, buffer)
|
|
||||||
end
|
|
||||||
|
|
||||||
local diagnostic_display = diagnostic.make_buffer()
|
|
||||||
|
|
||||||
el.setup {
|
|
||||||
generator = function(window, buffer)
|
|
||||||
local mode = extensions.gen_mode { format_string = " %s " }
|
|
||||||
|
|
||||||
local items = {
|
|
||||||
{ mode },
|
|
||||||
{ git_branch },
|
|
||||||
{ sections.split },
|
|
||||||
{ file_icon },
|
|
||||||
{ " " },
|
|
||||||
{ sections.maximum_width(builtin.make_responsive_file(140, 90), 0.40) },
|
|
||||||
{ sections.collapse_builtin { { " " }, { builtin.modified_flag } } },
|
|
||||||
{ sections.split },
|
|
||||||
{ diagnostic_display },
|
|
||||||
{ show_current_func },
|
|
||||||
{ git_changes },
|
|
||||||
{ "[" },
|
|
||||||
{ builtin.line_with_width(3) },
|
|
||||||
{ ":" },
|
|
||||||
{ builtin.column_with_width(2) },
|
|
||||||
{ "]" },
|
|
||||||
{
|
|
||||||
sections.collapse_builtin {
|
|
||||||
"[",
|
|
||||||
builtin.help_list,
|
|
||||||
builtin.readonly_list,
|
|
||||||
"]",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ builtin.filetype },
|
|
||||||
}
|
|
||||||
|
|
||||||
local add_item = function(result, item)
|
|
||||||
table.insert(result, item)
|
|
||||||
end
|
|
||||||
|
|
||||||
local result = {}
|
|
||||||
for _, item in ipairs(items) do
|
|
||||||
add_item(result, item)
|
|
||||||
end
|
|
||||||
|
|
||||||
return result
|
|
||||||
end,
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
function! s:small_terminal() abort
|
|
||||||
new
|
|
||||||
wincmd J
|
|
||||||
call nvim_win_set_height(0, 12)
|
|
||||||
set winfixheight
|
|
||||||
term
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
nnoremap <leader>st :call <SID>small_terminal()<CR>
|
|
|
@ -1,8 +0,0 @@
|
||||||
local status_ok, twilight = pcall(require, "twilight")
|
|
||||||
if not status_ok then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
twilight.setup {
|
|
||||||
context = 2,
|
|
||||||
}
|
|
|
@ -1,25 +0,0 @@
|
||||||
local status_ok, zen_mode = pcall(require, "zen-mode")
|
|
||||||
if not status_ok then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
zen_mode.setup {
|
|
||||||
window = {
|
|
||||||
backdrop = 0.95,
|
|
||||||
height = 1,
|
|
||||||
width = 80,
|
|
||||||
options = {
|
|
||||||
relativenumber = false,
|
|
||||||
number = false,
|
|
||||||
signcolumn = "no",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
plugins = {
|
|
||||||
options = {
|
|
||||||
enabled = true,
|
|
||||||
ruler = false,
|
|
||||||
},
|
|
||||||
gitsigns = { enabled = true },
|
|
||||||
tmux = { enabled = true },
|
|
||||||
},
|
|
||||||
}
|
|
Reference in a new issue