summaryrefslogtreecommitdiff
path: root/config/.config/nvim/lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/.config/nvim/lua')
-rw-r--r--config/.config/nvim/lua/miself/init.lua2
-rw-r--r--config/.config/nvim/lua/miself/packer.lua51
-rw-r--r--config/.config/nvim/lua/miself/remap.lua16
3 files changed, 69 insertions, 0 deletions
diff --git a/config/.config/nvim/lua/miself/init.lua b/config/.config/nvim/lua/miself/init.lua
new file mode 100644
index 0000000..faf60d5
--- /dev/null
+++ b/config/.config/nvim/lua/miself/init.lua
@@ -0,0 +1,2 @@
+require("miself.remap")
+require("miself.packer")
diff --git a/config/.config/nvim/lua/miself/packer.lua b/config/.config/nvim/lua/miself/packer.lua
new file mode 100644
index 0000000..2f8217b
--- /dev/null
+++ b/config/.config/nvim/lua/miself/packer.lua
@@ -0,0 +1,51 @@
+-- Only required if you have packer configured as `opt`
+vim.cmd [[packadd packer.nvim]]
+
+return require('packer').startup(function(use)
+ -- Packer can manage itself
+ use 'wbthomason/packer.nvim'
+
+
+ -- Telescope
+ use {
+ 'nvim-telescope/telescope.nvim', tag = '0.1.1',
+ -- or , branch = '0.1.x',
+ requires = { {'nvim-lua/plenary.nvim'} }
+ }
+
+
+
+ -- Colors
+ use({ 'rose-pine/neovim', as = 'rose-pine' })
+ use({ "catppuccin/nvim", as = "catppuccin" })
+
+ use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
+
+
+
+ -- LSP
+ use {
+ 'VonHeikemen/lsp-zero.nvim',
+ branch = 'v1.x',
+ requires = {
+ -- LSP Support
+ {'neovim/nvim-lspconfig'}, -- Required
+ {'williamboman/mason.nvim'}, -- Optional
+ {'williamboman/mason-lspconfig.nvim'}, -- Optional
+
+ -- Autocompletion
+ {'hrsh7th/nvim-cmp'}, -- Required
+ {'hrsh7th/cmp-nvim-lsp'}, -- Required
+ {'hrsh7th/cmp-buffer'}, -- Optional
+ {'hrsh7th/cmp-path'}, -- Optional
+ {'saadparwaiz1/cmp_luasnip'}, -- Optional
+ {'hrsh7th/cmp-nvim-lua'}, -- Optional
+
+ -- Snippets
+ {'L3MON4D3/LuaSnip'}, -- Required
+ {'rafamadriz/friendly-snippets'}, -- Optional
+ }
+ }
+
+
+end)
diff --git a/config/.config/nvim/lua/miself/remap.lua b/config/.config/nvim/lua/miself/remap.lua
new file mode 100644
index 0000000..6682c49
--- /dev/null
+++ b/config/.config/nvim/lua/miself/remap.lua
@@ -0,0 +1,16 @@
+vim.g.mapleader = " "
+vim.keymap.set("n", "<leader>e", vim.cmd.Ex)
+vim.keymap.set("i", "jj", '<Esc>')
+
+
+-- Cool Mover
+vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
+vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
+
+
+-- Clear Search
+vim.keymap.set('n', "<leader>h", ':nohlsearch<CR>')
+
+
+-- Buffer Tabbing
+vim.keymap.set('n', "<S-Tab>", ':e #<CR>')