update
This commit is contained in:
parent
53243a124a
commit
321055bbb0
@ -9,7 +9,8 @@ Last Modified By : Jeff Lance <email@jefflance.me>
|
|||||||
|
|
||||||
lvim is the global options object
|
lvim is the global options object
|
||||||
|
|
||||||
--]]--
|
--]]
|
||||||
|
--
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -19,7 +20,7 @@ lvim is the global options object
|
|||||||
-- lvim config
|
-- lvim config
|
||||||
lvim.log.level = "warn"
|
lvim.log.level = "warn"
|
||||||
lvim.format_on_save.enabled = true
|
lvim.format_on_save.enabled = true
|
||||||
lvim.format_on_save.pattern = { "*.py", "*.tex" }
|
lvim.format_on_save.pattern = { "*.asy", "*.lua", "*.py", "*.tex", ".toml" }
|
||||||
lvim.colorscheme = "onedark_dark"
|
lvim.colorscheme = "onedark_dark"
|
||||||
lvim.background = "dark"
|
lvim.background = "dark"
|
||||||
lvim.transparent_window = true
|
lvim.transparent_window = true
|
||||||
@ -76,8 +77,8 @@ lvim.builtin.which_key.mappings["g"] = {}
|
|||||||
|
|
||||||
lvim.builtin.which_key.mappings["H"] = {
|
lvim.builtin.which_key.mappings["H"] = {
|
||||||
name = "Header",
|
name = "Header",
|
||||||
H = { "<CMD>AddHeader<CR>" , "Add header to the file" },
|
H = { "<CMD>AddHeader<CR>", "Add header to the file" },
|
||||||
h = { "<CMD>AddMinHeader<CR>" , "Add minimal header to the file" },
|
h = { "<CMD>AddMinHeader<CR>", "Add minimal header to the file" },
|
||||||
lg = { "<CMD>AddGNULicense<CR>", "Add GPLv3 License" },
|
lg = { "<CMD>AddGNULicense<CR>", "Add GPLv3 License" },
|
||||||
lm = { "<CMD>AddMITLicense<CR>", "Add MIT License" },
|
lm = { "<CMD>AddMITLicense<CR>", "Add MIT License" },
|
||||||
}
|
}
|
||||||
@ -92,23 +93,24 @@ lvim.builtin.which_key.mappings["L"] = {
|
|||||||
lvim.builtin.which_key.mappings["n"] = {
|
lvim.builtin.which_key.mappings["n"] = {
|
||||||
name = "Notes",
|
name = "Notes",
|
||||||
n = { "<CMD>ZkNew { title = vim.fn.input('Titre: ') }<CR>", "Créer une nouvelle note" },
|
n = { "<CMD>ZkNew { title = vim.fn.input('Titre: ') }<CR>", "Créer une nouvelle note" },
|
||||||
o = { "<CMD>ZkNotes { sort = { 'modified' } }<CR>", "Ouvrir une note"},
|
o = { "<CMD>ZkNotes { sort = { 'modified' } }<CR>", "Ouvrir une note" },
|
||||||
O = { "<CMD>ZkTags<CR>", "Ouvrir les notes avec le tag sélectionné" },
|
O = { "<CMD>ZkTags<CR>", "Ouvrir les notes avec le tag sélectionné" },
|
||||||
f = { "<CMD>ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Rechercher note: ') } }<CR>", "Rechercher une note" },
|
f = { "<CMD>ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Rechercher note: ') } }<CR>",
|
||||||
|
"Rechercher une note" },
|
||||||
F = { ":'<,'>ZkMatch<CR>", "Rechercher les notes contenant la sélection" },
|
F = { ":'<,'>ZkMatch<CR>", "Rechercher les notes contenant la sélection" },
|
||||||
}
|
}
|
||||||
|
|
||||||
lvim.builtin.which_key.mappings["o"] = { "<CMD>Telescope find_files<CR>", "Open a file" }
|
lvim.builtin.which_key.mappings["o"] = { "<CMD>Telescope find_files<CR>", "Open a file" }
|
||||||
|
|
||||||
lvim.builtin.which_key.mappings["P"] = lvim.builtin.which_key.mappings["p"]
|
lvim.builtin.which_key.mappings["P"] = lvim.builtin.which_key.mappings["p"]
|
||||||
lvim.builtin.which_key.mappings["p"] = { "<CMD>Telescope projects<CR>", "Projects"}
|
lvim.builtin.which_key.mappings["p"] = { "<CMD>Telescope projects<CR>", "Projects" }
|
||||||
|
|
||||||
lvim.builtin.which_key.mappings["S"] = lvim.builtin.which_key.mappings["s"]
|
lvim.builtin.which_key.mappings["S"] = lvim.builtin.which_key.mappings["s"]
|
||||||
lvim.builtin.which_key.mappings["s"] = { "<CMD>echom 'Sourcing' <BAR> source %<CR>", "Source current file" }
|
lvim.builtin.which_key.mappings["s"] = { "<CMD>echom 'Sourcing' <BAR> source %<CR>", "Source current file" }
|
||||||
|
|
||||||
lvim.builtin.which_key.mappings["r"] = { "<CMD>Telescope oldfiles<CR>", "Open recent file" }
|
lvim.builtin.which_key.mappings["r"] = { "<CMD>Telescope oldfiles<CR>", "Open recent file" }
|
||||||
|
|
||||||
lvim.builtin.which_key.mappings["x"] = { "<CMD>w! <BAR> q!<CR>", "Save and quit"}
|
lvim.builtin.which_key.mappings["x"] = { "<CMD>w! <BAR> q!<CR>", "Save and quit" }
|
||||||
|
|
||||||
lvim.builtin.which_key.mappings[";"] = {}
|
lvim.builtin.which_key.mappings[";"] = {}
|
||||||
lvim.builtin.terminal.open_mapping = "<C-t>"
|
lvim.builtin.terminal.open_mapping = "<C-t>"
|
||||||
@ -122,6 +124,7 @@ lvim.builtin.terminal.open_mapping = "<C-t>"
|
|||||||
lvim.builtin.treesitter.ensure_installed = {
|
lvim.builtin.treesitter.ensure_installed = {
|
||||||
"bash",
|
"bash",
|
||||||
"c",
|
"c",
|
||||||
|
"java",
|
||||||
"javascript",
|
"javascript",
|
||||||
"json",
|
"json",
|
||||||
"latex",
|
"latex",
|
||||||
@ -131,7 +134,7 @@ lvim.builtin.treesitter.ensure_installed = {
|
|||||||
"tsx",
|
"tsx",
|
||||||
"css",
|
"css",
|
||||||
"rust",
|
"rust",
|
||||||
"java",
|
"toml",
|
||||||
"yaml",
|
"yaml",
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,8 +202,8 @@ lvim.plugins = {
|
|||||||
-- addheader
|
-- addheader
|
||||||
{
|
{
|
||||||
'alpertuna/vim-header',
|
'alpertuna/vim-header',
|
||||||
config = function ()
|
config = function()
|
||||||
vim.cmd ([[
|
vim.cmd([[
|
||||||
let g:header_field_author = 'Jeff Lance'
|
let g:header_field_author = 'Jeff Lance'
|
||||||
let g:header_field_author_email = 'email@jefflance.me'
|
let g:header_field_author_email = 'email@jefflance.me'
|
||||||
let g:header_auto_update_header = 1
|
let g:header_auto_update_header = 1
|
||||||
@ -226,7 +229,7 @@ lvim.plugins = {
|
|||||||
{
|
{
|
||||||
'olimorris/onedarkpro.nvim',
|
'olimorris/onedarkpro.nvim',
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function ()
|
config = function()
|
||||||
require("onedarkpro").setup({
|
require("onedarkpro").setup({
|
||||||
colors = {
|
colors = {
|
||||||
onedark = {
|
onedark = {
|
||||||
@ -265,7 +268,7 @@ lvim.plugins = {
|
|||||||
build = "cd app && npm install",
|
build = "cd app && npm install",
|
||||||
ft = "markdown",
|
ft = "markdown",
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd ([[
|
vim.cmd([[
|
||||||
let g:mkdp_auto_start = 1
|
let g:mkdp_auto_start = 1
|
||||||
]])
|
]])
|
||||||
end,
|
end,
|
||||||
@ -306,8 +309,8 @@ lvim.plugins = {
|
|||||||
config = function()
|
config = function()
|
||||||
require('neoscroll').setup({
|
require('neoscroll').setup({
|
||||||
-- All these keys will be mapped to their corresponding default scrolling animation
|
-- All these keys will be mapped to their corresponding default scrolling animation
|
||||||
mappings = {'<C-u>', '<C-d>', '<C-b>', '<C-f>',
|
mappings = { '<C-u>', '<C-d>', '<C-b>', '<C-f>',
|
||||||
'<C-y>', '<C-e>', 'zt', 'zz', 'zb'},
|
'<C-y>', '<C-e>', 'zt', 'zz', 'zb' },
|
||||||
hide_cursor = true, -- Hide cursor while scrolling
|
hide_cursor = true, -- Hide cursor while scrolling
|
||||||
stop_eof = true, -- Stop at <EOF> when scrolling downwards
|
stop_eof = true, -- Stop at <EOF> when scrolling downwards
|
||||||
use_local_scrolloff = false, -- Use the local scope of scrolloff instead of the global scope
|
use_local_scrolloff = false, -- Use the local scope of scrolloff instead of the global scope
|
||||||
@ -351,7 +354,7 @@ lvim.plugins = {
|
|||||||
"kevinhwang91/rnvimr",
|
"kevinhwang91/rnvimr",
|
||||||
cmd = "RnvimrToggle",
|
cmd = "RnvimrToggle",
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd ([[
|
vim.cmd([[
|
||||||
let g:rnvimr_draw_border = 1
|
let g:rnvimr_draw_border = 1
|
||||||
let g:rnvimr_pick_enable = 1
|
let g:rnvimr_pick_enable = 1
|
||||||
let g:rnvimr_bw_enable = 1
|
let g:rnvimr_bw_enable = 1
|
||||||
@ -362,7 +365,7 @@ lvim.plugins = {
|
|||||||
{
|
{
|
||||||
'lambdalisue/suda.vim',
|
'lambdalisue/suda.vim',
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd ([[
|
vim.cmd([[
|
||||||
let g:prompt = 'Mot de passe: '
|
let g:prompt = 'Mot de passe: '
|
||||||
let g:suda_smart_edit = 1
|
let g:suda_smart_edit = 1
|
||||||
]])
|
]])
|
||||||
@ -390,8 +393,8 @@ lvim.plugins = {
|
|||||||
-- vim-surround
|
-- vim-surround
|
||||||
{
|
{
|
||||||
'tpope/vim-surround',
|
'tpope/vim-surround',
|
||||||
config = function ()
|
config = function()
|
||||||
vim.cmd ([[
|
vim.cmd([[
|
||||||
let timeoutlen = 500
|
let timeoutlen = 500
|
||||||
]])
|
]])
|
||||||
end,
|
end,
|
||||||
@ -399,7 +402,7 @@ lvim.plugins = {
|
|||||||
-- LaTeX management needed plugins
|
-- LaTeX management needed plugins
|
||||||
{
|
{
|
||||||
"lervag/vimtex",
|
"lervag/vimtex",
|
||||||
config = function ()
|
config = function()
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
let g:vimtex_view_method = "zathura"
|
let g:vimtex_view_method = "zathura"
|
||||||
let g:vimtex_quickfix_enabled = 0
|
let g:vimtex_quickfix_enabled = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user