Mon, 27 Mar 2023 15:27:01 -0500
fix surprise reindent
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 | ||
1014 | 8 | return { |
1068 | 9 | { "powerman/vim-plugin-viewdoc", event = "VeryLazy" }, |
1022 | 10 | |
1014 | 11 | { |
12 | "nvim-lualine/lualine.nvim", | |
13 | opts = { | |
14 | options = { | |
15 | theme = "auto", | |
16 | icons_enabled = false, | |
17 | section_separators = "", | |
18 | component_separators = "", | |
19 | }, | |
1045 | 20 | sections = { |
1064 | 21 | lualine_a = { "mode" }, |
22 | lualine_b = { "filename" }, | |
23 | lualine_c = { "diagnostics" }, | |
24 | lualine_x = { "encoding", "fileformat" }, | |
25 | lualine_y = { "filetype" }, | |
26 | lualine_z = { "progress", "location" }, | |
1045 | 27 | }, |
1014 | 28 | tabline = { |
1064 | 29 | lualine_a = { { "buffers", mode = 4, show_filename_only = false } }, |
30 | lualine_z = { "branch" }, | |
1015 | 31 | }, |
1064 | 32 | extensions = { "quickfix" }, |
33 | }, | |
1014 | 34 | }, |
35 | ||
36 | { | |
37 | "lukas-reineke/indent-blankline.nvim", | |
1081
59e05e03851d
unlazy indent-blankline.nvim, weird errors
Meredith Howard <mhoward@roomag.org>
parents:
1068
diff
changeset
|
38 | lazy = false, |
1014 | 39 | keys = { |
1064 | 40 | { "<leader>ig", "<cmd>IndentBlanklineToggle<cr>" }, |
1014 | 41 | }, |
42 | opts = { | |
43 | enabled = false, | |
44 | char = "│", | |
1022 | 45 | -- filetype_exclude = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy" }, |
1014 | 46 | show_trailing_blankline_indent = false, |
47 | show_current_context = false, | |
48 | }, | |
49 | }, | |
50 | ||
51 | { | |
52 | "echasnovski/mini.indentscope", | |
53 | version = false, -- wait till new 0.7.0 release to put it back on semver | |
54 | event = "BufReadPre", | |
55 | opts = { | |
56 | symbol = "│", | |
57 | -- symbol = "▏", | |
58 | options = { try_as_border = true }, | |
59 | draw = { | |
1064 | 60 | animation = function() |
61 | return 2 | |
62 | end, | |
1014 | 63 | }, |
64 | }, | |
65 | config = function(_, opts) | |
66 | vim.api.nvim_create_autocmd("FileType", { | |
67 | pattern = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy", "mason" }, | |
68 | callback = function() | |
69 | vim.b.miniindentscope_disable = true | |
70 | end, | |
71 | }) | |
72 | require("mini.indentscope").setup(opts) | |
73 | end, | |
74 | }, | |
75 | } |