Sun, 05 Mar 2023 18:40:03 -0600
configure stylua
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 { |
1022 | 9 | "powerman/vim-plugin-viewdoc", |
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 = { |
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'} | |
27 | }, | |
1014 | 28 | tabline = { |
1045 | 29 | lualine_a = { {'buffers', mode = 4, show_filename_only = false} }, |
30 | lualine_z = { 'branch' }, | |
1015 | 31 | }, |
32 | extensions = {"quickfix"}, | |
1014 | 33 | } |
34 | }, | |
35 | ||
36 | { | |
37 | "lukas-reineke/indent-blankline.nvim", | |
38 | event = "BufReadPost", | |
39 | keys = { | |
40 | {"<leader>ig", "<cmd>IndentBlanklineToggle<cr>"}, | |
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 = { | |
60 | animation = function() return 2 end, | |
61 | }, | |
62 | }, | |
63 | config = function(_, opts) | |
64 | vim.api.nvim_create_autocmd("FileType", { | |
65 | pattern = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy", "mason" }, | |
66 | callback = function() | |
67 | vim.b.miniindentscope_disable = true | |
68 | end, | |
69 | }) | |
70 | require("mini.indentscope").setup(opts) | |
71 | end, | |
72 | }, | |
73 | } |