Added support for neovide and added new remap

This commit is contained in:
2023-06-18 15:27:07 +02:00
parent 2a530bfbd6
commit 462542f0e8
3 changed files with 15 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
require("taken.packer")
require("taken.opts")
require("taken.remaps")
require("taken.neovide")
vim.notify = require("notify")

13
lua/taken/neovide.lua Normal file
View File

@@ -0,0 +1,13 @@
local alpha = function()
return string.format("%x", math.floor(255 * vim.g.transparency or 0.8))
end
-- g:neovide_transparency should be 0 if you want to unify transparency of content and title bar.
vim.g.neovide_transparency = 0.8
vim.g.transparency = 0.8
vim.g.neovide_background_color = "#0f1117" .. alpha()
vim.o.guifont = "JetBrainsMono NFM:h16" -- text below applies for VimScript
vim.g.neovide_refresh_rate = 165
vim.g.neovide_refresh_rate_idle = 5
vim.g.neovide_cursor_vfx_mode = "railgun"

View File

@@ -12,6 +12,7 @@ vim.keymap.set("n", "N", "Nzzzv")
-- next greatest remap ever : asbjornHaland
vim.keymap.set({"n", "v"}, "<leader>y", [["+y]], { desc = "Yank in to sys clipboard" })
vim.keymap.set("n", "<leader>P", [["+p]], { desc = "Paste from sys clipboard" })
vim.keymap.set({"n", "v"}, "<leader>d", [["_d]])
vim.keymap.set("n", "Q", "<nop>")