aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/plugins/init.lua8
-rw-r--r--lua/plugins/opts/lspconfig.lua2
-rw-r--r--lua/plugins/opts/treesitter.lua3
-rw-r--r--stylua.toml4
4 files changed, 13 insertions, 4 deletions
diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua
index 3a2fc26..e643c37 100644
--- a/lua/plugins/init.lua
+++ b/lua/plugins/init.lua
@@ -74,8 +74,12 @@ require("lazy").setup({
require("nvim-autopairs").setup(opts)
-- setup cmp for autopairs
- local cmp_autopairs = require("nvim-autopairs.completion.cmp")
- require("cmp").event:on("confirm_done", cmp_autopairs.on_confirm_done())
+ local cmp_autopairs =
+ require("nvim-autopairs.completion.cmp")
+ require("cmp").event:on(
+ "confirm_done",
+ cmp_autopairs.on_confirm_done()
+ )
end,
},
-- cmp sources plugins
diff --git a/lua/plugins/opts/lspconfig.lua b/lua/plugins/opts/lspconfig.lua
index 583cac1..c22dfc7 100644
--- a/lua/plugins/opts/lspconfig.lua
+++ b/lua/plugins/opts/lspconfig.lua
@@ -1,5 +1,5 @@
-local lspconfig = require("lspconfig")
local lsp_zero = require("lsp-zero")
+local lspconfig = require("lspconfig")
lsp_zero.extend_lspconfig()
lsp_zero.set_sign_icons({
diff --git a/lua/plugins/opts/treesitter.lua b/lua/plugins/opts/treesitter.lua
index ebcdf62..b9ec31a 100644
--- a/lua/plugins/opts/treesitter.lua
+++ b/lua/plugins/opts/treesitter.lua
@@ -27,7 +27,8 @@ return {
-- disable for > 100 KB files
disable = function(_, buf)
local max_filesize = 100 * 1024 -- 100 KB
- local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
+ local ok, stats =
+ pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
if ok and stats and stats.size > max_filesize then
return true
end
diff --git a/stylua.toml b/stylua.toml
new file mode 100644
index 0000000..da5e588
--- /dev/null
+++ b/stylua.toml
@@ -0,0 +1,4 @@
+column_width = 80
+
+[sort_requires]
+enabled = true