Start lspconfig on cmdline enter
Fix Alpha using : instead of <cmd> in command definition
This commit is contained in:
parent
f21f1461c0
commit
c67d679fc4
|
@ -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"
|
||||
|
|
|
@ -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" } },
|
||||
|
|
Loading…
Reference in a new issue