Add more mini plugins, bring in statusline plugin
This commit is contained in:
parent
47463aec8c
commit
c3285a150d
@ -8,6 +8,7 @@
|
||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
|
||||
"lazygit.nvim": { "branch": "main", "commit": "b9eae3badab982e71abab96d3ee1d258f0c07961" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "bef29b653ba71d442816bf56286c2a686210be04" },
|
||||
"mason-tool-installer.nvim": { "branch": "main", "commit": "93a9ff9b34c91c0cb0f7de8d5f7e4abce51d8903" },
|
||||
"mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
|
||||
|
||||
11
nvim/lua/config/lazy/21-statusline.lua
Normal file
11
nvim/lua/config/lazy/21-statusline.lua
Normal file
@ -0,0 +1,11 @@
|
||||
return {
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
event = "VimEnter",
|
||||
opts = {
|
||||
extensions = { "neo-tree", "lazy", "toggleterm" },
|
||||
},
|
||||
-- config = function()
|
||||
-- require("lualine").setup({ options = { theme = "catppuccin" } })
|
||||
-- end,
|
||||
}
|
||||
@ -9,11 +9,33 @@ return {
|
||||
opts = {
|
||||
close_if_last_window = true,
|
||||
filesystem = {
|
||||
follow_current_file = { enabled = true },
|
||||
follow_current_file = {
|
||||
enabled = true,
|
||||
},
|
||||
filtered_items = {
|
||||
visible = true,
|
||||
hide_dotfiles = false,
|
||||
hide_gitignore = false,
|
||||
never_show = {
|
||||
"node_modules",
|
||||
".DS_Store",
|
||||
"thumbs.db",
|
||||
},
|
||||
},
|
||||
},
|
||||
modified = {
|
||||
symbol = "[] ",
|
||||
highlight = "NeoTreeModified",
|
||||
default_component_configs = {
|
||||
git_status = {
|
||||
symbols = {
|
||||
added = "",
|
||||
modified = "",
|
||||
deleted = "",
|
||||
renamed = "",
|
||||
untracked = "",
|
||||
ignored = "",
|
||||
staged = "",
|
||||
conflict = "",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
|
||||
@ -1,25 +1,26 @@
|
||||
return {
|
||||
"echasnovski/mini.nvim",
|
||||
config = function()
|
||||
-- Examples:
|
||||
-- Text editing
|
||||
|
||||
-- Better around/inner motion modifiers.
|
||||
-- - va) - [V]isually select [A]round [)]paren
|
||||
-- - yinq - [Y]ank [I]nside [N]ext [Q]uote
|
||||
-- - ci' - [C]hange [I]nside [']quote
|
||||
require("mini.ai").setup({ n_lines = 500 })
|
||||
|
||||
-- Toggle comments.
|
||||
-- gc - comment
|
||||
-- gcc - comment current line
|
||||
require("mini.comment").setup()
|
||||
|
||||
-- Autopairing of brackets and such
|
||||
require("mini.pairs").setup()
|
||||
|
||||
-- Add/delete/replace surroundings (brackets, quotes, etc.)
|
||||
--
|
||||
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
|
||||
-- - sd' - [S]urround [D]elete [']quotes
|
||||
-- - sr)' - [S]urround [R]eplace [)] [']
|
||||
require("mini.surround").setup()
|
||||
|
||||
local statusline = require("mini.statusline")
|
||||
statusline.setup({ use_icons = vim.g.have_nerd_font })
|
||||
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
statusline.section_location = function()
|
||||
return "%2l:%-2v"
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user