removed vimtex, markdown, jump to end

This commit is contained in:
Ivar Fatland
2023-09-10 19:16:21 +02:00
parent 6cb95b7848
commit 4b857e358e
+2 -24
View File
@@ -38,7 +38,7 @@ local keymap = {
local TAB_WIDTH = 4 local TAB_WIDTH = 4
---@type installed_themes ---@type installed_themes
local colorscheme = 'habamax' local colorscheme = 'gruvbox'
vim.o.termguicolors = true vim.o.termguicolors = true
vim.cmd('colorscheme ' .. colorscheme) vim.cmd('colorscheme ' .. colorscheme)
@@ -84,10 +84,7 @@ local packer_bootstrap = ensure_packer()
local function packer_startup(use) local function packer_startup(use)
use 'wbthomason/packer.nvim' use 'wbthomason/packer.nvim'
-- Themes --
use 'ellisonleao/gruvbox.nvim' use 'ellisonleao/gruvbox.nvim'
use 'Mofiqul/vscode.nvim'
------------
use 'nvim-tree/nvim-tree.lua' -- File explorer. 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. 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 '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 if packer_bootstrap then --Comes after packages
require('packer').sync() require('packer').sync()
end end
vim.g.vimtex_view_method = 'zathura'
vim.g.loaded_netrw = 1 -- Disables some built in plugin vim.g.loaded_netrw = 1 -- Disables some built in plugin
vim.g.loaded_netrwPlugin = 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 types = require('cmp.types')
local snippy = require('snippy') local snippy = require('snippy')
cmp.setup{ ---ignore cmp.setup{
mapping = { mapping = {
['<Down>'] = { i = cmp.mapping.select_next_item{ behavior = types.cmp.SelectBehavior.Select } }, ['<Down>'] = { i = cmp.mapping.select_next_item{ behavior = types.cmp.SelectBehavior.Select } },
['<Up>'] = { i = cmp.mapping.select_prev_item{ behavior = types.cmp.SelectBehavior.Select } }, ['<Up>'] = { i = cmp.mapping.select_prev_item{ behavior = types.cmp.SelectBehavior.Select } },
@@ -183,14 +170,6 @@ local function packer_startup(use)
end, end,
{ "i", "s" } { "i", "s" }
), ),
[keymap.snippet_jump_to_end] = cmp.mapping(
function(_)
while snippy.can_jump(1) do
snippy.next()
end
end,
{ "i", "s" }
),
}, },
snippet = { snippet = {
expand = function(args) expand = function(args)
@@ -508,5 +487,4 @@ return require('packer').startup(packer_startup)
---| 'shine' ---| 'shine'
---| 'slate' ---| 'slate'
---| 'torte' ---| 'torte'
---| 'vscode'
---| 'zellner' ---| 'zellner'