summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2026-06-25 21:32:25 +0200
committerfilip <“filip.rabiega@gmail.com”>2026-06-25 21:32:25 +0200
commit1702915a0b471da49ba812e1c13ae87306c6068a (patch)
treeb8dfe23e3d199e15aa8b848a198ec23beffaf464
parent5be4048246def725c11499c8cff8f77da4cd47c4 (diff)
downloadlazy-plugins-master.tar.gz
lazy-plugins-master.tar.bz2
lazy-plugins-master.zip
add autopairs and lspconfigHEADmaster
-rw-r--r--autopairs.lua39
-rw-r--r--lspconfig.lua2
2 files changed, 5 insertions, 36 deletions
diff --git a/autopairs.lua b/autopairs.lua
index 97407dc..bc0f7fe 100644
--- a/autopairs.lua
+++ b/autopairs.lua
@@ -1,42 +1,11 @@
return {
- -- nvim-autopairs: auto close brackets, quotes
{
"windwp/nvim-autopairs",
- event = "InsertEnter", -- lazy-load when entering insert mode
+ event = "InsertEnter", -- lazy-load
config = function()
- require("nvim-autopairs").setup({})
+ require("nvim-autopairs").setup({
+ disable_filetype = { "tex" }, -- completely disable in LaTeX files
+ })
end,
},
-
- -- nvim-cmp: autocompletion engine
- -- {
- -- "hrsh7th/nvim-cmp",
- -- event = "InsertEnter",
- -- dependencies = {
- -- "hrsh7th/cmp-nvim-lsp",
- -- "hrsh7th/cmp-buffer",
- -- "hrsh7th/cmp-path",
- -- "saadparwaiz1/cmp_luasnip",
- -- "L3MON4D3/LuaSnip",
- -- },
- -- config = function()
- -- local cmp = require("cmp")
- -- local luasnip = require("luasnip")
- -- cmp.setup({
- -- snippet = { expand = function(args) luasnip.lsp_expand(args.body) end },
- -- mapping = cmp.mapping.preset.insert({
- -- ["<C-n>"] = cmp.mapping.select_next_item(),
- -- ["<C-p>"] = cmp.mapping.select_prev_item(),
- -- ["<C-y>"] = cmp.mapping.confirm({ select = true }),
- -- ["<C-Space>"] = cmp.mapping.complete(),
- -- }),
- -- sources = cmp.config.sources({
- -- { name = "nvim_lsp" },
- -- { name = "buffer" },
- -- { name = "path" },
- -- { name = "luasnip" },
- -- }),
- -- })
- -- end,
- -- },
}
diff --git a/lspconfig.lua b/lspconfig.lua
index 9827b2d..0277304 100644
--- a/lspconfig.lua
+++ b/lspconfig.lua
@@ -32,7 +32,7 @@ return {
"--clang-tidy",
"--header-insertion=never",
"--completion-style=detailed",
- "--function-arg-placeholders",
+ "--function-arg-placeholders=true",
},
})