add lsp and change vim theme to catpppuccin-mocha

This commit is contained in:
2025-02-04 15:57:30 +01:00
parent f76846d8f3
commit 730c6fa341
3 changed files with 26 additions and 2 deletions

View File

@ -1,7 +1,6 @@
source ~/.vimrc source ~/.vimrc
let mapleader=";" let mapleader=";"
colorscheme vim
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync \| PlugInstall --sync
@ -12,8 +11,27 @@ Plug 'bling/vim-bufferline'
Plug 'nvim-lua/plenary.nvim' Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim' Plug 'nvim-telescope/telescope.nvim'
Plug 'andweeb/presence.nvim' Plug 'andweeb/presence.nvim'
Plug 'neovim/nvim-lspconfig'
Plug 'bluz71/vim-nightfly-colors'
Plug 'catppuccin/nvim', { 'as': 'catppuccin' }
call plug#end() call plug#end()
colorscheme catppuccin-mocha
lua require'lspconfig'.clangd.setup{}
set signcolumn=no
nmap <leader>rn <Plug>(coc-rename)
nmap <leader>ac <Plug>(coc-codeaction-cursor)
nmap <leader>as <Plug>(coc-codeaction-source)
nmap <leader>qf <Plug>(coc-fix-current)
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
let g:user42 = 'tomoron' let g:user42 = 'tomoron'
let g:mail42 = 'tomoron@student.42angouleme.fr' let g:mail42 = 'tomoron@student.42angouleme.fr'

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ # # By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2024/10/17 18:15:38 by tomoron #+# #+# # # Created: 2024/10/17 18:15:38 by tomoron #+# #+# #
# Updated: 2025/01/30 14:05:36 by tomoron ### ########.fr # # Updated: 2025/02/04 15:57:16 by tomoron ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -74,6 +74,7 @@
python3 python3
vlc vlc
nerd-fonts.iosevka nerd-fonts.iosevka
moonlight-qt
grim grim
slurp slurp

View File

@ -1,6 +1,11 @@
{config, lib, pkgs, ...}: {config, lib, pkgs, ...}:
{ {
home.packages = with pkgs;[
clang-tools
nodejs_23
];
home.file = { home.file = {
".config/nvim/init.vim".source = ../dotfiles/config/nvim/init.vim; ".config/nvim/init.vim".source = ../dotfiles/config/nvim/init.vim;
".vimrc".source = ../dotfiles/vimrc; ".vimrc".source = ../dotfiles/vimrc;