This commit is contained in:
Hydroxycarbamide 2024-07-06 02:22:08 +02:00
parent 473ad7436c
commit 70a59dda08
4 changed files with 64 additions and 40 deletions

27
lua/plugins/neovide.lua Normal file
View file

@ -0,0 +1,27 @@
if not vim.g.neovide then
return {} -- do nothing if not in a Neovide session
end
return {
"AstroNvim/astrocore",
---@type AstroCoreOpts
opts = {
options = {
opt = { -- configure vim.opt options
-- configure font
-- guifont = "Source Code Pro:h14",
-- line spacing
linespace = 0,
},
g = { -- configure vim.g variables
-- configure scaling
neovide_scale_factor = 1.0,
-- configure padding
neovide_padding_top = 20,
neovide_padding_bottom = 20,
neovide_padding_right = 20,
neovide_padding_left = 20,
},
},
},
}

View file

@ -2,6 +2,9 @@
-- Here are some examples:
---@type LazySpec
vim.keymap.set("i", "jk", "<esc>")
return {
-- == Examples of Adding Plugins ==
@ -85,4 +88,9 @@ return {
-- "Exafunction/codeium.vim",
-- event = "BufEnter",
-- },
{
"Wansmer/symbol-usage.nvim",
event = "BufReadPre", -- need run before LspAttach if you use nvim 0.9. On 0.10 use 'LspAttach'
config = function() require("symbol-usage").setup() end,
},
}