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>
parent
5c7726586f
commit
1b188ceafd
23
init.lua
23
init.lua
|
@ -130,11 +130,17 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
-- Theme inspired by Atom
|
-- Nordic Theme
|
||||||
'navarasu/onedark.nvim',
|
'andersevenrud/nordic.nvim',
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd.colorscheme 'onedark'
|
require('nordic').colorscheme({
|
||||||
|
underline_option = 'none',
|
||||||
|
italic = true,
|
||||||
|
italic_comments = false,
|
||||||
|
minimal_mode = false,
|
||||||
|
alternate_backgrounds = false
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -145,7 +151,7 @@ require('lazy').setup({
|
||||||
opts = {
|
opts = {
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
theme = 'onedark',
|
theme = 'nord',
|
||||||
component_separators = '|',
|
component_separators = '|',
|
||||||
section_separators = '/',
|
section_separators = '/',
|
||||||
},
|
},
|
||||||
|
@ -205,6 +211,10 @@ require('lazy').setup({
|
||||||
{ import = 'custom.plugins' },
|
{ 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 ]]
|
-- [[ Setting options ]]
|
||||||
-- See `:help vim.o`
|
-- See `:help vim.o`
|
||||||
-- NOTE: You can change these options as you wish!
|
-- 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
|
-- NOTE: You should make sure your terminal supports this
|
||||||
vim.o.termguicolors = true
|
vim.o.termguicolors = true
|
||||||
|
|
||||||
|
-- Set the spelling for English, French and German.
|
||||||
|
vim.opt.spelllang = 'en,fr,de'
|
||||||
|
|
||||||
-- [[ Basic Keymaps ]]
|
-- [[ Basic Keymaps ]]
|
||||||
|
|
||||||
-- Keymaps for better default experience
|
-- Keymaps for better default experience
|
||||||
|
@ -312,7 +325,7 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de
|
||||||
-- See `:help nvim-treesitter`
|
-- See `:help nvim-treesitter`
|
||||||
require('nvim-treesitter.configs').setup {
|
require('nvim-treesitter.configs').setup {
|
||||||
-- Add languages to be installed here that you want installed for treesitter
|
-- 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!)
|
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
|
||||||
auto_install = false,
|
auto_install = false,
|
||||||
|
|
Loading…
Reference in New Issue