nvim: Format files
This commit is contained in:
parent
22cfa037df
commit
36d411dafa
2 changed files with 53 additions and 44 deletions
|
@ -136,9 +136,12 @@ cmp.setup({
|
|||
{ name = 'luasnip', keyword_length = 2 },
|
||||
{ name = 'pandoc_references' },
|
||||
{ name = 'nvim_lua' },
|
||||
{ name = 'beancount', option = {
|
||||
{
|
||||
name = 'beancount',
|
||||
option = {
|
||||
account = vim.env["HOME"] .. '/documents/records/budget/main.beancount' -- TODO implement dynamically
|
||||
} },
|
||||
}
|
||||
},
|
||||
{ name = 'calc' },
|
||||
{ name = 'path' },
|
||||
{ name = 'buffer', keyword_length = 3 },
|
||||
|
@ -150,7 +153,7 @@ cmp.setup({
|
|||
{ name = 'vCard' },
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
['<C-b>'] = cmp.mapping.scroll_docs( -4),
|
||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
["<CR>"] = cmp.mapping({
|
||||
i = function(fallback)
|
||||
|
@ -179,8 +182,8 @@ cmp.setup({
|
|||
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_prev_item()
|
||||
elseif luasnip.jumpable( -1) then
|
||||
luasnip.jump( -1)
|
||||
elseif luasnip.jumpable(-1) then
|
||||
luasnip.jump(-1)
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
|
|
|
@ -84,7 +84,8 @@ return {
|
|||
'quarto-dev/quarto-nvim',
|
||||
dependencies = {
|
||||
'jmbuhr/otter.nvim', 'neovim/nvim-lspconfig',
|
||||
'vim-pandoc/vim-pandoc-syntax'
|
||||
'vim-pandoc/vim-pandoc-syntax', 'hrsh7th/nvim-cmp',
|
||||
'nvim-treesitter/nvim-treesitter'
|
||||
},
|
||||
config = function()
|
||||
require 'quarto'.setup {
|
||||
|
@ -112,7 +113,12 @@ return {
|
|||
}, { 'micarmst/vim-spellsync', event = "VeryLazy" }, -- personal dict improvements for git sync
|
||||
{ 'folke/zen-mode.nvim', config = true, event = "VeryLazy" }, -- provide distraction free writing
|
||||
{ 'folke/twilight.nvim', event = "VeryLazy" }, -- provide even distraction free-er writing (lowlight paragraphs)
|
||||
{ 'JellyApple102/easyread.nvim', config = true, ft = writing_ft, cmd = 'EasyreadToggle' }, -- enable 'speed-reading' mode (bionic reading)
|
||||
{
|
||||
'JellyApple102/easyread.nvim',
|
||||
config = true,
|
||||
ft = writing_ft,
|
||||
cmd = 'EasyreadToggle'
|
||||
}, -- enable 'speed-reading' mode (bionic reading)
|
||||
{ 'marty-oehme/zettelkasten.nvim', ft = writing_ft, event = "VeryLazy" }, -- simple static markdown linking
|
||||
{
|
||||
"iamcco/markdown-preview.nvim", -- generate an auto-updating html preview for md files
|
||||
|
|
Loading…
Reference in a new issue