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