Start lspconfig on cmdline enter

Fix Alpha using : instead of <cmd> in command definition
This commit is contained in:
Evie Litherland-Smith 2023-05-16 13:18:32 +01:00
parent f21f1461c0
commit c67d679fc4
2 changed files with 9 additions and 9 deletions

View file

@ -14,14 +14,14 @@ return {
dashboard.section.header.val = vim.split(logo, "\n")
dashboard.section.buttons.val = {
dashboard.button("f", "" .. " Find file", ":Telescope find_files <CR>"),
dashboard.button("e", "" .. " Edit new file", ":ene <BAR> startinsert <CR>"),
dashboard.button("r", "" .. " Recent files", ":Telescope oldfiles <CR>"),
dashboard.button("n", "󱏒 " .. " Neotree", ":Neotree left <CR>"),
dashboard.button("g", "󰊢 " .. " Git status", ":Neogit <CR>"),
dashboard.button("c", "" .. " Config", ":e $MYVIMRC <CR>"),
dashboard.button("l", "󰒲 " .. " Lazy", ":Lazy<CR>"),
dashboard.button("q", "" .. " Quit", ":qa<CR>"),
dashboard.button("f", "" .. " Find file", "<cmd>Telescope find_files <CR>"),
dashboard.button("e", "" .. " Edit new file", "<cmd>ene <BAR> startinsert <CR>"),
dashboard.button("r", "" .. " Recent files", "<cmd>Telescope oldfiles <CR>"),
dashboard.button("n", "󱏒 " .. " Neotree", "<cmd>Neotree left <CR>"),
dashboard.button("g", "󰊢 " .. " Git status", "<cmd>Neogit <CR>"),
dashboard.button("c", "" .. " Config", "<cmd>e $MYVIMRC <CR>"),
dashboard.button("l", "󰒲 " .. " Lazy", "<cmd>Lazy<CR>"),
dashboard.button("q", "" .. " Quit", "<cmd>qa<CR>"),
}
for _, button in ipairs(dashboard.section.buttons.val) do
button.opts.hl = "AlphaButtons"

View file

@ -1,6 +1,6 @@
return {
"neovim/nvim-lspconfig",
event = { "BufReadPre", "BufNewFile" },
event = { "BufReadPre", "BufNewFile", "CmdlineEnter" },
dependencies = {
{ "hrsh7th/cmp-nvim-lsp", dependencies = { "hrsh7th/nvim-cmp" } },
{ "hrsh7th/cmp-buffer", dependencies = { "hrsh7th/nvim-cmp" } },