Mon, 20 May 2024 12:53:43 -0500
Bump nvim-treesitter to more recent commit
1022 | 1 | local g = vim.g |
2 | ||
3 | -- >> Viewdoc | |
4 | g.no_viewdoc_abbrev = 1 | |
5 | g.viewdoc_open = "topleft new" | |
6 | g.viewdoc_winwidth_max = 100 | |
7 | ||
1116 | 8 | g.neo_tree_remove_legacy_commands = 1 |
9 | ||
1014 | 10 | return { |
1068 | 11 | { "powerman/vim-plugin-viewdoc", event = "VeryLazy" }, |
1022 | 12 | |
1014 | 13 | { |
14 | "nvim-lualine/lualine.nvim", | |
15 | opts = { | |
16 | options = { | |
17 | theme = "auto", | |
18 | icons_enabled = false, | |
19 | section_separators = "", | |
20 | component_separators = "", | |
21 | }, | |
1045 | 22 | sections = { |
1064 | 23 | lualine_a = { "mode" }, |
24 | lualine_b = { "filename" }, | |
25 | lualine_c = { "diagnostics" }, | |
26 | lualine_x = { "encoding", "fileformat" }, | |
27 | lualine_y = { "filetype" }, | |
28 | lualine_z = { "progress", "location" }, | |
1045 | 29 | }, |
1014 | 30 | tabline = { |
1064 | 31 | lualine_a = { { "buffers", mode = 4, show_filename_only = false } }, |
32 | lualine_z = { "branch" }, | |
1015 | 33 | }, |
1064 | 34 | extensions = { "quickfix" }, |
35 | }, | |
1014 | 36 | }, |
37 | ||
38 | { | |
39 | "lukas-reineke/indent-blankline.nvim", | |
1130
91a00bcc28f9
Update for indent-blankline 3.x
Meredith Howard <mhoward@roomag.org>
parents:
1124
diff
changeset
|
40 | main = "ibl", |
1014 | 41 | keys = { |
1130
91a00bcc28f9
Update for indent-blankline 3.x
Meredith Howard <mhoward@roomag.org>
parents:
1124
diff
changeset
|
42 | { "<leader>ig", "<cmd>IBLToggle<cr>" }, |
1014 | 43 | }, |
44 | opts = { | |
45 | enabled = false, | |
1130
91a00bcc28f9
Update for indent-blankline 3.x
Meredith Howard <mhoward@roomag.org>
parents:
1124
diff
changeset
|
46 | indent = { char = "│" }, |
91a00bcc28f9
Update for indent-blankline 3.x
Meredith Howard <mhoward@roomag.org>
parents:
1124
diff
changeset
|
47 | whitespace = { remove_blankline_trail = true }, |
91a00bcc28f9
Update for indent-blankline 3.x
Meredith Howard <mhoward@roomag.org>
parents:
1124
diff
changeset
|
48 | scope = { enabled = false }, |
1014 | 49 | }, |
50 | }, | |
51 | ||
52 | { | |
53 | "echasnovski/mini.indentscope", | |
1147
23f9b157fe8a
Load indentscope even on new nameless bufs
Meredith Howard <mhoward@roomag.org>
parents:
1131
diff
changeset
|
54 | event = "VeryLazy", |
1014 | 55 | opts = { |
56 | symbol = "│", | |
57 | options = { try_as_border = true }, | |
58 | draw = { | |
1064 | 59 | animation = function() |
60 | return 2 | |
61 | end, | |
1014 | 62 | }, |
63 | }, | |
64 | config = function(_, opts) | |
65 | vim.api.nvim_create_autocmd("FileType", { | |
66 | pattern = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy", "mason" }, | |
67 | callback = function() | |
68 | vim.b.miniindentscope_disable = true | |
69 | end, | |
70 | }) | |
71 | require("mini.indentscope").setup(opts) | |
72 | end, | |
73 | }, | |
1116 | 74 | { |
75 | "nvim-neo-tree/neo-tree.nvim", | |
1124 | 76 | branch = "v3.x", |
1116 | 77 | cmd = "Neotree", |
78 | dependencies = { | |
79 | "nvim-lua/plenary.nvim", | |
80 | "MunifTanjim/nui.nvim", | |
81 | { | |
82 | "s1n7ax/nvim-window-picker", | |
83 | config = function(_, _) | |
84 | local theme = require("kanagawa.colors").setup().theme | |
85 | require("window-picker").setup({ | |
86 | use_winbar = "always", | |
87 | fg_color = theme.ui.fg_reverse, | |
88 | current_win_hl_color = theme.syn.constant, | |
89 | other_win_hl_color = theme.syn.fun, | |
90 | }) | |
91 | end, | |
92 | }, | |
93 | }, | |
94 | opts = { | |
95 | enable_git_status = false, | |
96 | window = { mappings = { ["<F2>"] = "close_window" } }, | |
97 | filesystem = { hijack_netrw_behavior = "disabled" }, | |
98 | default_component_configs = { | |
99 | icon = { | |
100 | folder_closed = "▷", | |
101 | folder_open = "▽", | |
102 | folder_empty = "¤", | |
103 | default = "•", | |
104 | }, | |
105 | }, | |
106 | }, | |
107 | }, | |
1014 | 108 | } |