Compare commits

..

2 Commits
quarto ... main

Author SHA1 Message Date
iGor milhit be776d2896
documentation: improve slightly the documentation
- Improves slightly the wording of the documentation.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2025-10-03 09:16:20 +02:00
iGor milhit eb48975dc3
config: add a minimal config for Markdown
- Add a minimal configuration for Markdown demonstration, with only the
  markdown preview, has it is to demonstrate the syntax.
- Uncomment the adwaita theme in the minimal config (minit.lua).
- Set another keymap to open the nvim-tree column, has the one used till
  now is conflicting with diagnosis management.

Co-Authored-by: iGor milhit <igor@milhit.ch>
2025-08-27 10:20:20 +02:00
4 changed files with 68 additions and 13 deletions

View File

@ -10,7 +10,7 @@ tags: [neovim, editor, configuration, README]
This new configuration is written with the help of: This new configuration is written with the help of:
- [`kickstart.nvim`][4]. This is a good project to kickstart a configuration, - [`kickstart.nvim`][4]. This is a good project to kickstart a configuration,
but then it takes time to understand what it makes, how to use it, and how to but then it takes time to understand what it does, how to use it, and how to
modify it. modify it.
- *[Tutoriel : configurer Neovim comme IDE/éditeur de code à partir de - *[Tutoriel : configurer Neovim comme IDE/éditeur de code à partir de
zéro][5]*. This blog post, in French, helped me a lot to understand better my zéro][5]*. This blog post, in French, helped me a lot to understand better my
@ -41,12 +41,12 @@ I'm using a virtual environment for the python provider, as the
## Plugins ## Plugins
I won't provide links for each of these plugins as they are easily to be found. I don't provide links for each of these plugins as they are easy to be found.
- `lazy.nvim` as plugins manager. - `lazy.nvim` as plugin manager.
- `plenary` to get lua functions used by many plugins. - `plenary` to get lua functions used by many plugins.
- Adwaita for the colorscheme. - Adwaita for the colorscheme.
- `which-key.nvim` to find out shortkeys. - `which-key.nvim` to find out keybindings.
- `nvim-tree` as file explorer. - `nvim-tree` as file explorer.
- `telescope.nvim` for the fuzzy finder interface. It has some specific - `telescope.nvim` for the fuzzy finder interface. It has some specific
dependencies: dependencies:

View File

@ -19,7 +19,7 @@ return {
-- <leader>e to toggle the explorer buffer -- <leader>e to toggle the explorer buffer
vim.keymap.set( vim.keymap.set(
"n", "n",
"<leader>e", "<leader>n",
"<cmd>NvimTreeFindFileToggle<CR>", "<cmd>NvimTreeFindFileToggle<CR>",
{ desc = "[nvim-tree] Toggle the file explorer" } { desc = "[nvim-tree] Toggle the file explorer" }
) )

55
md.lua 100644
View File

@ -0,0 +1,55 @@
-- TODO: Rewrite it accordingly to new configuration.
-- TODO: Also, make it actually minimal. 😉
-- Set <space> as the leader key
-- See `:help mapleader`
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Minimal options
-- Display relative line numbers
-- Except to the active line
vim.opt.relativenumber = true
vim.opt.number = true
-- Enable mouse mode
vim.opt.mouse = 'a'
-- Install package manager
-- https://github.com/folke/lazy.nvim
-- `:help lazy.nvim.txt` for more info
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system {
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
lazypath,
}
end
vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
{
"Mofiqul/adwaita.nvim",
lazy = false,
priority = 1000,
config = function()
vim.cmd('colorscheme adwaita')
end
},
{
"iamcco/markdown-preview.nvim",
ft = {
'pandoc',
'markdown',
},
lazy = true,
build = "cd app && npm install && git reset --hard",
},
})

View File

@ -34,13 +34,13 @@ vim.opt.rtp:prepend(lazypath)
require('lazy').setup({ require('lazy').setup({
-- { {
-- "Mofiqul/adwaita.nvim", "Mofiqul/adwaita.nvim",
-- lazy = false, lazy = false,
-- priority = 1000, priority = 1000,
-- config = function() config = function()
-- vim.cmd('colorscheme adwaita') vim.cmd('colorscheme adwaita')
-- end end
-- }, },
}) })