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 <igor@milhit.ch>
parent
6f316190e5
commit
8eafbbedd7
14
init.lua
14
init.lua
|
@ -272,6 +272,13 @@ vim.o.termguicolors = true
|
||||||
-- Set the spelling for English, French and German.
|
-- Set the spelling for English, French and German.
|
||||||
vim.opt.spelllang = 'en,fr,de'
|
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 ]]
|
-- [[ Basic Keymaps ]]
|
||||||
|
|
||||||
-- Keymaps for better default experience
|
-- Keymaps for better default experience
|
||||||
|
@ -455,6 +462,13 @@ local servers = {
|
||||||
-- pyright = {},
|
-- pyright = {},
|
||||||
-- rust_analyzer = {},
|
-- rust_analyzer = {},
|
||||||
-- tsserver = {},
|
-- tsserver = {},
|
||||||
|
|
||||||
|
marksman = {
|
||||||
|
ft = {
|
||||||
|
'markdown',
|
||||||
|
'pandoc'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
lua_ls = {
|
lua_ls = {
|
||||||
Lua = {
|
Lua = {
|
||||||
|
|
|
@ -7,7 +7,10 @@ vim.cmd([[ let g:mkdp_theme = 'light' ]])
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"iamcco/markdown-preview.nvim",
|
"iamcco/markdown-preview.nvim",
|
||||||
ft = "pandoc",
|
ft = {
|
||||||
|
'pandoc',
|
||||||
|
'markdown'
|
||||||
|
},
|
||||||
lazy = true,
|
lazy = true,
|
||||||
build = "cd app && yarn install",
|
build = "cd app && yarn install",
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,10 @@ vim.keymap.set({'n','x','v'}, '<leader>tf', '<cmd>MkdnTableFormat<CR>', {desc =
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"jakewvincent/mkdnflow.nvim",
|
"jakewvincent/mkdnflow.nvim",
|
||||||
ft = 'pandoc',
|
ft = {
|
||||||
|
'pandoc',
|
||||||
|
'markdown'
|
||||||
|
},
|
||||||
lazy = true,
|
lazy = true,
|
||||||
config = function ()
|
config = function ()
|
||||||
require('mkdnflow').setup({
|
require('mkdnflow').setup({
|
||||||
|
|
|
@ -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'
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,2 @@
|
||||||
|
AoU
|
||||||
|
Floriane
|
Binary file not shown.
Loading…
Reference in New Issue