From 4b857e358ec1601d53706143cf4110aa71689422 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Sun, 10 Sep 2023 19:16:21 +0200 Subject: [PATCH] removed vimtex, markdown, jump to end --- init.lua | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/init.lua b/init.lua index c142eac..eb705f9 100644 --- a/init.lua +++ b/init.lua @@ -38,7 +38,7 @@ local keymap = { local TAB_WIDTH = 4 ---@type installed_themes -local colorscheme = 'habamax' +local colorscheme = 'gruvbox' vim.o.termguicolors = true vim.cmd('colorscheme ' .. colorscheme) @@ -84,10 +84,7 @@ local packer_bootstrap = ensure_packer() local function packer_startup(use) use 'wbthomason/packer.nvim' - -- Themes -- use 'ellisonleao/gruvbox.nvim' - use 'Mofiqul/vscode.nvim' - ------------ use 'nvim-tree/nvim-tree.lua' -- File explorer. use 'nvim-tree/nvim-web-devicons' -- Provides Pretty icons to look at. Makes the plugin above and below pretty. @@ -118,23 +115,13 @@ local function packer_startup(use) } } - use {-- Provides live preview of markdown files that follows the cursor around. - "iamcco/markdown-preview.nvim", - run = "cd app && npm install", - setup = function() vim.g.mkdp_filetypes = { "markdown" } end, - ft = { "markdown" } - } - use 'folke/zen-mode.nvim' -- For centering the text on screen giving a better editing experience in full-screen mode. - use 'lervag/vimtex' if packer_bootstrap then --Comes after packages require('packer').sync() end - vim.g.vimtex_view_method = 'zathura' - vim.g.loaded_netrw = 1 -- Disables some built in plugin vim.g.loaded_netrwPlugin = 1 -- Disables some built in plugin @@ -157,7 +144,7 @@ local function packer_startup(use) local types = require('cmp.types') local snippy = require('snippy') - cmp.setup{ ---ignore + cmp.setup{ mapping = { [''] = { i = cmp.mapping.select_next_item{ behavior = types.cmp.SelectBehavior.Select } }, [''] = { i = cmp.mapping.select_prev_item{ behavior = types.cmp.SelectBehavior.Select } }, @@ -183,14 +170,6 @@ local function packer_startup(use) end, { "i", "s" } ), - [keymap.snippet_jump_to_end] = cmp.mapping( - function(_) - while snippy.can_jump(1) do - snippy.next() - end - end, - { "i", "s" } - ), }, snippet = { expand = function(args) @@ -508,5 +487,4 @@ return require('packer').startup(packer_startup) ---| 'shine' ---| 'slate' ---| 'torte' ----| 'vscode' ---| 'zellner'