|
| 1 | +local map = vim.api.nvim_set_keymap |
| 2 | +vim.g.mapleader = ' ' -- 'vim.g' sets global variables |
| 3 | +Options = { noremap = false, silent = true } |
| 4 | + |
| 5 | +require("plugins") |
| 6 | + |
| 7 | +--fancy-Stuff |
| 8 | + require('presence_config') |
| 9 | + require('dracula_config') |
| 10 | + |
| 11 | +--lualine |
| 12 | + require("lualine_config") |
| 13 | + |
| 14 | +--Filetree |
| 15 | + require("nvimtree_config") |
| 16 | + map('n', '<C-n>', ':NvimTreeToggle<cr>', Options) |
| 17 | + |
| 18 | +--Bufferline |
| 19 | + require("bufferline_config") |
| 20 | + map('n', '<C-h>', ':BufferLineCyclePrev<cr>', Options) |
| 21 | + map('n', '<C-l>', ':BufferLineCycleNext<cr>', Options) |
| 22 | + map('n', '<A-h>', ':BufferLineMovePrev<cr>', Options) |
| 23 | + map('n', '<A-l>', ':BufferLineMoveNext<cr>', Options) |
| 24 | + |
| 25 | +--Nerd-Stuff |
| 26 | + map('n', '##', '<plug>NERDCommenterToggle', Options) |
| 27 | + |
| 28 | +--Native-Shit |
| 29 | + map('n', '<Leader>q', ':qa!<cr>', Options) |
| 30 | + map('n', '<Leader>x', ':xa!<cr>', Options) |
| 31 | + map('n', '<Leader>w', ':wa!<cr>', Options) |
| 32 | + map('n', '<C-w>', ':bdelete!<cr>', Options) |
| 33 | + map('n', '<Leader>y', '"+y', Options) |
| 34 | + map('v', '<Leader>y', '"+y', Options) |
| 35 | + vim.o.scrolloff = 15 |
| 36 | + vim.o.termguicolors = true |
| 37 | + vim.o.tabstop = 2 |
| 38 | + vim.o.shiftwidth = 2 |
| 39 | + vim.o.expandtab = true |
| 40 | + vim.opt.wrap = false |
| 41 | + vim.o.relativenumber = true |
| 42 | + vim.o.number = true |
| 43 | + |
| 44 | + |
| 45 | +--LSP |
| 46 | + require("lsp.lsp_config") |
| 47 | + require("lsp.lspkind_config") |
| 48 | + |
| 49 | +--LSP-CMP |
| 50 | + vim.o.completeopt = "menu,menuone,noselect" |
| 51 | + |
| 52 | +--Lspsaga |
| 53 | + require("lsp.Lspsaga_config") |
| 54 | + map('n', '<Leader>ld', ':Lspsaga lsp_finder<cr>', Options) |
| 55 | + map('n', '<Leader>ln', ':Lspsaga diagnostic_jump_next<cr>', Options) |
| 56 | + map('n', '<Leader>lp', ':Lspsaga diagnostic_jump_prev<cr>', Options) |
| 57 | + map('n', '<Leader>la', ':Lspsaga code_action<cr>', Options) |
| 58 | + map('n', '<Leader>lr', ':Lspsaga rename<cr>', Options) |
| 59 | + map('n', '<C-Space>', ':Lspsaga hover_doc<cr>', Options) |
| 60 | + require("rust-tools").inlay_hints.enable() |
| 61 | + |
| 62 | + |
| 63 | +--lspsignature |
| 64 | + require("lsp.lspsignature_config") |
| 65 | + |
| 66 | +--telescope |
| 67 | + require("telescope_config") |
| 68 | + map('n', '<Leader>ff', ':Telescope find_files<cr>', Options) |
| 69 | + map('n', '<Leader>fg', ':Telescope live_grep<cr>', Options) |
0 commit comments