From 1b188ceafdadf0605d75b74210ac62cf093edda8 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Wed, 31 May 2023 21:47:29 +0200 Subject: [PATCH] =?UTF-8?q?markdown:=20am=C3=A9liore=20l'environnement=20m?= =?UTF-8?q?arkdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- init.lua | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 448344f..cc3df40 100644 --- a/init.lua +++ b/init.lua @@ -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', '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,