change the theme and status line

This commit is contained in:
gameloader 2022-10-21 13:19:53 +08:00
parent 1941ccef40
commit ecbe6a626d
4 changed files with 10 additions and 12 deletions

View File

@ -10,8 +10,8 @@ M.load_default_options = function()
fileencoding = "utf-8", -- the encoding written to a file fileencoding = "utf-8", -- the encoding written to a file
foldmethod = "manual", -- folding, set to "expr" for treesitter based folding foldmethod = "manual", -- folding, set to "expr" for treesitter based folding
foldexpr = "", -- set to "nvim_treesitter#foldexpr()" for treesitter based folding foldexpr = "", -- set to "nvim_treesitter#foldexpr()" for treesitter based folding
guifont = "Menlo:h17", -- the font used in graphical neovim applications guifont = "Menlo:h20", -- the font used in graphical neovim applications
background = "dark", -- set the background to light or dark background = "light", -- set the background to light or dark
hidden = true, -- required to keep multiple buffers and open multiple buffers hidden = true, -- required to keep multiple buffers and open multiple buffers
hlsearch = true, -- highlight all matches on previous search pattern hlsearch = true, -- highlight all matches on previous search pattern
ignorecase = true, -- ignore case in search patterns ignorecase = true, -- ignore case in search patterns
@ -64,6 +64,8 @@ M.load_default_options = function()
for k, v in pairs(let_options) do for k, v in pairs(let_options) do
vim.g[k] = v vim.g[k] = v
end end
vim.cmd("colorscheme melange")
end end
return M return M

View File

@ -121,6 +121,7 @@ wk.register({
name = "+Lsp", name = "+Lsp",
i = { ":LspInstall<CR>", "Install lsp" }, i = { ":LspInstall<CR>", "Install lsp" },
I = { ":MasonInstall ", "Install any" }, I = { ":MasonInstall ", "Install any" },
r = { ":LspRestart<CR>", "Lsp restart" },
l = { ":Mason<CR>", "Mason info" }, l = { ":Mason<CR>", "Mason info" },
u = { ":MasonUninstall<CR>", "Uninstall lsp" }, u = { ":MasonUninstall<CR>", "Uninstall lsp" },
U = { ":MasonUninstallAll<CR>", "Unistall all" }, U = { ":MasonUninstallAll<CR>", "Unistall all" },

View File

@ -20,7 +20,7 @@ require("lualine").setup({
sections = { sections = {
lualine_a = { "mode" }, lualine_a = { "mode" },
lualine_b = { "branch", "diff", "diagnostics" }, lualine_b = { "branch", "diff", "diagnostics" },
lualine_c = { "filename" }, lualine_c = { "require'lsp-status'.status()" },
lualine_x = { "encoding", "fileformat", "filetype" }, lualine_x = { "encoding", "fileformat", "filetype" },
lualine_y = { "progress" }, lualine_y = { "progress" },
lualine_z = { "location" }, lualine_z = { "location" },

View File

@ -17,12 +17,10 @@ return require("packer").startup(function()
use({ use({
"navarasu/onedark.nvim", "navarasu/onedark.nvim",
config = function()
require("onedark").setup({ style = "darker" })
require("onedark").load()
end,
}) })
use("savq/melange")
-- a good terminal -- a good terminal
-- 一个好的nvim内终端 -- 一个好的nvim内终端
use({ "akinsho/toggleterm.nvim", tag = "*" }) use({ "akinsho/toggleterm.nvim", tag = "*" })
@ -172,11 +170,8 @@ return require("packer").startup(function()
"jose-elias-alvarez/null-ls.nvim", "jose-elias-alvarez/null-ls.nvim",
}) })
-- nlsp-settings -- lsp-status
-- 方便的lsp配置插件 use("nvim-lua/lsp-status.nvim")
-- use {
-- "tamago324/nlsp-settings.nvim"
-- }
-- 补全引擎 -- 补全引擎
use("hrsh7th/nvim-cmp") use("hrsh7th/nvim-cmp")