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

View File

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

View File

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

View File

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