mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
chore: update ui plugins (#4555)
* chore: update nvim-tree * chore: update lualine * chore: update bufferline * feat(nvim-tree): set highlight_git to name * fix(lsp): pass bufnr to codelens.refresh
This commit is contained in:
parent
04f33dac60
commit
4b60b5db8c
4 changed files with 82 additions and 19 deletions
|
@ -56,6 +56,14 @@ M.config = function()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options = {
|
options = {
|
||||||
|
themable = true, -- whether or not bufferline highlights can be overridden externally
|
||||||
|
-- style_preset = preset,
|
||||||
|
get_element_icon = nil,
|
||||||
|
show_duplicate_prefix = true,
|
||||||
|
duplicates_across_groups = true,
|
||||||
|
auto_toggle_bufferline = true,
|
||||||
|
move_wraps_at_ends = false,
|
||||||
|
groups = { items = {}, options = { toggle_hidden_on_enter = true } },
|
||||||
mode = "buffers", -- set to "tabs" to only show tabpages instead
|
mode = "buffers", -- set to "tabs" to only show tabpages instead
|
||||||
numbers = "none", -- can be "none" | "ordinal" | "buffer_id" | "both" | function
|
numbers = "none", -- can be "none" | "ordinal" | "buffer_id" | "both" | function
|
||||||
close_command = function(bufnr) -- can be a string | function, see "Mouse actions"
|
close_command = function(bufnr) -- can be a string | function, see "Mouse actions"
|
||||||
|
@ -140,6 +148,7 @@ M.config = function()
|
||||||
reveal = { "close" },
|
reveal = { "close" },
|
||||||
},
|
},
|
||||||
sort_by = "id",
|
sort_by = "id",
|
||||||
|
debug = { logging = false },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,12 +6,17 @@ function M.config()
|
||||||
active = true,
|
active = true,
|
||||||
on_config_done = nil,
|
on_config_done = nil,
|
||||||
setup = {
|
setup = {
|
||||||
|
experimental = {},
|
||||||
auto_reload_on_write = false,
|
auto_reload_on_write = false,
|
||||||
disable_netrw = false,
|
disable_netrw = false,
|
||||||
hijack_cursor = false,
|
hijack_cursor = false,
|
||||||
hijack_netrw = true,
|
hijack_netrw = true,
|
||||||
hijack_unnamed_buffer_when_opening = false,
|
hijack_unnamed_buffer_when_opening = false,
|
||||||
sort_by = "name",
|
sort = {
|
||||||
|
sorter = "name",
|
||||||
|
folders_first = true,
|
||||||
|
files_first = false,
|
||||||
|
},
|
||||||
root_dirs = {},
|
root_dirs = {},
|
||||||
prefer_startup_root = false,
|
prefer_startup_root = false,
|
||||||
sync_root_with_cwd = true,
|
sync_root_with_cwd = true,
|
||||||
|
@ -23,6 +28,8 @@ function M.config()
|
||||||
adaptive_size = false,
|
adaptive_size = false,
|
||||||
centralize_selection = true,
|
centralize_selection = true,
|
||||||
width = 30,
|
width = 30,
|
||||||
|
cursorline = true,
|
||||||
|
debounce_delay = 15,
|
||||||
side = "left",
|
side = "left",
|
||||||
preserve_window_proportions = false,
|
preserve_window_proportions = false,
|
||||||
number = false,
|
number = false,
|
||||||
|
@ -44,11 +51,17 @@ function M.config()
|
||||||
renderer = {
|
renderer = {
|
||||||
add_trailing = false,
|
add_trailing = false,
|
||||||
group_empty = false,
|
group_empty = false,
|
||||||
highlight_git = true,
|
highlight_git = "name",
|
||||||
full_name = false,
|
|
||||||
highlight_opened_files = "none",
|
highlight_opened_files = "none",
|
||||||
root_folder_label = ":t",
|
root_folder_label = ":t",
|
||||||
|
full_name = false,
|
||||||
indent_width = 2,
|
indent_width = 2,
|
||||||
|
special_files = { "Cargo.toml", "Makefile", "README.md", "readme.md" },
|
||||||
|
symlink_destination = true,
|
||||||
|
highlight_diagnostics = "none",
|
||||||
|
highlight_modified = "none",
|
||||||
|
highlight_bookmarks = "none",
|
||||||
|
highlight_clipboard = "name",
|
||||||
indent_markers = {
|
indent_markers = {
|
||||||
enable = false,
|
enable = false,
|
||||||
inline_arrows = true,
|
inline_arrows = true,
|
||||||
|
@ -56,24 +69,43 @@ function M.config()
|
||||||
corner = "└",
|
corner = "└",
|
||||||
edge = "│",
|
edge = "│",
|
||||||
item = "│",
|
item = "│",
|
||||||
|
bottom = "─",
|
||||||
none = " ",
|
none = " ",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
icons = {
|
icons = {
|
||||||
webdev_colors = lvim.use_icons,
|
webdev_colors = lvim.use_icons,
|
||||||
|
|
||||||
|
web_devicons = {
|
||||||
|
file = {
|
||||||
|
enable = lvim.use_icons,
|
||||||
|
color = lvim.use_icons,
|
||||||
|
},
|
||||||
|
folder = {
|
||||||
|
enable = false,
|
||||||
|
color = lvim.use_icons,
|
||||||
|
},
|
||||||
|
},
|
||||||
git_placement = "before",
|
git_placement = "before",
|
||||||
padding = " ",
|
padding = " ",
|
||||||
symlink_arrow = " ➛ ",
|
symlink_arrow = " ➛ ",
|
||||||
|
modified_placement = "after",
|
||||||
|
diagnostics_placement = "signcolumn",
|
||||||
|
bookmarks_placement = "signcolumn",
|
||||||
show = {
|
show = {
|
||||||
file = lvim.use_icons,
|
file = lvim.use_icons,
|
||||||
folder = lvim.use_icons,
|
folder = lvim.use_icons,
|
||||||
folder_arrow = lvim.use_icons,
|
folder_arrow = lvim.use_icons,
|
||||||
git = lvim.use_icons,
|
git = lvim.use_icons,
|
||||||
|
modified = lvim.use_icons,
|
||||||
|
diagnostics = lvim.use_icons,
|
||||||
|
bookmarks = lvim.use_icons,
|
||||||
},
|
},
|
||||||
glyphs = {
|
glyphs = {
|
||||||
default = lvim.icons.ui.Text,
|
default = lvim.icons.ui.Text,
|
||||||
symlink = lvim.icons.ui.FileSymlink,
|
symlink = lvim.icons.ui.FileSymlink,
|
||||||
bookmark = lvim.icons.ui.BookMark,
|
bookmark = lvim.icons.ui.BookMark,
|
||||||
|
modified = lvim.icons.ui.Circle,
|
||||||
folder = {
|
folder = {
|
||||||
arrow_closed = lvim.icons.ui.TriangleShortArrowRight,
|
arrow_closed = lvim.icons.ui.TriangleShortArrowRight,
|
||||||
arrow_open = lvim.icons.ui.TriangleShortArrowDown,
|
arrow_open = lvim.icons.ui.TriangleShortArrowDown,
|
||||||
|
@ -95,8 +127,6 @@ function M.config()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
special_files = { "Cargo.toml", "Makefile", "README.md", "readme.md" },
|
|
||||||
symlink_destination = true,
|
|
||||||
},
|
},
|
||||||
hijack_directories = {
|
hijack_directories = {
|
||||||
enable = false,
|
enable = false,
|
||||||
|
@ -104,9 +134,11 @@ function M.config()
|
||||||
},
|
},
|
||||||
update_focused_file = {
|
update_focused_file = {
|
||||||
enable = true,
|
enable = true,
|
||||||
debounce_delay = 15,
|
update_root = {
|
||||||
update_root = true,
|
enable = true,
|
||||||
ignore_list = {},
|
ignore_list = {},
|
||||||
|
},
|
||||||
|
exclude = false,
|
||||||
},
|
},
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
enable = lvim.use_icons,
|
enable = lvim.use_icons,
|
||||||
|
@ -125,8 +157,11 @@ function M.config()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
filters = {
|
filters = {
|
||||||
|
enable = true,
|
||||||
dotfiles = false,
|
dotfiles = false,
|
||||||
git_clean = false,
|
git_clean = false,
|
||||||
|
git_ignored = false,
|
||||||
|
no_bookmark = false,
|
||||||
no_buffer = false,
|
no_buffer = false,
|
||||||
custom = { "node_modules", "\\.cache" },
|
custom = { "node_modules", "\\.cache" },
|
||||||
exclude = {},
|
exclude = {},
|
||||||
|
@ -138,10 +173,11 @@ function M.config()
|
||||||
},
|
},
|
||||||
git = {
|
git = {
|
||||||
enable = true,
|
enable = true,
|
||||||
ignore = false,
|
|
||||||
show_on_dirs = true,
|
show_on_dirs = true,
|
||||||
show_on_open_dirs = true,
|
show_on_open_dirs = true,
|
||||||
timeout = 200,
|
disable_for_dirs = {},
|
||||||
|
timeout = 400,
|
||||||
|
cygwin_support = false,
|
||||||
},
|
},
|
||||||
actions = {
|
actions = {
|
||||||
use_system_clipboard = true,
|
use_system_clipboard = true,
|
||||||
|
@ -165,6 +201,7 @@ function M.config()
|
||||||
},
|
},
|
||||||
open_file = {
|
open_file = {
|
||||||
quit_on_open = false,
|
quit_on_open = false,
|
||||||
|
eject = true,
|
||||||
resize_window = false,
|
resize_window = false,
|
||||||
window_picker = {
|
window_picker = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
@ -181,8 +218,7 @@ function M.config()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
trash = {
|
trash = {
|
||||||
cmd = "trash",
|
cmd = "gio trash",
|
||||||
require_confirm = true,
|
|
||||||
},
|
},
|
||||||
live_filter = {
|
live_filter = {
|
||||||
prefix = "[FILTER]: ",
|
prefix = "[FILTER]: ",
|
||||||
|
@ -197,6 +233,22 @@ function M.config()
|
||||||
},
|
},
|
||||||
notify = {
|
notify = {
|
||||||
threshold = vim.log.levels.INFO,
|
threshold = vim.log.levels.INFO,
|
||||||
|
absolute_path = true,
|
||||||
|
},
|
||||||
|
ui = {
|
||||||
|
confirm = {
|
||||||
|
remove = true,
|
||||||
|
trash = true,
|
||||||
|
default_yes = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
modified = {
|
||||||
|
enable = false,
|
||||||
|
show_on_dirs = true,
|
||||||
|
show_on_open_dirs = true,
|
||||||
|
},
|
||||||
|
help = {
|
||||||
|
sort_by = "key",
|
||||||
},
|
},
|
||||||
log = {
|
log = {
|
||||||
enable = false,
|
enable = false,
|
||||||
|
|
|
@ -147,7 +147,9 @@ function M.setup_codelens_refresh(client, bufnr)
|
||||||
vim.api.nvim_create_autocmd(cl_events, {
|
vim.api.nvim_create_autocmd(cl_events, {
|
||||||
group = group,
|
group = group,
|
||||||
buffer = bufnr,
|
buffer = bufnr,
|
||||||
callback = vim.lsp.codelens.refresh,
|
callback = function()
|
||||||
|
vim.lsp.codelens.refresh { bufnr = bufnr }
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"commit": "33eb067"
|
"commit": "33eb067"
|
||||||
},
|
},
|
||||||
"bufferline.nvim": {
|
"bufferline.nvim": {
|
||||||
"commit": "1a33975"
|
"commit": "73540cb"
|
||||||
},
|
},
|
||||||
"cmp-buffer": {
|
"cmp-buffer": {
|
||||||
"commit": "3022dbc"
|
"commit": "3022dbc"
|
||||||
|
@ -42,10 +42,10 @@
|
||||||
"commit": "bef521a"
|
"commit": "bef521a"
|
||||||
},
|
},
|
||||||
"lir.nvim": {
|
"lir.nvim": {
|
||||||
"commit": "969e95b"
|
"commit": "7a9d45d"
|
||||||
},
|
},
|
||||||
"lualine.nvim": {
|
"lualine.nvim": {
|
||||||
"commit": "2248ef2"
|
"commit": "0a5a668"
|
||||||
},
|
},
|
||||||
"lunar.nvim": {
|
"lunar.nvim": {
|
||||||
"commit": "08bbc93"
|
"commit": "08bbc93"
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
"commit": "8649f69"
|
"commit": "8649f69"
|
||||||
},
|
},
|
||||||
"nvim-tree.lua": {
|
"nvim-tree.lua": {
|
||||||
"commit": "05f55c1"
|
"commit": "64f61e4"
|
||||||
},
|
},
|
||||||
"nvim-treesitter": {
|
"nvim-treesitter": {
|
||||||
"commit": "1e64838"
|
"commit": "1e64838"
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
"commit": "b8ff464"
|
"commit": "b8ff464"
|
||||||
},
|
},
|
||||||
"nvim-web-devicons": {
|
"nvim-web-devicons": {
|
||||||
"commit": "5efb8bd"
|
"commit": "475fbcf"
|
||||||
},
|
},
|
||||||
"onedarker.nvim": {
|
"onedarker.nvim": {
|
||||||
"commit": "b00dd21"
|
"commit": "b00dd21"
|
||||||
|
@ -120,7 +120,7 @@
|
||||||
"commit": "6b334b9"
|
"commit": "6b334b9"
|
||||||
},
|
},
|
||||||
"tokyonight.nvim": {
|
"tokyonight.nvim": {
|
||||||
"commit": "f247ee7"
|
"commit": "67afeaf"
|
||||||
},
|
},
|
||||||
"vim-illuminate": {
|
"vim-illuminate": {
|
||||||
"commit": "3bd2ab6"
|
"commit": "3bd2ab6"
|
||||||
|
|
Loading…
Reference in a new issue