Wed, 28 Aug 2024 04:44:05 -0500
add assign types gopls hint too
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 = { |
1175
7907b9c30399
Add which-key.nvim and descriptions
Meredith Howard <mhoward@roomag.org>
parents:
1147
diff
changeset
|
42 | { "<leader>ig", "<cmd>IBLToggle<cr>", desc = "Toggle Indent Guides" }, |
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 | }, | |
1175
7907b9c30399
Add which-key.nvim and descriptions
Meredith Howard <mhoward@roomag.org>
parents:
1147
diff
changeset
|
74 | |
1116 | 75 | { |
76 | "nvim-neo-tree/neo-tree.nvim", | |
1124 | 77 | branch = "v3.x", |
1116 | 78 | cmd = "Neotree", |
79 | dependencies = { | |
80 | "nvim-lua/plenary.nvim", | |
81 | "MunifTanjim/nui.nvim", | |
82 | { | |
83 | "s1n7ax/nvim-window-picker", | |
84 | config = function(_, _) | |
85 | local theme = require("kanagawa.colors").setup().theme | |
86 | require("window-picker").setup({ | |
87 | use_winbar = "always", | |
88 | fg_color = theme.ui.fg_reverse, | |
89 | current_win_hl_color = theme.syn.constant, | |
90 | other_win_hl_color = theme.syn.fun, | |
91 | }) | |
92 | end, | |
93 | }, | |
94 | }, | |
95 | opts = { | |
96 | enable_git_status = false, | |
97 | window = { mappings = { ["<F2>"] = "close_window" } }, | |
98 | filesystem = { hijack_netrw_behavior = "disabled" }, | |
99 | default_component_configs = { | |
100 | icon = { | |
101 | folder_closed = "▷", | |
102 | folder_open = "▽", | |
103 | folder_empty = "¤", | |
104 | default = "•", | |
105 | }, | |
106 | }, | |
107 | }, | |
108 | }, | |
1175
7907b9c30399
Add which-key.nvim and descriptions
Meredith Howard <mhoward@roomag.org>
parents:
1147
diff
changeset
|
109 | |
7907b9c30399
Add which-key.nvim and descriptions
Meredith Howard <mhoward@roomag.org>
parents:
1147
diff
changeset
|
110 | { |
7907b9c30399
Add which-key.nvim and descriptions
Meredith Howard <mhoward@roomag.org>
parents:
1147
diff
changeset
|
111 | "folke/which-key.nvim", |
7907b9c30399
Add which-key.nvim and descriptions
Meredith Howard <mhoward@roomag.org>
parents:
1147
diff
changeset
|
112 | opts = { |
7907b9c30399
Add which-key.nvim and descriptions
Meredith Howard <mhoward@roomag.org>
parents:
1147
diff
changeset
|
113 | preset = "helix", |
7907b9c30399
Add which-key.nvim and descriptions
Meredith Howard <mhoward@roomag.org>
parents:
1147
diff
changeset
|
114 | delay = 500, |
7907b9c30399
Add which-key.nvim and descriptions
Meredith Howard <mhoward@roomag.org>
parents:
1147
diff
changeset
|
115 | filter = function(m) return m.desc ~= "" end, |
7907b9c30399
Add which-key.nvim and descriptions
Meredith Howard <mhoward@roomag.org>
parents:
1147
diff
changeset
|
116 | icons = { rules = false }, |
1176
1cb4636d6d36
Fix for no-nerdfonts experience
Meredith Howard <mhoward@roomag.org>
parents:
1175
diff
changeset
|
117 | replace = { key = {} }, |
1175
7907b9c30399
Add which-key.nvim and descriptions
Meredith Howard <mhoward@roomag.org>
parents:
1147
diff
changeset
|
118 | }, |
7907b9c30399
Add which-key.nvim and descriptions
Meredith Howard <mhoward@roomag.org>
parents:
1147
diff
changeset
|
119 | }, |
1014 | 120 | } |