nvim/lua/cosmic/core/commands.lua
Matthew Leong daaafc1f8d
Lazy.nvim (#88)
* feat: init lazy.nvim

* refactor: easy plugin init

* feat: user defined plugins

* refactor: clean up user config

* refactor: clean up lsp plugins

* fix: lsp signature

* fix: null ls user config

* feat: replace commands

* feat: optimize lazy loading

* fix: lsp_signature working

* fix: documentation hover/sig help

* fix: autopairs

* feat: clean up luasnips

* fix auto complete

* moar laziness

* feat: add markdown_inline to ensured_installed for TS

* clean up

* clean up auto-session
2022-12-29 08:34:17 -08:00

12 lines
408 B
Lua

local augroup_name = 'CosmicNvim'
local group = vim.api.nvim_create_augroup(augroup_name, { clear = true })
vim.api.nvim_create_autocmd('VimResized', {
command = 'tabdo wincmd =',
group = group,
})
vim.cmd([[
command! CosmicUpdate lua require('cosmic.utils.cosmic').update()
command! CosmicSync lua require('cosmic.utils.cosmic').sync_plugins(true)
command! LspFormat lua vim.lsp.buf.format()
]])