markdown: améliore l'environnement markdown

- Installe les parsers pour markdown et markdown_inline.
- Ajoute et configure le plugins pour le colorscheme Nordic.
- Paramètre la correction orthographique pour l'anglais, le français et
  l'allemand.

Co-Authored-by: iGor milhit <igor@milhit.ch>
iGor milhit 2023-05-31 21:47:29 +02:00
parent 5c7726586f
commit 1b188ceafd
Signed by: igor
GPG Key ID: 692D97C3D0228A99
1 changed files with 18 additions and 5 deletions

View File

@ -130,11 +130,17 @@ require('lazy').setup({
},
{
-- Theme inspired by Atom
'navarasu/onedark.nvim',
-- Nordic Theme
'andersevenrud/nordic.nvim',
priority = 1000,
config = function()
vim.cmd.colorscheme 'onedark'
require('nordic').colorscheme({
underline_option = 'none',
italic = true,
italic_comments = false,
minimal_mode = false,
alternate_backgrounds = false
})
end,
},
@ -145,7 +151,7 @@ require('lazy').setup({
opts = {
options = {
icons_enabled = true,
theme = 'onedark',
theme = 'nord',
component_separators = '|',
section_separators = '/',
},
@ -205,6 +211,10 @@ require('lazy').setup({
{ import = 'custom.plugins' },
}, {})
-- Restore the site folder of .local/share/nvim/ in the runtime rewritten by
-- lazy. See https://github.com/neovim/neovim/issues/23082#issuecomment-1510812311
vim.opt.rtp:append (vim.fn.stdpath ('data') .. '/site')
-- [[ Setting options ]]
-- See `:help vim.o`
-- NOTE: You can change these options as you wish!
@ -253,6 +263,9 @@ vim.o.completeopt = 'menuone,noselect'
-- NOTE: You should make sure your terminal supports this
vim.o.termguicolors = true
-- Set the spelling for English, French and German.
vim.opt.spelllang = 'en,fr,de'
-- [[ Basic Keymaps ]]
-- Keymaps for better default experience
@ -312,7 +325,7 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de
-- See `:help nvim-treesitter`
require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim' },
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'markdown', 'markdown_inline', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim' },
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,