up
This commit is contained in:
9
lazyvim.json
Normal file
9
lazyvim.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extras": [
|
||||
|
||||
],
|
||||
"news": {
|
||||
"NEWS.md": "10960"
|
||||
},
|
||||
"version": 8
|
||||
}
|
||||
@@ -17,6 +17,9 @@ wk.add {
|
||||
{
|
||||
mode = { 'n', 'v' },
|
||||
{ '<leader>b', group = '[b]uffers' },
|
||||
{ '<leader>ba', group = '[a]dd to buffer' },
|
||||
{ '<leader>bal', group = '[l]icence' },
|
||||
|
||||
{ '<leader>e', group = '[e]xplore' },
|
||||
{ '<leader>g', group = '[g]it hunk' },
|
||||
{ '<leader>o', group = '[o]bsidian' },
|
||||
|
||||
@@ -10,6 +10,11 @@
|
||||
--
|
||||
-- NOTE: Here is where you install your plugins.
|
||||
require('lazy').setup({
|
||||
-- spec = {
|
||||
-- -- add LazyVim and import its plugins
|
||||
-- { 'LazyVim/LazyVim' },
|
||||
-- },
|
||||
|
||||
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
||||
'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically
|
||||
|
||||
@@ -33,9 +38,10 @@ require('lazy').setup({
|
||||
require 'kickstart.plugins.quarto',
|
||||
require 'kickstart.plugins.obsidian',
|
||||
require 'kickstart.plugins.markdown',
|
||||
require 'kickstart.plugins.latex',
|
||||
|
||||
-- Themes
|
||||
require 'kickstart.plugins.themes',
|
||||
-- Colorschemes
|
||||
require 'kickstart.plugins.colorschemes',
|
||||
|
||||
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
||||
-- This is the easiest way to modularize your config.
|
||||
|
||||
@@ -28,7 +28,6 @@ return {
|
||||
vim.api.nvim_set_hl(0, 'MoltenOutputBorderSuccess', { link = 'MoonflyBlue' })
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
-- Like many other themes, this one has different styles, and you could load
|
||||
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
||||
@@ -57,7 +56,7 @@ return {
|
||||
require('onedark').setup {
|
||||
style = 'darker',
|
||||
}
|
||||
-- require('onedark').load()
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -4,6 +4,24 @@
|
||||
return {
|
||||
{
|
||||
'attilarepka/header.nvim',
|
||||
keys = {
|
||||
{ '<leader>bah', '<CMD>AddHeader<CR>', desc = 'add [h]eader' },
|
||||
{ '<leader>balm', '<CMD>AddMITLicence<CR>', desc = 'add [m]it licence' },
|
||||
{ '<leader>bala', '<CMD>AddApacheLicence<CR>', desc = 'add [a]pache licence' },
|
||||
{ '<leader>balg', '<CMD>AddGNULicence<CR>', desc = 'add [g]nu GP License v3' },
|
||||
{ '<leader>balA', '<CMD>AddAGPLicence<CR>', desc = 'add GNU [A]ffero GP License v3' },
|
||||
{ '<leader>ball', '<CMD>AddLGPLLicence<CR>', desc = 'add GNU [L]esser GP License' },
|
||||
{ '<leader>balM', '<CMD>AddMPLLicence<CR>', desc = 'add [M]ozilla Public License' },
|
||||
{ '<leader>balw', '<CMD>AddWTFPLLicence<CR>', desc = 'add [W]TFPL License' },
|
||||
{ '<leader>balz', '<CMD>AddZlibLicence<CR>', desc = 'add [z]lib License' },
|
||||
},
|
||||
config = true,
|
||||
init = function()
|
||||
vim.g.header_field_author = 'Jeff Lance'
|
||||
vim.g.header_field_author_email = 'email@jefflance.me'
|
||||
vim.g.header_auto_update_header = 1
|
||||
vim.g.header_field_filename_path = 1
|
||||
vim.g.header_field_timestamp_format = '%d.%m.%Y %H:%M:%S'
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
19
lua/kickstart/plugins/latex.lua
Normal file
19
lua/kickstart/plugins/latex.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
-- latex
|
||||
--
|
||||
--
|
||||
|
||||
vim.g.maplocalleader = ' ' -- we define a leader available only from tex files
|
||||
|
||||
return {
|
||||
{
|
||||
'lervag/vimtex',
|
||||
lazy = false, -- lazy-loading will disable inverse search
|
||||
config = function()
|
||||
vim.g.vimtex_mappings_disable = { ['n'] = { 'K' } } -- disable `K` as it conflicts with LSP hover
|
||||
vim.g.vimtex_quickfix_method = vim.fn.executable 'pplatex' == 1 and 'pplatex' or 'latexlog'
|
||||
end,
|
||||
keys = {
|
||||
{ '<localLeader>l', '', desc = 'LaTeX', ft = 'tex' },
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -236,6 +236,11 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
texlab = {
|
||||
keys = {
|
||||
{ '<Leader>K', '<plug>(vimtex-doc-package)', desc = 'Vimtex Docs', silent = true },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
-- Ensure the servers and tools above are installed
|
||||
|
||||
Reference in New Issue
Block a user