.config/nvim/lua/plugins/ui.lua

Sat, 08 Apr 2023 13:58:09 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 08 Apr 2023 13:58:09 -0500
changeset 1100
27bf2b97c98f
parent 1081
59e05e03851d
child 1116
2d8f07b212e9
permissions
-rw-r--r--

Disable editorconfig-vim after nvim-0.9

1022
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1015
diff changeset
1 local g = vim.g
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1015
diff changeset
2
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1015
diff changeset
3 -- >> Viewdoc
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1015
diff changeset
4 g.no_viewdoc_abbrev = 1
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1015
diff changeset
5 g.viewdoc_open = "topleft new"
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1015
diff changeset
6 g.viewdoc_winwidth_max = 100
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1015
diff changeset
7
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 return {
1068
537a428597b5 tweak lazy loading
Meredith Howard <mhoward@roomag.org>
parents: 1064
diff changeset
9 { "powerman/vim-plugin-viewdoc", event = "VeryLazy" },
1022
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1015
diff changeset
10
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 {
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 "nvim-lualine/lualine.nvim",
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 opts = {
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14 options = {
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15 theme = "auto",
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16 icons_enabled = false,
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
17 section_separators = "",
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
18 component_separators = "",
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
19 },
1045
456c039881a8 tweak status lines
Meredith Howard <mhoward@roomag.org>
parents: 1022
diff changeset
20 sections = {
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
21 lualine_a = { "mode" },
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
22 lualine_b = { "filename" },
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
23 lualine_c = { "diagnostics" },
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
24 lualine_x = { "encoding", "fileformat" },
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
25 lualine_y = { "filetype" },
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
26 lualine_z = { "progress", "location" },
1045
456c039881a8 tweak status lines
Meredith Howard <mhoward@roomag.org>
parents: 1022
diff changeset
27 },
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
28 tabline = {
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
29 lualine_a = { { "buffers", mode = 4, show_filename_only = false } },
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
30 lualine_z = { "branch" },
1015
21950cadff6b Ongoing nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1014
diff changeset
31 },
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
32 extensions = { "quickfix" },
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
33 },
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
34 },
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
35
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
36 {
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
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
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
39 keys = {
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
40 { "<leader>ig", "<cmd>IndentBlanklineToggle<cr>" },
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
41 },
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
42 opts = {
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
43 enabled = false,
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
44 char = "│",
1022
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1015
diff changeset
45 -- filetype_exclude = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy" },
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
46 show_trailing_blankline_indent = false,
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
47 show_current_context = false,
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
48 },
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
49 },
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
50
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
51 {
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
52 "echasnovski/mini.indentscope",
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
53 version = false, -- wait till new 0.7.0 release to put it back on semver
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
54 event = "BufReadPre",
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
55 opts = {
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
56 symbol = "│",
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
57 -- symbol = "▏",
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
58 options = { try_as_border = true },
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
59 draw = {
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
60 animation = function()
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
61 return 2
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1045
diff changeset
62 end,
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
63 },
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
64 },
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
65 config = function(_, opts)
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
66 vim.api.nvim_create_autocmd("FileType", {
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
67 pattern = { "help", "alpha", "dashboard", "neo-tree", "Trouble", "lazy", "mason" },
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
68 callback = function()
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
69 vim.b.miniindentscope_disable = true
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
70 end,
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
71 })
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
72 require("mini.indentscope").setup(opts)
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
73 end,
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
74 },
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
75 }

mercurial