diff --git a/dotfiles/config/nvim/init.vim b/dotfiles/config/nvim/init.vim index 00d2c0a..ad7ebec 100644 --- a/dotfiles/config/nvim/init.vim +++ b/dotfiles/config/nvim/init.vim @@ -1,7 +1,6 @@ source ~/.vimrc let mapleader=";" -colorscheme vim autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) \| PlugInstall --sync @@ -12,8 +11,27 @@ Plug 'bling/vim-bufferline' Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' Plug 'andweeb/presence.nvim' +Plug 'neovim/nvim-lspconfig' +Plug 'bluz71/vim-nightfly-colors' +Plug 'catppuccin/nvim', { 'as': 'catppuccin' } call plug#end() +colorscheme catppuccin-mocha + +lua require'lspconfig'.clangd.setup{} +set signcolumn=no + +nmap rn (coc-rename) +nmap ac (coc-codeaction-cursor) +nmap as (coc-codeaction-source) +nmap qf (coc-fix-current) + +nmap gd (coc-definition) +nmap gy (coc-type-definition) +nmap gi (coc-implementation) +nmap gr (coc-references) + + let g:user42 = 'tomoron' let g:mail42 = 'tomoron@student.42angouleme.fr' diff --git a/home.nix b/home.nix index c98976e..93de5dd 100644 --- a/home.nix +++ b/home.nix @@ -6,7 +6,7 @@ # 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 vlc nerd-fonts.iosevka + moonlight-qt grim slurp diff --git a/modules/vim.nix b/modules/vim.nix index 4102b34..aaf7ecd 100644 --- a/modules/vim.nix +++ b/modules/vim.nix @@ -1,6 +1,11 @@ {config, lib, pkgs, ...}: { + home.packages = with pkgs;[ + clang-tools + nodejs_23 + ]; + home.file = { ".config/nvim/init.vim".source = ../dotfiles/config/nvim/init.vim; ".vimrc".source = ../dotfiles/vimrc;