diff options
author | adamstuck <adam.moloney.stuck@gmail.com> | 2022-03-12 17:38:32 +0100 |
---|---|---|
committer | adamstuck <adam.moloney.stuck@gmail.com> | 2022-03-13 18:07:03 +0100 |
commit | 7b46477a3ddd6ce80736cc058d2f7f3b58fdb966 (patch) | |
tree | bd3ad020f28d368fcd268038e3a47ff695ebac51 /.config/nvim/lua/setup | |
parent | 082c8cfa8fd385dff9b1662d0a58529ff89284b7 (diff) |
nvim: better lazy loading
Diffstat (limited to '.config/nvim/lua/setup')
-rw-r--r-- | .config/nvim/lua/setup/indent-blankline.lua | 6 | ||||
-rw-r--r-- | .config/nvim/lua/setup/lualine.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/setup/nvim-cmp.lua | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/.config/nvim/lua/setup/indent-blankline.lua b/.config/nvim/lua/setup/indent-blankline.lua index ff81338..17dcdab 100644 --- a/.config/nvim/lua/setup/indent-blankline.lua +++ b/.config/nvim/lua/setup/indent-blankline.lua @@ -1,6 +1,6 @@ require("indent_blankline").setup { - char = "▏", + char = "┊", show_trailing_blankline_indent = false, - buftype_exclude = {"startify", "help", "terminal"}, - filetype_exclude = {"startify", "help", "terminal"}, + buftype_exclude = {'startify', 'help', 'terminal', 'packer'}, + filetype_exclude = {'startify', 'help', 'terminal', 'packer'}, } diff --git a/.config/nvim/lua/setup/lualine.lua b/.config/nvim/lua/setup/lualine.lua index 0c07a4a..1182fce 100644 --- a/.config/nvim/lua/setup/lualine.lua +++ b/.config/nvim/lua/setup/lualine.lua @@ -4,7 +4,7 @@ require'lualine'.setup { theme = 'onedark', component_separators = {left = '', right = ''}, section_separators = {left = '', right = ''}, - disabled_filetypes = {'startify', 'terminal', 'netrw', 'NvimTree'} + disabled_filetypes = {'startify', 'terminal', 'netrw', 'NvimTree', 'packer'} }, sections = { lualine_a = {'mode'}, diff --git a/.config/nvim/lua/setup/nvim-cmp.lua b/.config/nvim/lua/setup/nvim-cmp.lua index 42bf348..584da73 100644 --- a/.config/nvim/lua/setup/nvim-cmp.lua +++ b/.config/nvim/lua/setup/nvim-cmp.lua @@ -1,6 +1,6 @@ local has_words_before = function() - local line, col = unpack(vim.api.nvim_win_get_cursor(0)) - return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil + local line, col = unpack(vim.api.nvim_win_get_cursor(0)) + return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil end local luasnip = require("luasnip") |