Disabled mason plugin, added Nightfox colorscheme
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
-- define your colorscheme here
|
||||
local colorscheme = 'lunaperche-sl'
|
||||
-- local colorscheme = 'lunaperche-sl'
|
||||
local colorscheme = 'nightfox'
|
||||
|
||||
local is_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
|
||||
if not is_ok then
|
||||
|
||||
@@ -28,12 +28,12 @@ vim.keymap.set('n', '<space>o', ":silent !chromium '%'<cr>", { desc = "Open in b
|
||||
|
||||
-- toggle colorscheme between dark and light
|
||||
vim.keymap.set('n', '<leader>m', function()
|
||||
if vim.opt.background:get() == "dark" then
|
||||
vim.o.background = "light"
|
||||
if vim.g.colors_name == "nightfox" then
|
||||
vim.cmd('colorscheme dayfox')
|
||||
else
|
||||
vim.o.background = "dark"
|
||||
vim.cmd('colorscheme nightfox')
|
||||
end
|
||||
end, { desc = "Toggle dark/light mode" })
|
||||
end, { desc = "Toggle Nightfox/Dayfox" })
|
||||
|
||||
--
|
||||
-- configure workspaces
|
||||
|
||||
@@ -102,8 +102,8 @@ require("lazy").setup({
|
||||
--
|
||||
-- LSP manager and others
|
||||
--
|
||||
"williamboman/mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
-- "williamboman/mason.nvim",
|
||||
-- "williamboman/mason-lspconfig.nvim",
|
||||
"neovim/nvim-lspconfig",
|
||||
|
||||
-- Nice plugin to show what LSPs are doing in the background (and others
|
||||
@@ -608,6 +608,9 @@ require("lazy").setup({
|
||||
vim.diagnostic.config({ virtual_text = false }) -- Only if needed in your configuration, if you already have native LSP diagnostics
|
||||
end
|
||||
},
|
||||
-- Nightfox colorscheme
|
||||
{ "EdenEast/nightfox.nvim" },
|
||||
|
||||
-- new plugins here
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user