Move from lualine to mini.statusline and more
This commit is contained in:
parent
d485dfd295
commit
15d06fd26a
21 changed files with 181 additions and 219 deletions
home/features/neovim/config/lua/my/plugins
|
@ -110,7 +110,8 @@ return {
|
|||
keys = { "<C-h>", "<C-j>", "<C-k>", "<C-l>" },
|
||||
cond = env.vscode.not_active()
|
||||
and env.neovide.not_active()
|
||||
and env.firenvim.not_active(),
|
||||
and env.firenvim.not_active()
|
||||
and false,
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -122,40 +123,6 @@ return {
|
|||
config = true,
|
||||
},
|
||||
|
||||
{
|
||||
-- case switching + the subvert command
|
||||
"tpope/vim-abolish",
|
||||
event = "VeryLazy",
|
||||
enabled = false,
|
||||
},
|
||||
|
||||
{
|
||||
-- automatically set options based on current file
|
||||
"tpope/vim-sleuth",
|
||||
event = "BufRead",
|
||||
cond = env.vscode.not_active(),
|
||||
},
|
||||
|
||||
{
|
||||
-- generate permalinks for code
|
||||
"ruifm/gitlinker.nvim",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
opts = { mappings = "<leader>yg" },
|
||||
init = function()
|
||||
local status, wk = pcall(require, "which-key")
|
||||
|
||||
if status then
|
||||
wk.register({
|
||||
["<leader>yg"] = {
|
||||
desc = "[Y]ank [g]it remote url",
|
||||
},
|
||||
})
|
||||
end
|
||||
end,
|
||||
cond = env.firenvim.not_active(),
|
||||
keys = "<leader>yg",
|
||||
},
|
||||
|
||||
-- Live command preview for stuff like :norm
|
||||
{
|
||||
"smjonas/live-command.nvim",
|
||||
|
@ -167,6 +134,6 @@ return {
|
|||
})
|
||||
end,
|
||||
event = "VeryLazy",
|
||||
-- cond = false,
|
||||
cond = false,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
local M = {
|
||||
"echasnovski/mini.operators",
|
||||
event = "VeryLazy",
|
||||
opts = {},
|
||||
event = "BufReadPost",
|
||||
config = true,
|
||||
}
|
||||
|
||||
return M
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
local M = {
|
||||
"echasnovski/mini.surround",
|
||||
event = "VeryLazy",
|
||||
event = "BufReadPost",
|
||||
}
|
||||
|
||||
function M.config()
|
||||
|
|
|
@ -1,54 +0,0 @@
|
|||
local M = {
|
||||
"nvim-neorg/neorg",
|
||||
build = ":Neorg sync-parsers",
|
||||
dependencies = { "nvim-lua/plenary.nvim", "nvim-neorg/neorg-telescope" },
|
||||
ft = "norg",
|
||||
config = function()
|
||||
require("neorg").setup({
|
||||
load = {
|
||||
["core.defaults"] = {}, -- Loads default behaviour
|
||||
["core.concealer"] = {}, -- Adds pretty icons to your documents
|
||||
["core.integrations.telescope"] = {},
|
||||
-- {{{ Completions
|
||||
["core.completion"] = {
|
||||
config = {
|
||||
engine = "nvim-cmp",
|
||||
},
|
||||
},
|
||||
-- }}}
|
||||
-- {{{ Dirman
|
||||
["core.dirman"] = { -- Manages Neorg workspaces
|
||||
config = {
|
||||
workspaces = {
|
||||
notes = "~/Neorg",
|
||||
["uni-notes"] = "~/Projects/uni-notes",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- }}}
|
||||
-- {{{ Keybinds
|
||||
["core.keybinds"] = {
|
||||
config = {
|
||||
hook = function(keybinds)
|
||||
-- Binds the `gtd` key in `norg` mode to execute `:echo 'Hello'`
|
||||
keybinds.map("norg", "n", "gtd", "<cmd>echo 'Hello!'<CR>")
|
||||
end,
|
||||
},
|
||||
},
|
||||
-- }}}
|
||||
},
|
||||
})
|
||||
|
||||
-- {{{ Lazy cmp loading
|
||||
vim.api.nvim_create_autocmd("InsertEnter", {
|
||||
group = vim.api.nvim_create_augroup("CmpSourceNeorg", {}),
|
||||
pattern = "*.norg",
|
||||
callback = function()
|
||||
require("cmp").setup.buffer({ sources = { { name = "neorg" } } })
|
||||
end,
|
||||
})
|
||||
-- }}}
|
||||
end,
|
||||
}
|
||||
|
||||
return M
|
|
@ -1,32 +0,0 @@
|
|||
local env = require("my.helpers.env")
|
||||
local vault = "/home/adrielus/Projects/stellar-sanctum"
|
||||
|
||||
return {
|
||||
"epwalsh/obsidian.nvim",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
opts = {
|
||||
dir = vault,
|
||||
notes_subdir = "chaos",
|
||||
daily_notes = {
|
||||
folder = "daily",
|
||||
date_format = "%Y-%m-%d",
|
||||
},
|
||||
completion = {
|
||||
nvim_cmp = true,
|
||||
min_chars = 2,
|
||||
new_notes_location = "current_dir",
|
||||
prepend_note_id = true,
|
||||
},
|
||||
mappings = {},
|
||||
disable_frontmatter = true,
|
||||
},
|
||||
keys = {
|
||||
{ "<C-O>", "<cmd>ObsidianQuickSwitch<cr>" },
|
||||
},
|
||||
cond = env.vscode.not_active()
|
||||
and env.firenvim.not_active()
|
||||
and vim.loop.cwd() == vault,
|
||||
}
|
|
@ -14,7 +14,11 @@ function M.config()
|
|||
|
||||
catppuccin.setup({
|
||||
transparent_background = T.transparent.terminal,
|
||||
integrations = { nvimtree = true, telescope = true },
|
||||
integrations = {
|
||||
nvimtree = true,
|
||||
telescope = true,
|
||||
mini = { enabled = true },
|
||||
},
|
||||
})
|
||||
|
||||
vim.cmd([[highlight NotifyINFOIcon guifg=#d6b20f]])
|
||||
|
@ -23,7 +27,13 @@ function M.config()
|
|||
vim.cmd("colorscheme catppuccin")
|
||||
|
||||
if T.transparent.terminal then
|
||||
vim.cmd([[highlight FloatBorder blend=0]])
|
||||
vim.cmd([[highlight FloatBorder blend=0 guibg=NONE]])
|
||||
-- vim.cmd([[highlight MiniStatuslineInactive blend=0 guibg=NONE]])
|
||||
vim.cmd([[highlight MiniStatuslineFilename blend=0 guibg=NONE]])
|
||||
-- vim.cmd([[highlight MiniStatuslineFileinfo blend=0 guibg=NONE]])
|
||||
-- vim.cmd([[highlight MiniStatuslineDevInfo blend=0 guibg=NONE]])
|
||||
vim.cmd([[highlight Statusline blend=0 guibg=NONE]])
|
||||
vim.cmd([[highlight StatuslineNC blend=0 guibg=NONE]])
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue