1
Fork 0

Polybar and many others

This commit is contained in:
Matei Adriel 2022-09-18 01:00:32 +02:00
parent 67fc636397
commit c1d4107b9e
21 changed files with 334 additions and 82 deletions
dotfiles/neovim/lua/my/plugins

View file

@ -1,13 +1,13 @@
local M = {}
function M.setup()
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
local cmp = require('cmp')
cmp.event:on(
'confirm_done',
cmp_autopairs.on_confirm_done()
)
-- local cmp_autopairs = require('nvim-autopairs.completion.cmp')
-- local cmp = require('cmp')
--
-- cmp.event:on(
-- 'confirm_done',
-- cmp_autopairs.on_confirm_done()
-- )
require('nvim-autopairs').setup({
enable_abbr = false

View file

@ -16,7 +16,9 @@ function M.on_attach(client, bufnr)
vim.api.nvim_create_autocmd("BufWritePre", {
group = vim.api.nvim_create_augroup("LspFormatting", {}),
callback = vim.lsp.buf.format
callback = function()
vim.lsp.buf.format({async = false})
end
})
end