Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
|
be776d2896 | |
|
eb48975dc3 |
|
@ -10,7 +10,7 @@ tags: [neovim, editor, configuration, README]
|
||||||
This new configuration is written with the help of:
|
This new configuration is written with the help of:
|
||||||
|
|
||||||
- [`kickstart.nvim`][4]. This is a good project to kickstart a configuration,
|
- [`kickstart.nvim`][4]. This is a good project to kickstart a configuration,
|
||||||
but then it takes time to understand what it makes, how to use it, and how to
|
but then it takes time to understand what it does, how to use it, and how to
|
||||||
modify it.
|
modify it.
|
||||||
- *[Tutoriel : configurer Neovim comme IDE/éditeur de code à partir de
|
- *[Tutoriel : configurer Neovim comme IDE/éditeur de code à partir de
|
||||||
zéro][5]*. This blog post, in French, helped me a lot to understand better my
|
zéro][5]*. This blog post, in French, helped me a lot to understand better my
|
||||||
|
@ -41,12 +41,12 @@ I'm using a virtual environment for the python provider, as the
|
||||||
|
|
||||||
## Plugins
|
## Plugins
|
||||||
|
|
||||||
I won't provide links for each of these plugins as they are easily to be found.
|
I don't provide links for each of these plugins as they are easy to be found.
|
||||||
|
|
||||||
- `lazy.nvim` as plugins manager.
|
- `lazy.nvim` as plugin manager.
|
||||||
- `plenary` to get lua functions used by many plugins.
|
- `plenary` to get lua functions used by many plugins.
|
||||||
- Adwaita for the colorscheme.
|
- Adwaita for the colorscheme.
|
||||||
- `which-key.nvim` to find out shortkeys.
|
- `which-key.nvim` to find out keybindings.
|
||||||
- `nvim-tree` as file explorer.
|
- `nvim-tree` as file explorer.
|
||||||
- `telescope.nvim` for the fuzzy finder interface. It has some specific
|
- `telescope.nvim` for the fuzzy finder interface. It has some specific
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
|
@ -19,7 +19,7 @@ return {
|
||||||
-- <leader>e to toggle the explorer buffer
|
-- <leader>e to toggle the explorer buffer
|
||||||
vim.keymap.set(
|
vim.keymap.set(
|
||||||
"n",
|
"n",
|
||||||
"<leader>e",
|
"<leader>n",
|
||||||
"<cmd>NvimTreeFindFileToggle<CR>",
|
"<cmd>NvimTreeFindFileToggle<CR>",
|
||||||
{ desc = "[nvim-tree] Toggle the file explorer" }
|
{ desc = "[nvim-tree] Toggle the file explorer" }
|
||||||
)
|
)
|
||||||
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
-- TODO: Rewrite it accordingly to new configuration.
|
||||||
|
-- TODO: Also, make it actually minimal. 😉
|
||||||
|
|
||||||
|
-- Set <space> as the leader key
|
||||||
|
-- See `:help mapleader`
|
||||||
|
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
|
||||||
|
vim.g.mapleader = ' '
|
||||||
|
vim.g.maplocalleader = ' '
|
||||||
|
|
||||||
|
-- Minimal options
|
||||||
|
-- Display relative line numbers
|
||||||
|
-- Except to the active line
|
||||||
|
vim.opt.relativenumber = true
|
||||||
|
vim.opt.number = true
|
||||||
|
|
||||||
|
-- Enable mouse mode
|
||||||
|
vim.opt.mouse = 'a'
|
||||||
|
|
||||||
|
-- Install package manager
|
||||||
|
-- https://github.com/folke/lazy.nvim
|
||||||
|
-- `:help lazy.nvim.txt` for more info
|
||||||
|
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
||||||
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
|
vim.fn.system {
|
||||||
|
'git',
|
||||||
|
'clone',
|
||||||
|
'--filter=blob:none',
|
||||||
|
'https://github.com/folke/lazy.nvim.git',
|
||||||
|
'--branch=stable', -- latest stable release
|
||||||
|
lazypath,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
require('lazy').setup({
|
||||||
|
|
||||||
|
{
|
||||||
|
"Mofiqul/adwaita.nvim",
|
||||||
|
lazy = false,
|
||||||
|
priority = 1000,
|
||||||
|
config = function()
|
||||||
|
vim.cmd('colorscheme adwaita')
|
||||||
|
end
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"iamcco/markdown-preview.nvim",
|
||||||
|
ft = {
|
||||||
|
'pandoc',
|
||||||
|
'markdown',
|
||||||
|
},
|
||||||
|
lazy = true,
|
||||||
|
build = "cd app && npm install && git reset --hard",
|
||||||
|
},
|
||||||
|
|
||||||
|
})
|
16
minit.lua
16
minit.lua
|
@ -34,13 +34,13 @@ vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
require('lazy').setup({
|
require('lazy').setup({
|
||||||
|
|
||||||
-- {
|
{
|
||||||
-- "Mofiqul/adwaita.nvim",
|
"Mofiqul/adwaita.nvim",
|
||||||
-- lazy = false,
|
lazy = false,
|
||||||
-- priority = 1000,
|
priority = 1000,
|
||||||
-- config = function()
|
config = function()
|
||||||
-- vim.cmd('colorscheme adwaita')
|
vim.cmd('colorscheme adwaita')
|
||||||
-- end
|
end
|
||||||
-- },
|
},
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue