From b492d55575c0ae80eabaa0137f37f4695f8b469b Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Mon, 4 Dec 2023 16:39:19 +0200 Subject: Added shortcut for telescope flutter commands --- nvim/.config/nvim/lazy-lock.json | 2 +- nvim/.config/nvim/lua/config/keymaps.lua | 8 +++++++- nvim/.config/nvim/lua/config/options.lua | 10 ++++++++++ nvim/.config/nvim/lua/plugins/disabled.lua | 4 ++++ nvim/.config/nvim/lua/plugins/example.lua | 9 +++++++++ 5 files changed, 31 insertions(+), 2 deletions(-) (limited to 'nvim/.config') diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index c08e950..9c1dc1d 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -40,13 +40,13 @@ "nvim-notify": { "branch": "master", "commit": "e4a2022f4fec2d5ebc79afa612f96d8b11c627b3" }, "nvim-spectre": { "branch": "master", "commit": "696cff781a4a7ecc91549736835e2acbd00fe859" }, "nvim-treesitter": { "branch": "master", "commit": "a8c14d68b024ffc20baec92d1acc91796bcfb485" }, - "nvim-treesitter-context": { "branch": "master", "commit": "2806d83e3965017382ce08792ee527e708fa1bd4" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "e69a504baf2951d52e1f1fbb05145d43f236cbf1" }, "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "92e688f013c69f90c9bbd596019ec10235bc51de" }, "nvim-web-devicons": { "branch": "master", "commit": "5de460ca7595806044eced31e3c36c159a493857" }, "persistence.nvim": { "branch": "main", "commit": "ad538bfd5336f1335cdb6fd4e0b0eebfa6e12f32" }, "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, + "rose-pine": { "branch": "main", "commit": "92762f4fa2144c05db760ea254f4c399a56a7ef5" }, "symbols-outline.nvim": { "branch": "master", "commit": "512791925d57a61c545bc303356e8a8f7869763c" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" }, "telescope.nvim": { "branch": "master", "commit": "4522d7e3ea75ffddabdc39957168a8a7060b5df0" }, diff --git a/nvim/.config/nvim/lua/config/keymaps.lua b/nvim/.config/nvim/lua/config/keymaps.lua index c84bef7..9478c98 100644 --- a/nvim/.config/nvim/lua/config/keymaps.lua +++ b/nvim/.config/nvim/lua/config/keymaps.lua @@ -19,6 +19,8 @@ end map("v", "", ":m '>+1gv=gv", { desc = "Move down" }) map("v", "", ":m '<-2gv=gv", { desc = "Move up" }) +map("n", "t", ":lua require('dbgstmt').select()", { desc = "Move up" }) + -- fix annoying typs when saving or quitting vim.cmd([[ cnoreabbrev W! w! @@ -45,14 +47,18 @@ vim.cmd([[ map("n", "h", "noh", { desc = "remove highlights", remap = true }) map("n", "j", "/<()>ciwO", { desc = "jump to <()>", remap = true }) -map("n", "c", "bd", { desc = "Close current buffer", remap = true }) +map("n", "C", "bd", { desc = "Close current buffer", remap = true }) map("n", "l", "", { desc = "unset lazy shortcut", remap = true }) map("n", "la", "lua vim.lsp.buf.code_action()", { desc = "code actions", remap = true }) +map("n", "y", "Telescop flutter commands", { desc = "Flutter commands", remap = true }) map("n", "gl", "lua vim.diagnostic.open_float()", { desc = "Line diagnostics", remap = true }) +-- Better navigation map("n", "", "zz", { desc = "better half page down scroll", remap = true }) map("n", "", "zz", { desc = "better half page up scroll", remap = true }) map("n", "n", "nzz", { desc = "better jump for searched word", remap = true }) +map("n", "", "zz", { desc = "better next jump", remap = true }) +map("n", "", "zz", { desc = "better prev jump", remap = true }) -- competitest keymaps map("n", "", " CompetiTest receive problem ", { desc = "Receive test", remap = true }) diff --git a/nvim/.config/nvim/lua/config/options.lua b/nvim/.config/nvim/lua/config/options.lua index e78ac80..d1b395f 100644 --- a/nvim/.config/nvim/lua/config/options.lua +++ b/nvim/.config/nvim/lua/config/options.lua @@ -5,3 +5,13 @@ vim.opt.ch = 0 vim.opt.list = false vim.opt.confirm = false +vim.o.guifont = "Comic mono:h14" -- text below applies for VimScript + +-- Helper function for transparency formatting +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() diff --git a/nvim/.config/nvim/lua/plugins/disabled.lua b/nvim/.config/nvim/lua/plugins/disabled.lua index 6eed0ab..9b3390c 100644 --- a/nvim/.config/nvim/lua/plugins/disabled.lua +++ b/nvim/.config/nvim/lua/plugins/disabled.lua @@ -7,6 +7,10 @@ return { "folke/flash.nvim", enabled = false, }, + { + "echasnovski/mini.ai", + enabled = false, + }, { "nvim-treesitter/nvim-treesitter-context", enabled = false, diff --git a/nvim/.config/nvim/lua/plugins/example.lua b/nvim/.config/nvim/lua/plugins/example.lua index 81fc336..dd80f50 100644 --- a/nvim/.config/nvim/lua/plugins/example.lua +++ b/nvim/.config/nvim/lua/plugins/example.lua @@ -12,6 +12,12 @@ return { -- add gruvbox { "ellisonleao/gruvbox.nvim" }, + { 'rose-pine/neovim', name = 'rose-pine', + opts = { + disable_background = true + } + }, + { "catppuccin/nvim", name = "catppuccin", priority = 1000, opts = { flavour = "mocha", @@ -213,6 +219,9 @@ return { ensure_installed = { "bash", "html", + "rust", + "cpp", + "c", "javascript", "json", "lua", -- cgit v1.2.3