From a2d594e2e2cfddcc9aa16eff4f3c189d6527523d Mon Sep 17 00:00:00 2001 From: Tevin79 Date: Wed, 3 Sep 2025 07:01:41 +0200 Subject: [PATCH] remove copilot and added some modifs --- init.lua | 11 ++++++----- lua/custom/plugins/{copilot.lua => copilot.lua.bak} | 0 lua/custom/plugins/render-markdown.lua | 9 +++++++++ lua/custom/plugins/vimtex.lua | 4 +++- lua/custom/remap.lua | 1 + 5 files changed, 19 insertions(+), 6 deletions(-) rename lua/custom/plugins/{copilot.lua => copilot.lua.bak} (100%) create mode 100644 lua/custom/plugins/render-markdown.lua diff --git a/init.lua b/init.lua index ae7eceb5..60fe7005 100644 --- a/init.lua +++ b/init.lua @@ -80,7 +80,7 @@ require('lazy').setup { -- Then, because we use the `opts` key (recommended), the configuration runs -- after the plugin has been loaded as `require(MODULE).setup(opts)`. - { -- Useful plugin to show you pending keybinds. + { -- Useful plugin to show you pending keybinds. 'folke/which-key.nvim', event = 'VimEnter', -- Sets the loading event to 'VimEnter' opts = { @@ -130,6 +130,7 @@ require('lazy').setup { { 't', group = '[T]oggle' }, { 'h', group = 'Git [H]unk', mode = { 'n', 'v' } }, { 'p', group = '[P]roject' }, + { 'l', group = 'VimTex' }, }, }, }, @@ -162,7 +163,7 @@ require('lazy').setup { { 'nvim-telescope/telescope-ui-select.nvim' }, -- Useful for getting pretty icons, but requires a Nerd Font. - { 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font }, + { 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font }, }, config = function() -- [[ Configure Telescope ]] @@ -241,7 +242,7 @@ require('lazy').setup { 'WhoIsSethDaniel/mason-tool-installer.nvim', -- Useful status updates for LSP. - { 'j-hui/fidget.nvim', opts = {} }, + { 'j-hui/fidget.nvim', opts = {} }, -- Allows extra capabilities provided by blink.cmp 'saghen/blink.cmp', @@ -463,7 +464,7 @@ require('lazy').setup { --- @type blink.cmp.Config opts = { keymap = { - preset = 'default', + preset = 'enter', }, appearance = { @@ -489,7 +490,7 @@ require('lazy').setup { }, }, - { -- You can easily change to a different colorscheme. + { -- You can easily change to a different colorscheme. 'folke/tokyonight.nvim', priority = 1000, -- Make sure to load this before all the other start plugins. config = function() diff --git a/lua/custom/plugins/copilot.lua b/lua/custom/plugins/copilot.lua.bak similarity index 100% rename from lua/custom/plugins/copilot.lua rename to lua/custom/plugins/copilot.lua.bak diff --git a/lua/custom/plugins/render-markdown.lua b/lua/custom/plugins/render-markdown.lua new file mode 100644 index 00000000..92b8a31a --- /dev/null +++ b/lua/custom/plugins/render-markdown.lua @@ -0,0 +1,9 @@ +return { + 'MeanderingProgrammer/render-markdown.nvim', + dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.nvim' }, -- if you use the mini.nvim suite + -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.icons' }, -- if you use standalone mini plugins + -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons + ---@module 'render-markdown' + ---@type render.md.UserConfig + opts = {}, +} diff --git a/lua/custom/plugins/vimtex.lua b/lua/custom/plugins/vimtex.lua index eedd81e8..2a1dbe6c 100644 --- a/lua/custom/plugins/vimtex.lua +++ b/lua/custom/plugins/vimtex.lua @@ -3,6 +3,8 @@ return { lazy = false, -- we don't want to lazy load VimTeX init = function() -- VimTeX configuration goes here, e.g. - vim.g.vimtex_view_method = 'zathura' + vim.g.vimtex_view_general_viewer = 'okular' + vim.g.vimtex_view_general_options = '--unique file:@pdf#src:@line@tex' + vim.g.tex_flavor = 'latex' end, } diff --git a/lua/custom/remap.lua b/lua/custom/remap.lua index c284588c..4e8273e9 100644 --- a/lua/custom/remap.lua +++ b/lua/custom/remap.lua @@ -8,6 +8,7 @@ vim.keymap.set('n', '', 'zz') vim.keymap.set('n', 'pv', vim.cmd.Ex, { desc = '[P]roject files [V]iewer' }) vim.keymap.set('n', 'pb', 'make', { desc = '[P]roject [B]uild' }) vim.keymap.set('n', 'pc', 'make clean', { desc = '[P]roject [C]lean' }) +vim.keymap.set('n', 'pr', 'make run', { desc = '[P]roject [R]un' }) vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' }) vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' })