configure lsp, completion and some additional colors

This commit is contained in:
2024-06-01 14:27:39 +03:00
commit 3d4f3d4081
13 changed files with 342 additions and 0 deletions

2
lua/crentist/init.lua Normal file
View File

@@ -0,0 +1,2 @@
require("crentist.remap")

44
lua/crentist/packer.lua Normal file
View File

@@ -0,0 +1,44 @@
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
-- 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')
use {
'nvim-telescope/telescope.nvim', tag = '0.1.6',
requires = { { 'nvim-lua/plenary.nvim' } }
}
use {
'ellisonleao/gruvbox.nvim',
config = function()
vim.cmd('colorscheme gruvbox')
end
}
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
use('ThePrimeagen/harpoon')
use('mbbill/undotree')
use('tpope/vim-fugitive')
use {
'VonHeikemen/lsp-zero.nvim',
branch = 'v3.x',
requires = {
--- Uncomment the two plugins below if you want to manage the language servers from neovim
{ 'williamboman/mason.nvim' },
{ 'williamboman/mason-lspconfig.nvim' },
{ 'neovim/nvim-lspconfig' },
{ 'hrsh7th/nvim-cmp' },
{ 'hrsh7th/cmp-buffer' },
{ 'hrsh7th/cmp-path' },
{ 'hrsh7th/cmp-nvim-lsp' },
{ 'L3MON4D3/LuaSnip' },
}
}
use('norcalli/nvim-colorizer.lua')
end)

3
lua/crentist/remap.lua Normal file
View File

@@ -0,0 +1,3 @@
vim.g.mapleader = " "
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)