summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins')
-rw-r--r--.config/nvim/lua/plugins/autopair.lua8
-rw-r--r--.config/nvim/lua/plugins/colorscheme.lua8
-rw-r--r--.config/nvim/lua/plugins/indentbars.lua16
-rw-r--r--.config/nvim/lua/plugins/telescope.lua27
-rw-r--r--.config/nvim/lua/plugins/treesitter.lua27
-rw-r--r--.config/nvim/lua/plugins/undotree.lua6
6 files changed, 92 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/autopair.lua b/.config/nvim/lua/plugins/autopair.lua
new file mode 100644
index 0000000..40222e1
--- /dev/null
+++ b/.config/nvim/lua/plugins/autopair.lua
@@ -0,0 +1,8 @@
+return {
+ "windwp/nvim-autopairs",
+ opt = true,
+ event = "InsertEnter",
+ config = function()
+ require("nvim-autopairs").setup()
+ end
+}
diff --git a/.config/nvim/lua/plugins/colorscheme.lua b/.config/nvim/lua/plugins/colorscheme.lua
new file mode 100644
index 0000000..5fcd21a
--- /dev/null
+++ b/.config/nvim/lua/plugins/colorscheme.lua
@@ -0,0 +1,8 @@
+return {
+ "https://github.com/Mofiqul/dracula.nvim",
+ lazy=false,
+ priority=1000,
+ config = function()
+ vim.cmd.colorscheme("dracula")
+ end
+}
diff --git a/.config/nvim/lua/plugins/indentbars.lua b/.config/nvim/lua/plugins/indentbars.lua
new file mode 100644
index 0000000..0a98358
--- /dev/null
+++ b/.config/nvim/lua/plugins/indentbars.lua
@@ -0,0 +1,16 @@
+return {
+ "lukas-reineke/indent-blankline.nvim",
+ event = { "VeryLazy" },
+ config = function()
+ vim.opt.list = true
+ vim.opt.listchars = {
+ tab = "| ",
+ }
+ require("ibl").setup({
+ indent = {
+ tab_char = "|",
+ char = "|"
+ }
+ })
+ end,
+}
diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua
new file mode 100644
index 0000000..d6ddca9
--- /dev/null
+++ b/.config/nvim/lua/plugins/telescope.lua
@@ -0,0 +1,27 @@
+return {
+ 'nvim-telescope/telescope.nvim',
+ dependencies = { 'nvim-lua/plenary.nvim' },
+ config = function()
+ require('telescope').setup({
+ defaults = {
+ sorting_strategy = "ascending",
+ layout_strategy = 'bottom_pane',
+ layout_config = {
+ height = 10,
+ },
+ prompt_prefix = "",
+ selection_caret = "",
+ entry_prefix = "",
+ border = true,
+ borderchars = { "─", " ", " ", " ", "─", "─", " ", " " },
+ preview = false,
+ },
+ })
+ local builtin = require('telescope.builtin')
+ vim.keymap.set('n', '<leader>f', builtin.find_files, {})
+ vim.keymap.set('n', '<leader>r', builtin.live_grep, {})
+ vim.keymap.set('n', '<leader>b', function()
+ builtin.buffers({ sort_mru = true, ignore_current_buffer = true})
+ end)
+ end
+}
diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua
new file mode 100644
index 0000000..6ac96af
--- /dev/null
+++ b/.config/nvim/lua/plugins/treesitter.lua
@@ -0,0 +1,27 @@
+return {
+ 'nvim-treesitter/nvim-treesitter',
+ name = 'treesitter',
+ build = ':TSUpdate',
+ config = function()
+ require('nvim-treesitter.configs').setup({
+ ensure_installed = {
+ "vimdoc", "c", "lua", "cpp",
+ "bash", "css", "glsl", "nasm", "haskell",
+ "hyprlang", "zig",
+ },
+ sync_install = false,
+
+ auto_install = true,
+
+ indent = {
+ enable = true
+ },
+
+ highlight = {
+ enable = true,
+
+ additional_vim_regex_highlighting = { "markdown" },
+ },
+ })
+ end
+}
diff --git a/.config/nvim/lua/plugins/undotree.lua b/.config/nvim/lua/plugins/undotree.lua
new file mode 100644
index 0000000..1404add
--- /dev/null
+++ b/.config/nvim/lua/plugins/undotree.lua
@@ -0,0 +1,6 @@
+return {
+ "mbbill/undotree",
+ config = function()
+ vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
+ end
+}