plugins: improve configuration, install plugins

- Fixes the markdown preview node package installation.
- Removes the markdown preview theme configuration.
- Adds the ToggleTerm plugin that allows to improve the managment of
  terminal buffers and configures it.
- Ensures to use the legacy tag for the fidget plugin, as it will be
  under active development and rewritting.
- Installs Grammalect, which is a French language checker. This plugin
  requires the python package `Grammalecte` that provide
  `grammalecte-cli` and `grammalecte-server`.
- Sets, in the mkdnflow configuration, the `perspective.priority` to
  `current` to get the follow link feature behaves as I need, relative
  to the current buffer.
- Fixes, in the mkdnflow configuration, the new file template to avoid a
  blank column at the begining (results in an invalid YAML syntax).

Co-Authored-by: iGor milhit <igor.milhit@unige.ch>
main
iGor milhit 2023-06-16 15:43:27 +02:00
parent 6c0e0b4de1
commit 054c4defa5
Signed by: igor
GPG Key ID: 692D97C3D0228A99
7 changed files with 47 additions and 11 deletions

View File

@ -87,7 +87,7 @@ require('lazy').setup({
-- Useful status updates for LSP -- Useful status updates for LSP
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})` -- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
{ 'j-hui/fidget.nvim', opts = {} }, { 'j-hui/fidget.nvim', tag = "legacy", opts = {} },
-- Additional lua configuration, makes nvim stuff amazing! -- Additional lua configuration, makes nvim stuff amazing!
'folke/neodev.nvim', 'folke/neodev.nvim',

View File

@ -0,0 +1,14 @@
-- Plugin to get Grammalecte checks in (neo)vim.
-- Set the path to the grammalecte-cli executable
vim.cmd([[ let g:grammalecte_cli_py = "/usr/bin/grammalecte-cli" ]])
return {
"dpelle/vim-Grammalecte",
ft = {
"pandoc",
"markdown",
"text",
"gitcommit"
}
}

View File

@ -1,9 +1,6 @@
-- makdown-preview.nvim -- makdown-preview.nvim
-- installed with code found at https://github.com/iamcco/markdown-preview.nvim/issues/558#issuecomment-1514701537 -- installed with code found at https://github.com/iamcco/markdown-preview.nvim/issues/558#issuecomment-1514701537
-- Force the light theme, no matter the system option is.
vim.cmd([[ let g:mkdp_theme = 'light' ]])
return { return {
{ {
"iamcco/markdown-preview.nvim", "iamcco/markdown-preview.nvim",
@ -12,6 +9,6 @@ return {
'markdown' 'markdown'
}, },
lazy = true, lazy = true,
build = "cd app && yarn install", build = "cd app && npm install && git reset --hard",
}, },
} }

View File

@ -22,18 +22,22 @@ return {
markdown = true, markdown = true,
pandoc = true pandoc = true
}, },
perspective = {
-- Ensure that paths are relative to the current file
priority = "current"
},
links = { links = {
conceal = true, conceal = true,
}, },
new_file_template = { new_file_template = {
use_template = true, use_template = true,
template = [[ template = [[
--- ---
title: title:
date: {{ date }} date: {{ date }}
id: {{ id }} id: {{ id }}
tags: [] tags: []
--- ---
]], ]],
placeholders = { placeholders = {
before = { before = {

View File

@ -0,0 +1,16 @@
-- A neovim lua plugin to help easily manage multiple terminal windows
-- https://github.com/akinsho/toggleterm.nvim
-- Set ZSH as shell to get it in a terminal buffer
vim.opt.shell = "/usr/bin/zsh"
return {
{
'akinsho/toggleterm.nvim',
version = "*",
opts = {
-- Avoid terminal to be darker than the Nord colorscheme
shade_terminals = false
}
}
}

View File

@ -4,3 +4,8 @@ Séverine
HEG HEG
neovim neovim
lua lua
InfoBiblio
Réaménagement
biodiversité
hyperindustrialisés
lacto-fermentation

Binary file not shown.