diff options
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/.config/nvim/lazy-lock.json | 2 | ||||
| -rw-r--r-- | nvim/.config/nvim/lua/config/keymaps.lua | 8 | ||||
| -rw-r--r-- | nvim/.config/nvim/lua/config/options.lua | 10 | ||||
| -rw-r--r-- | nvim/.config/nvim/lua/plugins/disabled.lua | 4 | ||||
| -rw-r--r-- | nvim/.config/nvim/lua/plugins/example.lua | 9 |
5 files changed, 31 insertions, 2 deletions
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", "<S-j>", ":m '>+1<CR>gv=gv", { desc = "Move down" }) map("v", "<S-k>", ":m '<-2<CR>gv=gv", { desc = "Move up" }) +map("n", "<leader>t", ":lua require('dbgstmt').select()<CR>", { desc = "Move up" }) + -- fix annoying typs when saving or quitting vim.cmd([[ cnoreabbrev W! w! @@ -45,14 +47,18 @@ vim.cmd([[ map("n", "<leader>h", "<Cmd>noh<CR>", { desc = "remove highlights", remap = true }) map("n", "<leader>j", "/<()><CR>ciw<CR><C-o>O", { desc = "jump to <()>", remap = true }) -map("n", "<leader>c", "<Cmd>bd<CR>", { desc = "Close current buffer", remap = true }) +map("n", "<leader>C", "<Cmd>bd<CR>", { desc = "Close current buffer", remap = true }) map("n", "<leader>l", "", { desc = "unset lazy shortcut", remap = true }) map("n", "<leader>la", "<cmd>lua vim.lsp.buf.code_action()<CR>", { desc = "code actions", remap = true }) +map("n", "<leader>y", "<cmd>Telescop flutter commands<CR>", { desc = "Flutter commands", remap = true }) map("n", "gl", "<cmd>lua vim.diagnostic.open_float()<CR>", { desc = "Line diagnostics", remap = true }) +-- Better navigation map("n", "<C-d>", "<C-d>zz", { desc = "better half page down scroll", remap = true }) map("n", "<C-u>", "<C-u>zz", { desc = "better half page up scroll", remap = true }) map("n", "n", "nzz", { desc = "better jump for searched word", remap = true }) +map("n", "<C-o>", "<C-o>zz", { desc = "better next jump", remap = true }) +map("n", "<C-i>", "<C-i>zz", { desc = "better prev jump", remap = true }) -- competitest keymaps map("n", "<F2>", "<cmd> CompetiTest receive problem <CR>", { 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 @@ -8,6 +8,10 @@ return { 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", |
