aboutsummaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins.lua
diff options
context:
space:
mode:
authorSimen A. W. Olsen <so@bjerk.io>2023-12-27 00:41:12 +0100
committerSimen A. W. Olsen <so@bjerk.io>2023-12-27 00:41:12 +0100
commit891fad07f520115bb2f44c8e9ed45726a465e3a5 (patch)
tree90224e9c4eae25b63248b7266cd0bfbc302e9bc8 /.config/nvim/lua/plugins.lua
parent4a2edf5a0f86ce3be0f8124cdb4dcad788f4784e (diff)
downloaddotfiles-891fad07f520115bb2f44c8e9ed45726a465e3a5.tar.gz
dotfiles-891fad07f520115bb2f44c8e9ed45726a465e3a5.zip
more vim and hammerspoon
Diffstat (limited to '.config/nvim/lua/plugins.lua')
-rw-r--r--.config/nvim/lua/plugins.lua110
1 files changed, 110 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua
new file mode 100644
index 0000000..39d5130
--- /dev/null
+++ b/.config/nvim/lua/plugins.lua
@@ -0,0 +1,110 @@
+return {
+ "ThePrimeagen/vim-be-good",
+ "gauteh/vim-norway",
+ {
+ "nvim-telescope/telescope.nvim",
+ tag = "0.1.5",
+ dependencies = { "nvim-lua/plenary.nvim" },
+ },
+ {
+ "rose-pine/neovim",
+ name = "rose-pine",
+ config = function()
+ vim.cmd("colorscheme rose-pine")
+ end,
+ },
+ {
+ "VonHeikemen/lsp-zero.nvim",
+ branch = "v2.x",
+ dependencies = {
+ -- LSP Support
+ { "neovim/nvim-lspconfig" }, -- Required
+ { "williamboman/mason.nvim" }, -- Optional
+ { "williamboman/mason-lspconfig.nvim" }, -- Optional
+
+ -- Autocompletion
+ { "hrsh7th/nvim-cmp", event = "InsertEnter" }, -- Required
+ { "hrsh7th/cmp-nvim-lsp" }, -- Required
+ { "L3MON4D3/LuaSnip" }, -- Required
+ },
+ },
+ "github/copilot.vim",
+ "nvim-lua/plenary.nvim",
+ {
+ "folke/which-key.nvim",
+ event = "VeryLazy",
+ init = function()
+ vim.o.timeout = true
+ vim.o.timeoutlen = 300
+ end,
+ opts = {
+ -- your configuration comes here
+ -- or leave it empty to use the default settings
+ -- refer to the configuration section below
+ },
+ },
+ {
+ "max397574/better-escape.nvim",
+ config = function()
+ require("better_escape").setup()
+ end,
+ },
+ {
+ "nvimdev/lspsaga.nvim",
+ config = function()
+ require("lspsaga").setup({})
+ end,
+ dependencies = {
+ "nvim-treesitter/nvim-treesitter", -- optional
+ "nvim-tree/nvim-web-devicons", -- optional
+ },
+ },
+ {
+ "stevearc/conform.nvim",
+ event = { "BufWritePre" },
+ cmd = { "ConformInfo" },
+ keys = {
+ {
+ -- Customize or remove this keymap to your liking
+ "<leader>f",
+ function()
+ require("conform").format({ async = true, lsp_fallback = true })
+ end,
+ mode = "",
+ desc = "Format buffer",
+ },
+ },
+ -- Everything in opts will be passed to setup()
+ opts = {
+ -- Define your formatters
+ formatters_by_ft = {
+ lua = { "stylua" },
+ python = { "isort", "black" },
+ javascript = { { "prettierd", "prettier" } },
+ markdown = { "deno_fmt", "prettierd" },
+ },
+ -- Set up format-on-save
+ format_on_save = { timeout_ms = 500, lsp_fallback = true },
+ -- Customize formatters
+ formatters = {
+ shfmt = {
+ prepend_args = { "-i", "2" },
+ },
+ },
+ },
+ init = function()
+ -- If you want the formatexpr, here is the place to set it
+ vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
+ end,
+ },
+ {
+ "nvim-neo-tree/neo-tree.nvim",
+ branch = "v3.x",
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
+ "MunifTanjim/nui.nvim",
+ -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
+ },
+ },
+}