this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

:sparkles: (Nvim) plugins directory

+94 -81
+1 -4
home/emacs/default.nix
··· 1 - { 2 - pkgs, 3 - ... 4 - }: { 1 + {pkgs, ...}: { 5 2 programs.emacs = { 6 3 enable = true; 7 4
+42 -7
home/neovim/default.nix
··· 1 - { 2 - programs.neovim.enable = true; 1 + {pkgs, ...}: { 2 + programs.neovim = { 3 + enable = true; 4 + 5 + plugins = with pkgs.vimPlugins; [ 6 + LazyVim 7 + ]; 8 + 9 + extraLuaConfig = '' 10 + local lazy = {} 11 + 12 + function lazy.setup(plugins) 13 + if vim.g.plugins_ready then 14 + return 15 + end 16 + 17 + vim.opt.rtp:prepend(lazy.path) 18 + 19 + require('lazy').setup(plugins, lazy.opts) 20 + vim.g.plugins_ready = true 21 + end 22 + 23 + lazy.path = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' 24 + lazy.opts = {} 25 + 26 + local load = function(mod) 27 + package.loaded[mod] = nil 28 + require(mod) 29 + end 3 30 4 - home.file = { 5 - ".vimrc".source = ./vimrc; 31 + load('user.settings') 32 + load('user.keymaps') 6 33 7 - ".config/nvim/init.lua".source = ./init.lua; 34 + lazy.setup("plugins") 8 35 36 + vim.cmd.colorscheme('icy') 37 + ''; 38 + }; 39 + 40 + home.file = { 9 41 ".config/nvim/lua/user/keymaps.lua".source = ./lua/user/keymaps.lua; 10 42 ".config/nvim/lua/user/settings.lua".source = ./lua/user/settings.lua; 11 43 44 + ".config/nvim/lua/plugins/editorconfig.lua".source = ./lua/plugins/editorconfig.lua; 45 + ".config/nvim/lua/plugins/lualine.lua".source = ./lua/plugins/lualine.lua; 12 46 ".config/nvim/lua/plugins/telescope.lua".source = ./lua/plugins/telescope.lua; 47 + ".config/nvim/lua/plugins/tokyonight.lua".source = ./lua/plugins/tokyonight.lua; 48 + ".config/nvim/lua/plugins/icy.lua".source = ./lua/plugins/icy.lua; 13 49 ".config/nvim/lua/plugins/treesitter.lua".source = ./lua/plugins/treesitter.lua; 14 - 15 - ".config/vim/coc.vim".source = ./config/coc.vim; 50 + ".config/nvim/lua/plugins/vim-fugitive.lua".source = ./lua/plugins/vim-fugitive.lua; 16 51 17 52 ".vim/.skeleton.html".source = ./skeletons/.skeleton.html; 18 53 ".vim/.skeleton.py".source = ./skeletons/.skeleton.py;
-54
home/neovim/init.lua
··· 1 - local lazy = {} 2 - 3 - function lazy.install(path) 4 - if not vim.loop.fs_stat(path) then 5 - print('Installing lazy.nvim...') 6 - vim.fn.system({ 7 - 'git', 8 - 'clone', 9 - '--filter=blob:none', 10 - 'https://github.com/folke/lazy.nvim.git', 11 - '--branch=stable', 12 - path, 13 - }) 14 - end 15 - end 16 - 17 - function lazy.setup(plugins) 18 - if vim.g.plugins_ready then 19 - return 20 - end 21 - 22 - lazy.install(lazy.path) 23 - 24 - vim.opt.rtp:prepend(lazy.path) 25 - 26 - require('lazy').setup(plugins, lazy.opts) 27 - vim.g.plugins_ready = true 28 - end 29 - 30 - lazy.path = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' 31 - lazy.opts = {} 32 - 33 - lazy.setup({ 34 - {'folke/tokyonight.nvim'}, 35 - {'nvim-lualine/lualine.nvim'}, 36 - {'nvim-treesitter/nvim-treesitter.nvim'}, 37 - {'nvim-telescope/telescope.nvim'}, 38 - {'tpope/vim-fugitive'}, 39 - {'editorconfig/editorconfig-vim'} 40 - }) 41 - 42 - vim.cmd.colorscheme('tokyonight') 43 - 44 - local load = function(mod) 45 - package.loaded[mod] = nil 46 - require(mod) 47 - end 48 - 49 - load('user.settings') 50 - load('user.keymaps') 51 - 52 - require('plugins.telescope') 53 - require('plugins.treesitter') 54 - require('plugins.lualine')
+3
home/neovim/lua/plugins/editorconfig.lua
··· 1 + return { 2 + 'editorconfig/editorconfig-vim' 3 + }
+3
home/neovim/lua/plugins/icy.lua
··· 1 + return { 2 + 'elianiva/icy.nvim' 3 + }
+13 -5
home/neovim/lua/plugins/lualine.lua
··· 1 - require('lualine').setup({ 2 - options = { 3 - icons_enabled = false 4 - } 5 - }) 1 + return { 2 + 'nvim-lualine/lualine.nvim', 3 + config = function () 4 + local configs = require('lualine') 5 + 6 + configs.setup({ 7 + options = { 8 + icons_enabled = false 9 + } 10 + }) 11 + end 12 + } 13 +
+6
home/neovim/lua/plugins/telescope.lua
··· 2 2 vim.keymap.set('n', '<leader>ff', '<cmd>Telescope find_files<cr>') 3 3 vim.keymap.set('n', '<leader>fg', '<cmd>Telescope live_grep<cr>') 4 4 vim.keymap.set('n', '<leader>fd', '<cmd>Telescope diagnostics<cr>') 5 + 6 + return { 7 + 'nvim-telescope/telescope.nvim', 8 + tag = '0.1.5', 9 + dependencies = { 'nvim-lua/plenary.nvim' } 10 + }
+3
home/neovim/lua/plugins/tokyonight.lua
··· 1 + return { 2 + 'folke/tokyonight.nvim' 3 + }
+20 -11
home/neovim/lua/plugins/treesitter.lua
··· 1 - require('nvim-treesitter.configs').setup({ 2 - highlight = { 3 - enable = true 4 - }, 5 - ensure_installed = { 6 - 'javascript', 7 - 'typescript', 8 - 'tsx', 9 - 'json' 10 - } 11 - }) 1 + return { 2 + 'nvim-treesitter/nvim-treesitter.nvim', 3 + build = ":TSUpdate", 4 + config = function () 5 + local configs = require('nvim-treesitter.configs') 6 + 7 + configs.setup({ 8 + highlight = { 9 + enable = true 10 + }, 11 + ensure_installed = { 12 + 'javascript', 13 + 'typescript', 14 + 'tsx', 15 + 'json' 16 + }, 17 + sync_install = false 18 + }) 19 + end 20 + }
+3
home/neovim/lua/plugins/vim-fugitive.lua
··· 1 + return { 2 + 'tpope/vim-fugitive' 3 + }