Compare commits
3 Commits
a50b7b4b55
...
e16ea4e3dc
Author | SHA1 | Date |
---|---|---|
iGor milhit | e16ea4e3dc | |
iGor milhit | 6aaf345a8a | |
iGor milhit | 3e3d308717 |
|
@ -23,6 +23,10 @@ This new configuration is written with the help of:
|
||||||
- A [nerd font][3].
|
- A [nerd font][3].
|
||||||
- [`vscode-langservers-extracted`][6]. It's mandatory for the JSON LSP.
|
- [`vscode-langservers-extracted`][6]. It's mandatory for the JSON LSP.
|
||||||
|
|
||||||
|
## Python provider
|
||||||
|
|
||||||
|
I'm using a virtual environment for the python provider, as the
|
||||||
|
[documentation][7], using `pyenv`.
|
||||||
|
|
||||||
## Structure
|
## Structure
|
||||||
|
|
||||||
|
@ -107,3 +111,4 @@ I won't provide links for each of these plugins as they are easily to be found.
|
||||||
[4]: https://github.com/nvim-lua/kickstart.nvim
|
[4]: https://github.com/nvim-lua/kickstart.nvim
|
||||||
[5]: https://vincent.jousse.org/blog/fr/tech/configurer-neovim-comme-ide-a-partir-de-zero-tutoriel-guide
|
[5]: https://vincent.jousse.org/blog/fr/tech/configurer-neovim-comme-ide-a-partir-de-zero-tutoriel-guide
|
||||||
[6]: https://github.com/hrsh7th/vscode-langservers-extracted
|
[6]: https://github.com/hrsh7th/vscode-langservers-extracted
|
||||||
|
[7]: https://neovim.io/doc/user/provider.html#python-virtualenv
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
-- Load all module files
|
-- Load all module files
|
||||||
|
require("core.python-provider")
|
||||||
require("core.keymaps")
|
require("core.keymaps")
|
||||||
require("core.options")
|
require("core.options")
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
-- Set a virtualenv as python provider
|
||||||
|
-- https://neovim.io/doc/user/provider.html#python-virtualenv
|
||||||
|
|
||||||
|
vim.g.python3_host_prog = "/home/igor/.pyenv/versions/py-nvim3.10/bin/python"
|
|
@ -0,0 +1,25 @@
|
||||||
|
-- Install and configure zotcite
|
||||||
|
-- https://github.com/jalvesaq/zotcite
|
||||||
|
|
||||||
|
return {
|
||||||
|
"jalvesaq/zotcite",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
-- Add completion for zotcite
|
||||||
|
"jalvesaq/cmp-zotcite",
|
||||||
|
},
|
||||||
|
config = function ()
|
||||||
|
require("zotcite").setup({
|
||||||
|
-- waiting for zotcite options
|
||||||
|
})
|
||||||
|
require("cmp_zotcite").setup({
|
||||||
|
-- Add the pandoc filetype
|
||||||
|
filetypes = {
|
||||||
|
"pandoc",
|
||||||
|
"markdown",
|
||||||
|
"rmd",
|
||||||
|
"quarto",
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
|
@ -107,6 +107,7 @@ return {
|
||||||
},
|
},
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
{ name = "emoji" },
|
{ name = "emoji" },
|
||||||
|
{ name = "cmp_zotcite"} -- zotcite (plugins/markdown/zotcite.lua)
|
||||||
}),
|
}),
|
||||||
|
|
||||||
formatting = {
|
formatting = {
|
||||||
|
|
|
@ -45,7 +45,9 @@ return {
|
||||||
-- Enable color syntax
|
-- Enable color syntax
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
disable = { "markdown" },
|
disable = {
|
||||||
|
"markdown"
|
||||||
|
},
|
||||||
},
|
},
|
||||||
-- Enable better indentation management
|
-- Enable better indentation management
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
|
@ -64,6 +66,9 @@ return {
|
||||||
"yaml",
|
"yaml",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Empty option, to avoid warning
|
||||||
|
modules = {},
|
||||||
|
|
||||||
-- List of parsers to ignore installing
|
-- List of parsers to ignore installing
|
||||||
ignore_install = {
|
ignore_install = {
|
||||||
"markdown",
|
"markdown",
|
||||||
|
@ -133,5 +138,3 @@ return {
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue