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
parent
6c0e0b4de1
commit
054c4defa5
2
init.lua
2
init.lua
|
@ -87,7 +87,7 @@ require('lazy').setup({
|
|||
|
||||
-- Useful status updates for LSP
|
||||
-- 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!
|
||||
'folke/neodev.nvim',
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -1,9 +1,6 @@
|
|||
-- makdown-preview.nvim
|
||||
-- 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 {
|
||||
{
|
||||
"iamcco/markdown-preview.nvim",
|
||||
|
@ -12,6 +9,6 @@ return {
|
|||
'markdown'
|
||||
},
|
||||
lazy = true,
|
||||
build = "cd app && yarn install",
|
||||
build = "cd app && npm install && git reset --hard",
|
||||
},
|
||||
}
|
||||
|
|
|
@ -22,18 +22,22 @@ return {
|
|||
markdown = true,
|
||||
pandoc = true
|
||||
},
|
||||
perspective = {
|
||||
-- Ensure that paths are relative to the current file
|
||||
priority = "current"
|
||||
},
|
||||
links = {
|
||||
conceal = true,
|
||||
},
|
||||
new_file_template = {
|
||||
use_template = true,
|
||||
template = [[
|
||||
---
|
||||
title:
|
||||
date: {{ date }}
|
||||
id: {{ id }}
|
||||
tags: []
|
||||
---
|
||||
---
|
||||
title:
|
||||
date: {{ date }}
|
||||
id: {{ id }}
|
||||
tags: []
|
||||
---
|
||||
]],
|
||||
placeholders = {
|
||||
before = {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,3 +4,8 @@ Séverine
|
|||
HEG
|
||||
neovim
|
||||
lua
|
||||
InfoBiblio
|
||||
Réaménagement
|
||||
biodiversité
|
||||
hyperindustrialisés
|
||||
lacto-fermentation
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue