add notes
This commit is contained in:
parent
b4b630245a
commit
2597126549
|
|
@ -0,0 +1,5 @@
|
|||
NOTES
|
||||
|
||||
:g/^$/d delete empty lines
|
||||
:v/\w\+/d (skip lines with one or more words) delete empty lines
|
||||
!column -t column format
|
||||
|
|
@ -55,10 +55,10 @@ return {
|
|||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
|
||||
['<C-j>'] = cmp.mapping(function(fallback)
|
||||
if luasnip.expand_or_locally_jumpable() then
|
||||
luasnip.expand_or_jump()
|
||||
elseif cmp.visible() then
|
||||
if cmp.visible() then
|
||||
cmp.confirm { select = true }
|
||||
elseif luasnip.expand_or_locally_jumpable() then
|
||||
luasnip.expand_or_jump()
|
||||
else
|
||||
cmp.complete()
|
||||
end
|
||||
|
|
|
|||
|
|
@ -59,3 +59,5 @@ function _G.toggle_diagnostics()
|
|||
end
|
||||
|
||||
vim.api.nvim_set_keymap('n', '<leader>uv', ':call v:lua.toggle_diagnostics()<CR>', { noremap = true, silent = true, desc = 'Toggle diagnostic text' })
|
||||
|
||||
vim.api.nvim_create_user_command('Notes', 'edit' .. vim.fn.stdpath 'config' .. '/doc/notes.txt', {})
|
||||
|
|
|
|||
Loading…
Reference in New Issue