diff options
| author | Simen A. W. Olsen <so@bjerk.io> | 2023-12-27 00:41:12 +0100 |
|---|---|---|
| committer | Simen A. W. Olsen <so@bjerk.io> | 2023-12-27 00:41:12 +0100 |
| commit | 891fad07f520115bb2f44c8e9ed45726a465e3a5 (patch) | |
| tree | 90224e9c4eae25b63248b7266cd0bfbc302e9bc8 /.config/nvim/lua/plugins | |
| parent | 4a2edf5a0f86ce3be0f8124cdb4dcad788f4784e (diff) | |
| download | dotfiles-891fad07f520115bb2f44c8e9ed45726a465e3a5.tar.gz dotfiles-891fad07f520115bb2f44c8e9ed45726a465e3a5.zip | |
more vim and hammerspoon
Diffstat (limited to '.config/nvim/lua/plugins')
| -rw-r--r-- | .config/nvim/lua/plugins/fugitive.lua | 3 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/harpoon.lua | 34 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/lualine.lua | 10 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/neo-tree.lua | 13 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/treesitter.lua | 14 |
5 files changed, 74 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/fugitive.lua b/.config/nvim/lua/plugins/fugitive.lua new file mode 100644 index 0000000..0b426c0 --- /dev/null +++ b/.config/nvim/lua/plugins/fugitive.lua @@ -0,0 +1,3 @@ +return { + "tpope/vim-fugitive" +} diff --git a/.config/nvim/lua/plugins/harpoon.lua b/.config/nvim/lua/plugins/harpoon.lua new file mode 100644 index 0000000..797392d --- /dev/null +++ b/.config/nvim/lua/plugins/harpoon.lua @@ -0,0 +1,34 @@ +return { + "ThePrimeagen/harpoon", + branch = "harpoon2", + requires = { + { "nvim-lua/plenary.nvim" }, + }, + config = function() + local harpoon = require("harpoon") + + -- REQUIRED + harpoon:setup() + -- REQUIRED + + vim.keymap.set("n", "<leader>a", function() + harpoon:list():append() + end) + vim.keymap.set("n", "<C-e>", function() + harpoon.ui:toggle_quick_menu(harpoon:list()) + end) + + vim.keymap.set("n", "<C-h>", function() + harpoon:list():select(1) + end) + vim.keymap.set("n", "<C-j>", function() + harpoon:list():select(2) + end) + vim.keymap.set("n", "<C-k>", function() + harpoon:list():select(3) + end) + vim.keymap.set("n", "<C-l>", function() + harpoon:list():select(4) + end) + end, +} diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua new file mode 100644 index 0000000..d42cc85 --- /dev/null +++ b/.config/nvim/lua/plugins/lualine.lua @@ -0,0 +1,10 @@ +return { + "nvim-lualine/lualine.nvim", + config = function() + require("lualine").setup({ + options = { + theme = 'nightfly' + } + }) + end +} diff --git a/.config/nvim/lua/plugins/neo-tree.lua b/.config/nvim/lua/plugins/neo-tree.lua new file mode 100644 index 0000000..904ce46 --- /dev/null +++ b/.config/nvim/lua/plugins/neo-tree.lua @@ -0,0 +1,13 @@ +return { + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", + "MunifTanjim/nui.nvim", + }, + config = function() + vim.keymap.set("n", "<C-n>", ":Neotree filesystem reveal left<CR>", {}) + vim.keymap.set("n", "<leader>bf", ":Neotree buffers reveal float<CR>", {}) + end, +} diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..04ba7d8 --- /dev/null +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,14 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + config = function() + local config = require("nvim-treesitter.configs") + config.setup({ + ensure_installed = { "lua", "javascript" }, + highlight = { enable = true }, + indent = { enable = true }, + }) + end, + }, +} |
