diff options
Diffstat (limited to '.config/nvim/lua/plugins/init.lua')
-rw-r--r-- | .config/nvim/lua/plugins/init.lua | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua new file mode 100644 index 0000000..751f159 --- /dev/null +++ b/.config/nvim/lua/plugins/init.lua @@ -0,0 +1,80 @@ +return { + { + "stevearc/conform.nvim", + -- event = 'BufWritePre', -- uncomment for format on save + opts = require "configs.conform", + }, + + { + "github/copilot.vim", + lazy = false, + }, + + -- These are some examples, uncomment them if you want to see them work! + { + "neovim/nvim-lspconfig", + config = function() + require "configs.lspconfig" + end, + }, + + { + "Pocco81/auto-save.nvim", + lazy = false, + config = function () + require("auto-save").setup { + -- your config goes here + -- or just leave it empty + enabled = true, + execution_message = { + message = function () + return ("AutoSave: saved at " .. vim.fn.strftime("%H:%M:%S")) + end, + dim = 0.18, + cleaning_interval = 1250, + }, + trigger_events = {"InsertLeave", "TextChanged"}, + + condition = function (buf) + local fn = vim.fn + local utils = require("auto-save.utils.data") + + if + fn.getbufvar(buf, "&modifiable") == 1 and + utils.not_in(fn.getbufvar(buf, "&filetype"), {}) then + return true -- met conditions, can save + end + return false + + end, + write_all_buffers = false, + debounce_delay = 135, + callbacks = { + enabling = nil, + disabling = nil, + before_asserting_save = nil, + before_saving = nil, + } + } + end, + }, + + { + "andweeb/presence.nvim", + opts = { + ensure_installed = { + "vim", "lua", "vimdoc" + }, + }, + }, + + -- { + -- "nvim-treesitter/nvim-treesitter", + -- opts = { + -- ensure_installed = { + -- "vim", "lua", "vimdoc", + -- "html", "css" + -- }, + -- }, + -- }, +} |