mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-06 17:56:35 +05:30
add options for neovide
This commit is contained in:
@ -56,4 +56,11 @@ M.nvterm = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
M.telescope = {
|
||||||
|
defaults = {
|
||||||
|
winblend = 40,
|
||||||
|
pumblend = 40,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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",
|
||||||
|
Reference in New Issue
Block a user