Compare commits

...

3 Commits

Author SHA1 Message Date
afc8abfe8a install git ts-parsers support 2024-03-19 13:36:32 +01:00
ef2d450b7c install markdown 'support' 2024-03-19 13:36:17 +01:00
a71cb4f215 buffer switching keymaps 2024-03-19 13:32:42 +01:00
3 changed files with 29 additions and 1 deletions

View File

@ -45,6 +45,9 @@ vim.keymap.set('n', '<leader>gs', '<cmd>Gedit :<cr>', { desc = '[G]it [S]tatus'
-- Delete current buffer without closing window
vim.keymap.set('n', '<leader>bd', '<cmd>bp<bar>sp<bar>bn<bar>bd<cr>', { desc = '[B]uffer [D]elete' })
-- Switch to between buffers
vim.keymap.set('n', '<leader>bp', '<cmd>bp<cr>', { desc = '[B]uffer [P]revious' })
vim.keymap.set('n', '<leader>bn', '<cmd>bn<cr>', { desc = '[B]uffer [N]ext' })
-- [[ Basic Autocommands ]]
-- See `:help lua-guide-autocommands`

View File

@ -9,7 +9,20 @@ return {
},
build = ':TSUpdate',
opts = {
ensure_installed = { 'lua', 'python', 'rust', 'javascript', 'typescript', 'vimdoc', 'vim', 'svelte', 'c_sharp' },
ensure_installed = {
'lua',
'python',
'rust',
'javascript',
'typescript',
'vimdoc',
'vim',
'svelte',
'c_sharp',
'markdown',
'gitcommit',
'gitignore',
},
-- Autoinstall languages that are not installed
auto_install = true,
-- Enable autotags and -rename
@ -22,6 +35,7 @@ return {
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
-- If you are experiencing weird indenting issues, add the language to
-- the list of additional_vim_regex_highlighting and disabled languages for indent.
disable = { 'markdown' },
additional_vim_regex_highlighting = { 'ruby' },
},
indent = { enable = true, disable = { 'ruby' } },

View File

@ -26,6 +26,17 @@ require('lazy').setup({
-- Processing-Java
'sophacles/vim-processing',
-- Markdown preview plugin
{
'iamcco/markdown-preview.nvim',
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
build = 'cd app; npm install',
init = function()
vim.g.mkdp_filetypes = { 'markdown' }
end,
ft = { 'markdown' },
},
-- Smooth scroll plugin and keymaps
{
'karb94/neoscroll.nvim',