From 8e017728d26bf8de7335c691191da06b258857c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Kmie=C4=87?= Date: Wed, 2 Aug 2023 10:52:41 +0200 Subject: [PATCH] Nvim: optimize startup time --- .config/nvim/lua/plugins/dressing.lua | 8 ++++++-- .config/nvim/lua/plugins/mkdnflow.lua | 1 + .config/nvim/lua/plugins/vim-cmake.lua | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/plugins/dressing.lua b/.config/nvim/lua/plugins/dressing.lua index 45c5776..333147d 100644 --- a/.config/nvim/lua/plugins/dressing.lua +++ b/.config/nvim/lua/plugins/dressing.lua @@ -18,7 +18,6 @@ return { start_in_insert = true, -- These are passed to nvim_open_win - anchor = "SW", border = "rounded", -- 'editor' and 'win' will default to being centered relative = "cursor", @@ -37,6 +36,10 @@ return { winblend = 10, -- Disable line wrapping wrap = false, + list = true, + listchars = "precedes:…,extends:…", + -- Increase this for more context when text scrolls off the window + sidescrolloff = 0, }, -- Set to `false` to disable @@ -117,7 +120,6 @@ return { -- Options for built-in selector builtin = { -- These are passed to nvim_open_win - anchor = "NW", border = "rounded", -- 'editor' and 'win' will default to being centered relative = "editor", @@ -126,6 +128,8 @@ return { win_options = { -- Window transparency (0-100) winblend = 10, + cursorline = true, + cursorlineopt = "both", }, -- These can be integers or a float between 0 and 1 (e.g. 0.4 for 40%) diff --git a/.config/nvim/lua/plugins/mkdnflow.lua b/.config/nvim/lua/plugins/mkdnflow.lua index 9ddc918..4033a41 100644 --- a/.config/nvim/lua/plugins/mkdnflow.lua +++ b/.config/nvim/lua/plugins/mkdnflow.lua @@ -1,5 +1,6 @@ return { 'jakewvincent/mkdnflow.nvim', + ft = { "markdown" }, opts = { modules = { bib = true, diff --git a/.config/nvim/lua/plugins/vim-cmake.lua b/.config/nvim/lua/plugins/vim-cmake.lua index c468c6c..df798b2 100644 --- a/.config/nvim/lua/plugins/vim-cmake.lua +++ b/.config/nvim/lua/plugins/vim-cmake.lua @@ -1,5 +1,6 @@ return { 'Civitasv/cmake-tools.nvim', + ft = { "cpp", "c", "cmake" }, config = function() --let g:cmake_build_options = [ "-j10" ] --