more neovide configuration
This commit is contained in:
parent
c5b355601e
commit
f9f3b19299
5 changed files with 9 additions and 6 deletions
dotfiles/neovim/lua/my
|
@ -22,7 +22,7 @@ return {
|
|||
return vim.g.vscode ~= nil
|
||||
end),
|
||||
neovide = makeEnv(function()
|
||||
return vim.g.neovide ~= nil or os.getenv("INSIDE_NEOVIDE") ~= nil
|
||||
return vim.g.neovide ~= nil or os.getenv("INSIDE_NEOVIDE") == "1"
|
||||
end),
|
||||
firenvim = makeEnv(function()
|
||||
return vim.g.started_by_firenvim ~= nil
|
||||
|
|
|
@ -1,18 +1,22 @@
|
|||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
local default_length = 0.04
|
||||
vim.g.neovide_floating_blur_amount_x = 3.0
|
||||
vim.g.neovide_floating_blur_amount_y = 3.0
|
||||
vim.g.neovide_transparency = 1.0
|
||||
vim.g.pumblend = 30
|
||||
vim.g.neovide_cursor_animation_length = default_length
|
||||
|
||||
vim.api.nvim_create_autocmd("WinEnter", {
|
||||
group = vim.api.nvim_create_augroup("Setup transparency", {}),
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
vim.wo.winblend = 30
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
vim.g.neovide_cursor_animate_in_insert_mode = false
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
@ -86,7 +86,7 @@ return {
|
|||
{
|
||||
-- easly switch between tmux and vim panes
|
||||
"christoomey/vim-tmux-navigator",
|
||||
keys = { "C-h", "C-j", "C-k", "C-l" },
|
||||
keys = { "<C-h>", "<C-j>", "<C-k>", "<C-l>" },
|
||||
cond = env.vscode.not_active()
|
||||
and env.neovide.not_active()
|
||||
and env.firenvim.not_active(),
|
||||
|
@ -102,7 +102,8 @@ return {
|
|||
{
|
||||
-- smooth scrolling
|
||||
"psliwka/vim-smoothie",
|
||||
enabled = env.neovide.not_active(),
|
||||
-- enabled = env.neovide.not_active(),
|
||||
enabled = false,
|
||||
event = "VeryLazy",
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue