From a16bdfe930d89e1a7fb354b78d16e8742118f76d Mon Sep 17 00:00:00 2001 From: Rasmus Date: Sat, 8 Apr 2023 00:27:03 +0300 Subject: checkers --- config/.config/nvim/lua/miself/init.lua | 2 ++ config/.config/nvim/lua/miself/packer.lua | 51 +++++++++++++++++++++++++++++++ config/.config/nvim/lua/miself/remap.lua | 16 ++++++++++ 3 files changed, 69 insertions(+) create mode 100644 config/.config/nvim/lua/miself/init.lua create mode 100644 config/.config/nvim/lua/miself/packer.lua create mode 100644 config/.config/nvim/lua/miself/remap.lua (limited to 'config/.config/nvim/lua/miself') 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", "e", vim.cmd.Ex) +vim.keymap.set("i", "jj", '') + + +-- Cool Mover +vim.keymap.set("v", "J", ":m '>+1gv=gv") +vim.keymap.set("v", "K", ":m '<-2gv=gv") + + +-- Clear Search +vim.keymap.set('n', "h", ':nohlsearch') + + +-- Buffer Tabbing +vim.keymap.set('n', "", ':e #') -- cgit v1.2.3