Polybar and many others
This commit is contained in:
parent
67fc636397
commit
c1d4107b9e
21 changed files with 334 additions and 82 deletions
dotfiles/neovim/lua/my/plugins
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue