add autoinstall lsp and auto choose colortheme

This commit is contained in:
gameloader
2023-06-12 10:47:26 +08:00
parent 6aee450ef6
commit f299be3a65
13 changed files with 141 additions and 76 deletions

View File

@ -1,38 +1,81 @@
local db = require("dashboard")
db.custom_header = {
"",
"┳┻| ",
"┻┳| ",
"┳┻|ヘ ∧ ",
"┻┳| ● w ● )",
"┳┻|⊂ノ ",
"┻┳| ",
"",
-- local db = require("dashboard")
-- db.custom_header = {
-- "",
-- "┳┻| ",
-- "┻┳| ",
-- "┳┻|ヘ ∧ ",
-- "┻┳| ● w ● )",
-- "┳┻|⊂ノ ",
-- "┻┳| ",
-- "",
-- }
require("dashboard").setup{
custom_header = {
"",
"┳┻| ",
"┻┳| ",
"┳┻|ヘ ∧ ",
"┻┳| ● w ● )",
"┳┻|⊂ノ ",
"┻┳| ",
"",
},
custom_section = {
a = {
description = { " Find File " },
command = "Telescope find_files find_command=rg,--hidden,--files",
},
b = {
description = { " Recently Used Files" },
command = "Telescope oldfiles",
},
c = {
description = { " Find Word " },
command = "Telescope live_grep",
},
d = {
description = { "洛 New File " },
command = "DashboardNewFile",
},
e = {
description = { " Bookmarks " },
command = "Telescope marks",
},
f = {
description = { " Load Last Session " },
command = "SessionLoad",
},
},
custom_footer = {
"Neovim",
},
}
db.custom_center = {
{
icon = "",
desc = "Find File ",
action = "Telescope find_files find_command=rg,--hidden,--files",
shortcut = "SPC f f",
},
{
icon = "",
desc = "Recently opened files ",
action = "Telescope oldfiles",
shortcut = "SPC f r",
},
{
icon = "",
desc = "Open Project ",
action = "Telescope Project ",
shortcut = "SPC f p",
},
{
icon = "",
desc = "File Browser ",
action = "Telescope file_browser",
shortcut = "SPC f b",
},
}
-- db.custom_center = {
-- {
-- icon = " ",
-- desc = "Find File ",
-- action = "Telescope find_files find_command=rg,--hidden,--files",
-- shortcut = "SPC f f",
-- },
-- {
-- icon = " ",
-- desc = "Recently opened files ",
-- action = "Telescope oldfiles",
-- shortcut = "SPC f r",
-- },
-- {
-- icon = " ",
-- desc = "Open Project ",
-- action = "Telescope Project ",
-- shortcut = "SPC f p",
-- },
-- {
-- icon = " ",
-- desc = "File Browser ",
-- action = "Telescope file_browser",
-- shortcut = "SPC f b",
-- },
-- }

View File

@ -9,4 +9,7 @@ require("mason").setup({
},
})
require("mason-lspconfig").setup()
require("mason-lspconfig").setup({
automatic_installation = true,
ensure_installed = { "lua_ls", "clangd", "pyright" },
})

View File

@ -0,0 +1,5 @@
require("neo-tree").setup({
window = {
width = "30%", -- Width of the Neo-tree window
},
})