Compare commits

...

2 Commits

Author SHA1 Message Date
coja
0c480e2d1e [Nvim] cleanup 2026-04-10 01:06:00 +02:00
coja
03e193f975 [Nvim] mappings, floating term 2026-04-10 01:05:49 +02:00
2 changed files with 14 additions and 32 deletions

View File

@@ -1,31 +1,7 @@
vim.g.base46_cache = vim.fn.stdpath "data" .. "/base46/"
vim.g.mapleader = " "
----- custom config -----
if vim.g.neovide then
vim.g.neovide_opacity = 0.5
vim.g.neovide_scale_factor = 0.7
vim.g.neovide_window_blurred = true
vim.g.neovide_floating_blur_amount_x = 1.9
vim.g.neovide_floating_blur_amount_y = 1.9
vim.g.neovide_floating_shadow = true
vim.g.neovide_floating_z_height = 0
vim.g.neovide_hide_mouse_when_typing = true
vim.g.neovide_padding_top = 15
vim.g.neovide_padding_right = 5
vim.g.neovide_padding_left = 5
-- vim.g.neovide_fullscreen = true
-- vim.g.neovide_padding_bottom = 0
-- vim.g.neovide_light_radius = 5
-- vim.g.neovide_show_border = false
-- vim.g.neovide_light_angle_degrees = 45
end
vim.opt.relativenumber = true
----- end of custom -----
-- bootstrap lazy and all plugins
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"

View File

@@ -1,16 +1,13 @@
require "nvchad.mappings"
-- add yours here
local map = vim.keymap.set
-- map("n", ";", ":", { desc = "cmd enter command mode" })
local builtin = require "telescope.builtin"
map("n", "gd", vim.lsp.buf.definition, { desc = "Go to definition" })
map("n", "gD", builtin.lsp_definitions, { desc = "Go to Definitions" })
map("n", "grr", builtin.lsp_references, { desc = "Go to references" })
map("n", "<leader>ge", ":Gen<CR>")
map("n", "<leader>gl", "<cmd>lua vim.lsp.buf.code_action()<CR>", { noremap = true, silent = true })
map("n", "<leader>dh", ":lua vim.diagnostic.open_float()<cr>", { desc = "Show diagnostics" })
map("n", "<leader>dj", ":lua vim.diagnostic.goto_next()<cr>", { desc = "Go to next" })
map("n", "<leader>dk", ":lua vim.diagnostic.goto_prev()<cr>", { desc = "Go to previous" })
@@ -23,6 +20,15 @@ map("n", "<leader>fd", ":Telescope diagnostics<CR>", { desc = "Diagnostics" })
map({ "n", "v" }, "<leader>ge", "<cmd>:Gen<cr>", { desc = "Gen.nvim" })
-- P paste with
-- global marks
-- "{register}
map({ "n", "t" }, "<A-i>", function()
require("nvchad.term").toggle {
pos = "float",
id = "floatTerm",
float_opts = {
row = 0.1,
col = 0.1,
width = 0.8,
height = 0.8,
},
}
end, { desc = "terminal toggle floating term" })