diff --git a/lua/core/default_config.lua b/lua/core/default_config.lua index 89b9ccd..7f7004f 100644 --- a/lua/core/default_config.lua +++ b/lua/core/default_config.lua @@ -39,7 +39,6 @@ M.ui = { -- lazyload it when there are 1+ buffers tabufline = { - enabled = true, lazyload = true, overriden_modules = nil, }, diff --git a/lua/plugins/configs/cmp.lua b/lua/plugins/configs/cmp.lua index afa890f..3bbc557 100644 --- a/lua/plugins/configs/cmp.lua +++ b/lua/plugins/configs/cmp.lua @@ -2,8 +2,6 @@ local cmp = require "cmp" dofile(vim.g.base46_cache .. "cmp") -vim.o.completeopt = "menu,menuone,noselect" - local cmp_ui = require("core.utils").load_config().ui.cmp local cmp_style = cmp_ui.style @@ -47,6 +45,10 @@ local function border(hl_name) end local options = { + completion = { + completeopt = "menu,menuone", + }, + window = { completion = { side_padding = (cmp_style ~= "atom" and cmp_style ~= "atom_colored") and 1 or 0, diff --git a/lua/plugins/configs/lspconfig.lua b/lua/plugins/configs/lspconfig.lua index 7fc6b0c..24083ae 100644 --- a/lua/plugins/configs/lspconfig.lua +++ b/lua/plugins/configs/lspconfig.lua @@ -50,8 +50,8 @@ require("lspconfig").lua_ls.setup { library = { [vim.fn.expand "$VIMRUNTIME/lua"] = true, [vim.fn.expand "$VIMRUNTIME/lua/vim/lsp"] = true, - [vim.fn.stdpath("data") .. "/lazy/extensions/nvchad_types"] = true, - [vim.fn.stdpath("data") .. "/lazy/lazy.nvim/lua/lazy"] = true, + [vim.fn.stdpath "data" .. "/lazy/extensions/nvchad_types"] = true, + [vim.fn.stdpath "data" .. "/lazy/lazy.nvim/lua/lazy"] = true, }, maxPreload = 100000, preloadFileSize = 10000, diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 64a8493..b909d60 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -54,12 +54,12 @@ local default_plugins = { "lukas-reineke/indent-blankline.nvim", init = function() require("core.utils").lazy_load "indent-blankline.nvim" - require("core.utils").load_mappings "blankline" end, opts = function() return require("plugins.configs.others").blankline end, config = function(_, opts) + require("core.utils").load_mappings "blankline" dofile(vim.g.base46_cache .. "blankline") require("indent_blankline").setup(opts) end,