add options for neovide

This commit is contained in:
2024-03-05 01:06:37 +05:30
parent 81f450819c
commit a210975e26
4 changed files with 36 additions and 0 deletions

View File

@ -56,4 +56,11 @@ M.nvterm = {
}, },
} }
M.telescope = {
defaults = {
winblend = 40,
pumblend = 40,
},
}
return M return M

View File

@ -1,4 +1,10 @@
local opt = vim.opt local opt = vim.opt
local g = vim.g
opt.relativenumber = true opt.relativenumber = true
opt.scrolloff = 5 opt.scrolloff = 5
opt.guifont = "FiraCode Nerd Font:h12"
-- neovide stuff
g.neovide_scale_factor = 0.7
-- g.neovide_transparency = 0.8

View File

@ -27,4 +27,23 @@ M.nvterm = {
}, },
} }
if vim.g.neovide then
M.neovide = {
n = {
["<C-=>"] = {
function()
vim.g.neovide_scale_factor = vim.g.neovide_scale_factor + 0.1
end,
desc = "Zoom In (Neovide)",
},
["<C-->"] = {
function()
vim.g.neovide_scale_factor = vim.g.neovide_scale_factor - 0.1
end,
desc = "Zoom Out (Neovide)",
},
},
}
end
return M return M

View File

@ -13,6 +13,10 @@ local plugins = {
"NvChad/nvterm", "NvChad/nvterm",
opts = overrides.nvterm, opts = overrides.nvterm,
}, },
-- {
-- "telescope.nvim",
-- opts = overrides.telescope,
-- },
-- Need to setup properly -- Need to setup properly
-- { -- {
-- "stevearc/conform.nvim", -- "stevearc/conform.nvim",