Skip to content

Commit

Permalink
Edit: Neovide Setting & Telescope
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Fox-h committed Dec 29, 2024
1 parent 7cdd527 commit fc832f4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
29 changes: 25 additions & 4 deletions lua/user/neovide.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
if vim.g.neovide then

-- Fonts
vim.o.guifont = "JetBrainsMono Nerd Font"
vim.o.guifont = "JetBrainsMonoNL Nerd Font:h24"


local change_scale_factor = function(delta)
vim.g.neovide_scale_factor = vim.g.neovide_scale_factor * delta
end

vim.keymap.set("n", "<C-=>", function() change_scale_factor(1.25) end)
vim.keymap.set("n", "<C-->", function() change_scale_factor(1 / 1.25) end)

require('telescope').setup{
-- Telescope setup
require('telescope').setup {
defaults = {
winblend = 70,
}
Expand Down Expand Up @@ -40,9 +48,22 @@ if vim.g.neovide then
change_scale_factor(1.25)
end)
vim.keymap.set("n", "<C-->", function()
change_scale_factor(1/1.25)
change_scale_factor(1 / 1.25)
end)

-- Profiler
vim.g.neovide_profiler = false

-- Full-screen toggle (simulated)
local is_fullscreen = false
vim.keymap.set("n", "<F11>", function()
if is_fullscreen then
vim.cmd("silent !wmctrl -r :ACTIVE: -b remove,fullscreen")
else
vim.cmd("silent !wmctrl -r :ACTIVE: -b add,fullscreen")
end
is_fullscreen = not is_fullscreen
end)
end

-- If you want fullscreen, install `wmctrl`
4 changes: 2 additions & 2 deletions lua/user/telescope.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require('telescope').setup{
require('telescope').setup {
defaults = {
-- Default configuration for telescope goes here:
-- config_key = value,
Expand Down Expand Up @@ -30,7 +30,7 @@ require('telescope').setup{
prompt_prefix = " >"
},
live_grep = {
theme = "dropdown",
theme = "cursor",
prompt_prefix = " >"
},
},
Expand Down

0 comments on commit fc832f4

Please sign in to comment.