All Projects → windwp → nvim-projectconfig

windwp / nvim-projectconfig

Licence: MIT License
neovim projectconfig

Programming Languages

lua
6591 projects
Vim Script
2826 projects

Projects that are alternatives of or similar to nvim-projectconfig

Awesome Dotfiles
Dotfiles for awesome people using the awesomewm linux environment
Stars: ✭ 409 (+752.08%)
Mutual labels:  config, neovim
dotfiles
My arch setup script and dotfiles
Stars: ✭ 37 (-22.92%)
Mutual labels:  config, neovim
nii-nvim
A minimal neovim configuration
Stars: ✭ 69 (+43.75%)
Mutual labels:  config, neovim
Dotfiles
My dotfiles 🚀. Includes configs for neovim, tmux, zsh, alacritty and more.
Stars: ✭ 47 (-2.08%)
Mutual labels:  config, neovim
cosmos-nvim
A must-have configuration for Spacemacs users after defecting to Vim
Stars: ✭ 62 (+29.17%)
Mutual labels:  neovim
Ultimate-JS-Projects-Collection
This is a repo containing numerous mini projects with cool UI that I'll be building every day with Vanilla JS, without any additional framework
Stars: ✭ 21 (-56.25%)
Mutual labels:  projects
surge
Network toolbox Surge rules, modules and configuration files, For pure self use.
Stars: ✭ 207 (+331.25%)
Mutual labels:  config
readablefold.vim
A Vim plugin to improve foldtext for better looks
Stars: ✭ 21 (-56.25%)
Mutual labels:  neovim
boo-colorscheme-nvim
Boo is a colorscheme for Neovim with handcrafted support for LSP, Treesitter.
Stars: ✭ 62 (+29.17%)
Mutual labels:  neovim
nvim-lsp-compl
A fast and asynchronous auto-completion plugin for Neovim >= 0.5, focused on LSP.
Stars: ✭ 46 (-4.17%)
Mutual labels:  neovim
jumpwire.nvim
Jump easily between related files.
Stars: ✭ 16 (-66.67%)
Mutual labels:  neovim
dotfiles
dotfiles of my linux setup
Stars: ✭ 25 (-47.92%)
Mutual labels:  neovim
DGUS-reloaded-Klipper-config
No description or website provided.
Stars: ✭ 21 (-56.25%)
Mutual labels:  config
vim-stamp
A vim plugin that replaces the currently selected text with the text in the delete register
Stars: ✭ 13 (-72.92%)
Mutual labels:  neovim
dotfiles
Config files for i3, polybar, rofi, mpv, Xresources, kitty and some bash-things...
Stars: ✭ 52 (+8.33%)
Mutual labels:  neovim
drex.nvim
Another directory/file explorer for Neovim written in Lua
Stars: ✭ 15 (-68.75%)
Mutual labels:  neovim
nvim
Blazing fast neovim setup with 120 plugins.
Stars: ✭ 108 (+125%)
Mutual labels:  neovim
nvim-ghost.nvim
👻 GhostText plugin for Neovim with zero dependencies 🎉 Supports neovim running inside WSL too! 🥳 Windows/Linux/macOS supported out-of-the-box! 😄 (Other OSes need python3.6+ installed)
Stars: ✭ 32 (-33.33%)
Mutual labels:  neovim
dotfiles
My dotfiles with dwm, qtile and awesome.
Stars: ✭ 178 (+270.83%)
Mutual labels:  neovim
spellsitter.nvim
Treesitter powered spellchecker
Stars: ✭ 251 (+422.92%)
Mutual labels:  neovim

nvim-projectconfig

Load config depend on current directory.

Sample

current directory is /home/abcde/projects/awesome/. you open vim in awesome directory.

It will load a config file from ~/.config/nvim/projects/awesome.lua or ~/.config/nvim/projects/awesome.vim

this config save outside of your git repo and you don't need to check security on that file. It work perfect if you are working on monorepo.

Install

  Plug 'windwp/nvim-projectconfig'

then add this in your init.lua

require('nvim-projectconfig').setup()

FAQ

  • A command to open project config file

Command: EditProjectConfig

  • I want to change projects-config directory
require('nvim-projectconfig').setup({
  project_dir = "~/.config/projects-config/",
})
  • I have 2 directory have same name.
require('nvim-projectconfig').setup({
  project_dir = "~/.config/projects-config/",
  project_config={
    {
      -- full path of your project or a lua regex string
        path = "projectconfig", 
        -- use a function or a path to config file 
        config = function ()
            print("abcde")
        end
    },
  },
  silent = false,-- display message after load config file
})
  • I want to change my directory inside neovim and load project config.
require('nvim-projectconfig').setup({autocmd=true})

Bonus

a function to load and save json file and do whatever you want.

require('nvim-projectconfig').load_json()
require('nvim-projectconfig').save_json(data)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].