diff options
Diffstat (limited to '.config/nvim/lua/plugin_settings.lua')
| -rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 46 |
1 files changed, 36 insertions, 10 deletions
diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index 63cb370..2986c64 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua | |||
| @@ -32,31 +32,40 @@ g.vimwiki_hl_headers = 1 | |||
| 32 | 32 | ||
| 33 | local function lualine_spell() | 33 | local function lualine_spell() |
| 34 | if vim.wo.spell then | 34 | if vim.wo.spell then |
| 35 | return [[spell]] | 35 | return "spell" |
| 36 | else | 36 | else |
| 37 | return | 37 | return |
| 38 | end | 38 | end |
| 39 | end | 39 | end |
| 40 | 40 | ||
| 41 | local function lualine_spell_cond() | ||
| 42 | if vim.wo.spell then | ||
| 43 | return true | ||
| 44 | else | ||
| 45 | return false | ||
| 46 | end | ||
| 47 | end | ||
| 48 | |||
| 41 | require'lualine'.setup { | 49 | require'lualine'.setup { |
| 42 | options = { | 50 | options = { |
| 43 | lower = false, | ||
| 44 | icons_enabled = true, | 51 | icons_enabled = true, |
| 45 | theme = 'rose-pine', | 52 | theme = 'rose-pine', |
| 46 | section_separators = {'', ''}, | 53 | section_separators = { left = '', right = '' }, |
| 47 | component_separators = {'', ''}, | 54 | component_separators = { left = '', right = '' }, |
| 48 | disabled_filetypes = {} | ||
| 49 | }, | 55 | }, |
| 50 | sections = { | 56 | sections = { |
| 51 | lualine_a = {{'mode', lower = true}}, | 57 | lualine_a = {{'mode', fmt = string.lower}}, |
| 52 | lualine_b = {'branch', 'diff', {lualine_spell}}, | 58 | lualine_b = {'branch', 'diff', { |
| 59 | lualine_spell, | ||
| 60 | cond = lualine_spell_cond | ||
| 61 | }}, | ||
| 53 | lualine_c = {'filename'}, | 62 | lualine_c = {'filename'}, |
| 54 | lualine_x = {'encoding', 'fileformat', 'filetype'}, | 63 | lualine_x = {'encoding', 'fileformat', 'filetype'}, |
| 55 | lualine_y = {'progress'}, | 64 | lualine_y = {'progress'}, |
| 56 | lualine_z = { | 65 | lualine_z = { |
| 57 | 'location', { | 66 | 'location', { |
| 58 | 'diagnostics', | 67 | 'diagnostics', |
| 59 | sources = {'ale'}, | 68 | sources = {'nvim_lsp'}, |
| 60 | sections = {'error', 'warn', 'info', 'hint'}, | 69 | sections = {'error', 'warn', 'info', 'hint'}, |
| 61 | symbols = {error = 'e', warn = 'w', info = 'i', hint = 'h'} | 70 | symbols = {error = 'e', warn = 'w', info = 'i', hint = 'h'} |
| 62 | } | 71 | } |
| @@ -70,7 +79,14 @@ require'lualine'.setup { | |||
| 70 | lualine_y = {}, | 79 | lualine_y = {}, |
| 71 | lualine_z = {} | 80 | lualine_z = {} |
| 72 | }, | 81 | }, |
| 73 | tabline = {}, | 82 | tabline = { |
| 83 | lualine_a = {'buffers'}, | ||
| 84 | lualine_b = {}, | ||
| 85 | lualine_c = {}, | ||
| 86 | lualine_x = {}, | ||
| 87 | lualine_y = {}, | ||
| 88 | lualine_z = {'tabs'} | ||
| 89 | }, | ||
| 74 | extensions = {} | 90 | extensions = {} |
| 75 | } | 91 | } |
| 76 | 92 | ||
| @@ -102,7 +118,7 @@ g.UltiSnipsEditSplit = "vertical" | |||
| 102 | -- ctrl + l expands the snippet, c + j/k navigates placeholders | 118 | -- ctrl + l expands the snippet, c + j/k navigates placeholders |
| 103 | g.UltiSnipsExpandTrigger = "<C-l>" | 119 | g.UltiSnipsExpandTrigger = "<C-l>" |
| 104 | g.UltiSnipsEnableSnipMate = "1" | 120 | g.UltiSnipsEnableSnipMate = "1" |
| 105 | g.UltiSnipsSnippetDirectories = {"my_snippets"} | 121 | g.UltiSnipsSnippetDirectories = {"my_snippets", "UltiSnips"} |
| 106 | -- }}} UltiSnips -- | 122 | -- }}} UltiSnips -- |
| 107 | 123 | ||
| 108 | -- beacon {{{ -- | 124 | -- beacon {{{ -- |
| @@ -341,3 +357,13 @@ g.vista_icon_indent = {"╰ ", "│ "} | |||
| 341 | g["float_preview#docked"] = 0 | 357 | g["float_preview#docked"] = 0 |
| 342 | -- }}} float-preview.nvim -- | 358 | -- }}} float-preview.nvim -- |
| 343 | 359 | ||
| 360 | -- indent-blankline {{{ -- | ||
| 361 | vim.opt.list = true | ||
| 362 | |||
| 363 | require("indent_blankline").setup { | ||
| 364 | show_current_context = true, | ||
| 365 | char = "┊", | ||
| 366 | buftype_exclude = {"terminal"}, | ||
| 367 | filetype_exclude = {"dashboard", "help", "ledger"} | ||
| 368 | } | ||
| 369 | -- }}} indent-blankline -- | ||
