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>
parent
7c52a10de3
commit
13e1faf10c
2
init.lua
2
init.lua
|
@ -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',
|
||||||
|
|
|
@ -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
|
-- 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",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,10 @@ 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,
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
|
HEG
|
||||||
neovim
|
neovim
|
||||||
lua
|
lua
|
||||||
|
InfoBiblio
|
||||||
|
Réaménagement
|
||||||
|
biodiversité
|
||||||
|
hyperindustrialisés
|
||||||
|
lacto-fermentation
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue