From 08a762f3b261226c8c4cc70639bc53bafb4b5f1a Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Wed, 7 Jun 2023 11:30:31 +0200 Subject: [PATCH] global: improve the configuration - Adds the rainbow_csv plugin to improve CSV file support. - Sets mutliple filetypes for markdown plugins (`pandoc`, `markdown`). - `mkdnflow`. - `markdownpreview`. - `marksman` language server (but it doesn't work for pandoc filetype). - Sets folding level to 1 to fold from the level 2 headings. - Sets the python virtualenv as python3 provider. - Updates the English dictionnaries. Co-Authored-by: iGor milhit --- init.lua | 14 ++++++++++++++ lua/custom/plugins/markdownpreview.lua | 5 ++++- lua/custom/plugins/mkdnflow.lua | 5 ++++- lua/custom/plugins/rainbow-csv.lua | 21 +++++++++++++++++++++ spell/en.utf-8.add | 2 ++ spell/en.utf-8.add.spl | Bin 0 -> 58 bytes 6 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 lua/custom/plugins/rainbow-csv.lua create mode 100644 spell/en.utf-8.add create mode 100644 spell/en.utf-8.add.spl diff --git a/init.lua b/init.lua index 378d37c..4a6e294 100644 --- a/init.lua +++ b/init.lua @@ -272,6 +272,13 @@ vim.o.termguicolors = true -- Set the spelling for English, French and German. vim.opt.spelllang = 'en,fr,de' +-- Set the folding level to 1, to allow level 2 headers to be seen. +vim.opt.foldlevel = 1 + +-- Set a python virtualenv as python3 provider. +-- `vim.env.HOME` uses the neovim API to fetch the $HOME env. +vim.g.python3_host_prog = 'vim.env.HOME/.pyenv/versions/neovim3/bin/python' + -- [[ Basic Keymaps ]] -- Keymaps for better default experience @@ -455,6 +462,13 @@ local servers = { -- pyright = {}, -- rust_analyzer = {}, -- tsserver = {}, + + marksman = { + ft = { + 'markdown', + 'pandoc' + } + }, lua_ls = { Lua = { diff --git a/lua/custom/plugins/markdownpreview.lua b/lua/custom/plugins/markdownpreview.lua index 384fa10..c86b5d1 100644 --- a/lua/custom/plugins/markdownpreview.lua +++ b/lua/custom/plugins/markdownpreview.lua @@ -7,7 +7,10 @@ vim.cmd([[ let g:mkdp_theme = 'light' ]]) return { { "iamcco/markdown-preview.nvim", - ft = "pandoc", + ft = { + 'pandoc', + 'markdown' + }, lazy = true, build = "cd app && yarn install", }, diff --git a/lua/custom/plugins/mkdnflow.lua b/lua/custom/plugins/mkdnflow.lua index 1bc50e8..95bcb8c 100644 --- a/lua/custom/plugins/mkdnflow.lua +++ b/lua/custom/plugins/mkdnflow.lua @@ -9,7 +9,10 @@ vim.keymap.set({'n','x','v'}, 'tf', 'MkdnTableFormat', {desc = return { { "jakewvincent/mkdnflow.nvim", - ft = 'pandoc', + ft = { + 'pandoc', + 'markdown' + }, lazy = true, config = function () require('mkdnflow').setup({ diff --git a/lua/custom/plugins/rainbow-csv.lua b/lua/custom/plugins/rainbow-csv.lua new file mode 100644 index 0000000..e283dcf --- /dev/null +++ b/lua/custom/plugins/rainbow-csv.lua @@ -0,0 +1,21 @@ +-- In order to manage CSV files + +return { + 'cameron-wags/rainbow_csv.nvim', + config = true, + ft = { + 'csv', + 'tsv', + 'csv_semicolon', + 'csv_whitespace', + 'csv_pipe', + 'rfc_csv', + 'rfc_semicolon' + }, + cmd = { + 'RainbowDelim', + 'RainbowDelimSimple', + 'RainbowDelimQuoted', + 'RainbowMultiDelim' + } +} diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add new file mode 100644 index 0000000..f283b05 --- /dev/null +++ b/spell/en.utf-8.add @@ -0,0 +1,2 @@ +AoU +Floriane diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl new file mode 100644 index 0000000000000000000000000000000000000000..5405ebaeed291dfea285da903f99b5f77517c665 GIT binary patch literal 58 zcmWIZ^erw(&B-zP&%nSS$&{GJn9o?s$kf1?17s92W-=x+<}s!+GBE+AIT#&*f}xB+ HCJ+Dsm7EHY literal 0 HcmV?d00001