🗑️ remove(nvim): some global bindings and other options from neovide
This commit is contained in:
parent
595560bb82
commit
f0f8cdca0b
3 changed files with 8 additions and 43 deletions
|
@ -66,13 +66,11 @@ map("n", "<C-c>", ":%y+<CR>", { desc = "Copy whole text to clipboard", silent =
|
||||||
-- Select all text
|
-- Select all text
|
||||||
map("n", "<C-a>", "gg<S-V>G", { desc = "Select all text", silent = true, noremap = true })
|
map("n", "<C-a>", "gg<S-V>G", { desc = "Select all text", silent = true, noremap = true })
|
||||||
|
|
||||||
|
-- Paste options
|
||||||
|
map("i", "<C-v>", '<C-r>"', { desc = "Paste on insert mode" })
|
||||||
map("v", "p", '"_dP', { desc = "Paste without overwriting" })
|
map("v", "p", '"_dP', { desc = "Paste without overwriting" })
|
||||||
|
|
||||||
map("n", "c", '"_c', { desc = "Change without yanking" })
|
-- Deleting without yanking empty line
|
||||||
map("n", "C", '"_C', { desc = "Change without yanking" })
|
|
||||||
map("x", "c", '"_c', { desc = "Change without yanking" })
|
|
||||||
map("x", "C", '"_C', { desc = "Change without yanking" })
|
|
||||||
|
|
||||||
map("n", "dd", function()
|
map("n", "dd", function()
|
||||||
local is_empty_line = vim.api.nvim_get_current_line():match("^%s*$")
|
local is_empty_line = vim.api.nvim_get_current_line():match("^%s*$")
|
||||||
if is_empty_line then
|
if is_empty_line then
|
||||||
|
|
|
@ -11,16 +11,7 @@ ResizeGuiFont = function(delta)
|
||||||
RefreshGuiFont()
|
RefreshGuiFont()
|
||||||
end
|
end
|
||||||
|
|
||||||
ResetGuiFont = function()
|
|
||||||
vim.g.gui_font_size = vim.g.gui_font_default_size
|
|
||||||
RefreshGuiFont()
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Call function on startup to set default value
|
|
||||||
ResetGuiFont()
|
|
||||||
|
|
||||||
-- Keymaps
|
-- Keymaps
|
||||||
|
|
||||||
local opts = { noremap = true, silent = true }
|
local opts = { noremap = true, silent = true }
|
||||||
|
|
||||||
vim.keymap.set({ "n", "i" }, "<C-+>", function()
|
vim.keymap.set({ "n", "i" }, "<C-+>", function()
|
||||||
|
@ -29,9 +20,6 @@ end, opts)
|
||||||
vim.keymap.set({ "n", "i" }, "<C-->", function()
|
vim.keymap.set({ "n", "i" }, "<C-->", function()
|
||||||
ResizeGuiFont(-1)
|
ResizeGuiFont(-1)
|
||||||
end, opts)
|
end, opts)
|
||||||
vim.keymap.set({ "n", "i" }, "<C-BS>", function()
|
|
||||||
ResetGuiFont()
|
|
||||||
end, opts)
|
|
||||||
|
|
||||||
vim.g.neovide_padding_top = 5
|
vim.g.neovide_padding_top = 5
|
||||||
vim.g.neovide_padding_right = 5
|
vim.g.neovide_padding_right = 5
|
||||||
|
@ -47,24 +35,3 @@ vim.g.neovide_cursor_antialiasing = false
|
||||||
vim.g.neovide_cursor_vfx_mode = "pixiedust"
|
vim.g.neovide_cursor_vfx_mode = "pixiedust"
|
||||||
|
|
||||||
vim.opt.winblend = 20
|
vim.opt.winblend = 20
|
||||||
|
|
||||||
if vim.fn.exists("g:terminal_color_0") == 0 then
|
|
||||||
vim.api.nvim_set_var("terminal_color_0", "#494D64")
|
|
||||||
vim.api.nvim_set_var("terminal_color_1", "#ED8796")
|
|
||||||
vim.api.nvim_set_var("terminal_color_2", "#A6DA95")
|
|
||||||
vim.api.nvim_set_var("terminal_color_3", "#EED49F")
|
|
||||||
vim.api.nvim_set_var("terminal_color_4", "#8AADF4")
|
|
||||||
vim.api.nvim_set_var("terminal_color_5", "#F5BDE6")
|
|
||||||
vim.api.nvim_set_var("terminal_color_6", "#8BD5CA")
|
|
||||||
vim.api.nvim_set_var("terminal_color_7", "#B8C0E0")
|
|
||||||
vim.api.nvim_set_var("terminal_color_8", "#5B6078")
|
|
||||||
vim.api.nvim_set_var("terminal_color_9", "#ED8796")
|
|
||||||
vim.api.nvim_set_var("terminal_color_10", "#A6DA95")
|
|
||||||
vim.api.nvim_set_var("terminal_color_11", "#EED49F")
|
|
||||||
vim.api.nvim_set_var("terminal_color_12", "#8AADF4")
|
|
||||||
vim.api.nvim_set_var("terminal_color_13", "#F5BDE6")
|
|
||||||
vim.api.nvim_set_var("terminal_color_14", "#8BD5CA")
|
|
||||||
vim.api.nvim_set_var("terminal_color_15", "#B8C0E0")
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.g.neovide_theme = "catppuccin-macchiato"
|
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
-- Options are automatically loaded before lazy.nvim startup
|
-- Options are automatically loaded before lazy.nvim startup
|
||||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||||
-- Add any additional options here
|
-- Add any additional options here
|
||||||
|
-- Neovide options
|
||||||
require("config.neovide")
|
require("config.neovide")
|
||||||
|
|
||||||
|
-- Optimizations on startup
|
||||||
vim.loader.enable()
|
vim.loader.enable()
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
-- Font
|
||||||
|
|
||||||
vim.g.gui_font_default_size = 10
|
vim.g.gui_font_default_size = 10
|
||||||
vim.g.gui_font_size = vim.g.gui_font_default_size
|
vim.g.gui_font_size = vim.g.gui_font_default_size
|
||||||
vim.g.gui_font_face = "JetBrainsMono Nerd Font"
|
vim.g.gui_font_face = "JetBrainsMono Nerd Font"
|
||||||
|
|
||||||
vim.o.winwidth = 10
|
-- Define leader key
|
||||||
vim.o.winminwidth = 10
|
vim.g.mapleader = " "
|
||||||
vim.o.equalalways = false
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue