Commit Graph

475 Commits

Author SHA1 Message Date
ashincoder 80b632ee95 feat: Added lsp radial progress 2021-08-26 14:05:02 +05:30
siduck76 2f2389a31b statusline add lsp status 2021-08-26 10:59:37 +05:30
siduck76 21b2680e56 Merge branch 'main' of github.com:NvChad/NvChad 2021-08-26 10:48:17 +05:30
ashincoder 7d8f6b85c7 feat: Load lspkind on insert event. 2021-08-26 10:51:16 +05:30
siduck76 80d36cca00 move to feline.nvim 2021-08-26 10:48:13 +05:30
siduck76 9635b45404 clean mappings conf 2021-08-25 20:13:47 +05:30
ashincoder c02b1a063f feat: Added cmd for ChadReload 2021-08-25 20:10:23 +05:30
Akianonymus 9b4b288d01 utils: load_config: Use filereadable to check if file exists 2021-08-25 11:41:15 +05:30
Akianonymus 753f144d3f packerInit: Print error on clone failed 2021-08-25 11:41:15 +05:30
Akianonymus 1b2ec94b75 feat: Add copy_del and copy_cut options to config 2021-08-25 11:41:15 +05:30
Akianonymus 49216a9c93 feat: Support for custom user mappings | Improve map function
move map function to utils

rearrange utils, was missed
2021-08-25 11:41:15 +05:30
siduck76 4828cfd282 add mapping for finding hidden files with telescope (#360) 2021-08-25 05:36:44 +05:30
siduck76 3dc1db884c disable some plugins by default 2021-08-25 05:11:55 +05:30
siduck76 c66fb4ff3d add diagnostics options to bufferline/nvimtree 2021-08-24 21:15:05 +05:30
siduck76 cd5433d24b fix incorrect bg in tokyonight theme 2021-08-24 15:58:33 +05:30
siduck76 bf3e9a323f make gitsigns plugin load on dir containing .git only 2021-08-24 15:37:38 +05:30
ashincoder 2f61dbfcd8 feat: Added border for lsp hover doc 2021-08-24 13:32:11 +05:30
siduck76 7d74ca4767 use default lspconfig 2021-08-24 11:01:01 +05:30
Galen Rowell a3dbef5872 fix statusline bug, handle all Vim modes 2021-08-24 10:43:43 +05:30
Cam Cope bce7e624e2 Add LSP code action mappings
Tested with rust-analyzer
2021-08-24 09:27:21 +05:30
Noah Lidell fba26a3a40 commands to load fugitive 2021-08-24 09:05:06 +05:30
Kévin Dunglas 09f6c4c067 fix: don't hide dot files by default 2021-08-23 20:45:53 +05:30
siduck76 6fbb503a16 use ascending sorting : telescope (#346) 2021-08-23 17:15:29 +05:30
siduck76 ac83f1d580 add mapping to focus nvimtree (349) 2021-08-23 16:44:52 +05:30
siduck76 b2ec48ef30 avoid using global function : lspconfig 2021-08-23 16:06:02 +05:30
Akianonymus bf3d4b31a6 Missed in previous commit 2021-08-22 17:58:48 +05:30
Akianonymus a28a838c06 NvChad/core -> Nvchad/extensions 2021-08-22 17:54:10 +05:30
Akianonymus a82f71334f telescope-media: Check if ueberzug is available before loading the extension 2021-08-22 17:54:10 +05:30
Akianonymus ef40dfcbc1 plugins: Properly lazy load telescope
from packer docs

module = string or list      -- Specifies Lua module names for require. When requiring a string which starts
                               -- with one of these module names, the plugin will be loaded.
2021-08-22 17:54:10 +05:30
Akianonymus 3ee3b0368a config: Seperate plugin and non-plugin configs 2021-08-22 17:54:10 +05:30
Akianonymus e08a460543 config: Expose tabstop option 2021-08-22 17:54:10 +05:30
Akianonymus aa95c05179 Remove some unneeded events when hiding statusline
dunno why cmdwinenter was there

term enter is not needed as it will handled with Buf events

use filetype events as a buffer may not trigger other events but change
the filetype
2021-08-22 17:54:10 +05:30
Akianonymus 3719521d9a Disable statusline in dashboard
need here because out custom statusline hide function doesn't care about dashboard settings
2021-08-22 17:54:10 +05:30
Akianonymus e1d0678f6e mappings: Add PackerClean command 2021-08-22 17:54:10 +05:30
Akianonymus 9ffddb6b52 Restructure config | Move some to a packer plugin | Lot of cleanup
* move teleacope files, updater and related utils to
  https://github.com/NvChad/core

* restructure config file and directory structure

* expose mappings for better escape

* allow multiple mappings for some

* improve merge table function for the same

* move autocommands to a seperate file

* rearrange everything alphabetically where sanely possible

* rearrange packer plugin list on the basis of trigerred state

config structure now

 .
├──  init.lua
├──  LICENSE
├──  lua
│  ├──  chadrc.lua
│  ├──  colors
│  │  ├──  highlights.lua
│  │  ├──  init.lua
│  │  └──  themes
│  │     ├──  chadracula.lua
│  │     ├──  everforest.lua
│  │     ├──  gruvchad.lua
│  │     ├──  javacafe.lua
│  │     ├──  mountain.lua
│  │     ├──  norchad.lua
│  │     ├──  one-light.lua
│  │     ├──  onedark.lua
│  │     ├──  tokyonight.lua
│  │     └──  tomorrow-night.lua
│  ├──  core
│  │  ├──  autocmds.lua
│  │  ├──  init.lua
│  │  ├──  mappings.lua
│  │  ├──  options.lua
│  │  └──  utils.lua
│  ├──  default_config.lua
│  └──  plugins
│     ├──  configs
│     │  ├──  autopairs.lua
│     │  ├──  autosave.lua
│     │  ├──  bufferline.lua
│     │  ├──  chadsheet.lua
│     │  ├──  compe.lua
│     │  ├──  dashboard.lua
│     │  ├──  gitsigns.lua
│     │  ├──  icons.lua
│     │  ├──  lspconfig.lua
│     │  ├──  luasnip.lua
│     │  ├──  nvimtree.lua
│     │  ├──  others.lua
│     │  ├──  statusline.lua
│     │  ├──  telescope.lua
│     │  ├──  treesitter.lua
│     │  └──  zenmode.lua
│     ├──  init.lua
│     └──  packerInit.lua
└──  README.md
2021-08-22 17:54:10 +05:30
ashincoder 44ae0178f4 Change dest of bufferline since commit https://github.com/akinsho/bufferline.nvim/commit/720555e 2021-08-22 13:04:41 +05:30
siduck76 dceb6a70d4 rm mappings var from bufferline conf 2021-08-21 17:36:55 +05:30
siduck76 7a06fbb0be disable autocwd by default 2021-08-21 17:19:11 +05:30
siduck76 18705c4da4 fix plenary.nvim not installed (#307) 2021-08-21 15:45:24 +05:30
siduck76 c60df482e9
open dir with nvim (#316)
opening dir with nvim will work by default but since we have lazy loaded nvimtree , it doesnt update the cwd in nvimtree. This will fix that.
2021-08-21 13:57:15 +05:30
siduck76 83992378a4 treesitter : keep only lua parser installed by default 2021-08-21 11:28:25 +05:30
siduck76 cbb0ddc0a5 clean lspconfig 2021-08-21 11:23:20 +05:30
siduck76 b5668a037a avoid setting root_dir for lspservers 2021-08-21 11:04:07 +05:30
siduck76 6206a9e27b rm popup.nvim 2021-08-20 23:20:12 +05:30
ashincoder b57cb6cdc0 fix: fixed error of statusline. 2021-08-20 16:49:32 +05:30
Akianonymus b817c55542 mappings: Close buffer -> leader+x | Resolve #6
move theme toggle to leader+tt
2021-08-20 16:27:29 +05:30
Akianonymus 4c04160b87 dashboard: Fix alignment 2021-08-20 16:27:29 +05:30
Akianonymus e15e79b519 options.lua: Merge the TermOpen autocommands 2021-08-20 16:27:29 +05:30
Akianonymus 1f6dbed26b Improve hiding/showing statusline via config 2021-08-20 16:27:29 +05:30
Galen Rowell dbf0b56059 quickfix for not properly closing unlisted buffers, should be revised again 2021-08-20 13:02:52 +05:30
Galen Rowell fd5d50f194 fix Dashboard docs, fix default_config issue 2021-08-20 09:29:13 +05:30
Akianonymus 3ccd804da9 utils/update_nvchad: Use --rebase instead of --ff-only 2021-08-20 01:00:46 +05:30
Akianonymus 5fab35f2e1 utils/load_config: Implement force reload of config 2021-08-20 01:00:46 +05:30
Akianonymus f7d2bacb51 Fix theme switcher statusline reload 2021-08-20 01:00:46 +05:30
siduck76 89c371397f better colors 2021-08-20 00:28:42 +05:30
siduck76 47ab9c28a1 add no buffer icon to statusline 2021-08-19 18:13:58 +05:30
ashincoder a49f62d3c6 feat: Added option for italic_comments 2021-08-19 18:05:54 +05:30
siduck76 112d3866a5 improve various theme colors 2021-08-19 17:44:48 +05:30
siduck76 5ae6fba20d make statusline more pretty 2021-08-19 17:35:24 +05:30
Akianonymus 7244492b36 utils/merge_table: Handle another edgecase 2021-08-19 16:52:46 +05:30
Akianonymus 224873b937 Missed in 67c6ec6 and 575dc10 2021-08-19 16:52:46 +05:30
siduck76 114d699fc5 change nvimtree rootfolder fg 2021-08-19 16:09:24 +05:30
siduck76 e75fbed322 disable transparency by default 2021-08-19 14:39:27 +05:30
siduck76 f10fb47637 add transparency option to user config 2021-08-19 14:36:49 +05:30
Akianonymus 880d4dc312 NvChadUpdater: Make update repo and url configurable | Improve logging 2021-08-19 14:19:12 +05:30
Akianonymus 4801ec86f1 Add NvChadUpdate command and shortcut for it
map leader+uu to it

summary of what it does:

first ask the user for confirmation and tell that the updater is gonna run git reset --hard in config repo and chadrc will be restored

take backup of chadrc in a lua string and locally in a file with chadrc.bak.(random numbers)

git reset on config dir and git pull

whether success or error, restore the chadrc file

if restore fails, then print backup file path

for more deep understanding, read the comments in utils.lua
2021-08-19 14:19:12 +05:30
Akianonymus 7753e03b9e feat: Do not depend on user config | Fix merging of configs
because it is a user config, so our config shoudn't break even we if dont have it

use our own table merge function

move loading config to a function

use a global variable to store the config, so no need to call the table function everytime
2021-08-19 14:19:12 +05:30
Akianonymus 02f0122ab4 mappings|init: Move init mappings to a function, only call when required | Show err message for init
because mappings.lua is called from multiple places, so there should't be any code that executes without calling a specific function

show error message when something fails in init.lua
makes no sense to not

rearrange plugin functions alphabetically, but keep misc at top
2021-08-19 14:19:12 +05:30
Akianonymus e3f0429a72 tree-wide: Format files
ugh why do people don't push formatted stuff
2021-08-19 14:19:12 +05:30
siduck76 6224ed6283 Revert "chore: update path_display (#285)"
This reverts commit 1d78add91e.
2021-08-19 13:24:35 +05:30
siduck76 32a6fd8d29 add statusline_style to chadrc 2021-08-19 12:38:50 +05:30
siduck76 aa8df57cae Revert "NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288)"
This reverts commit 36cb57ecce.
2021-08-19 12:36:01 +05:30
Aki 36cb57ecce
NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288)
* tree-wide: Format files

ugh why do people don't push formatted stuff

* mappings|init: Move init mappings to a function, only call when required | Show err message for init

because mappings.lua is called from multiple places, so there should't be any code that executes without calling a specific function

show error message when something fails in init.lua
makes no sense to not

rearrange plugin functions alphabetically, but keep misc at top

* feat: Do not depend on user config | Fix merging of configs

because it is a user config, so our config shoudn't break even we if dont have it

use our own table merge function

move loading config to a function

use a global variable to store the config, so no need to call the table function everytime

* Add NvChadUpdate command and shortcut for it

map leader+uu to it

summary of what it does:

first ask the user for confirmation and tell that the updater is gonna run git reset --hard in config repo and chadrc will be restored

take backup of chadrc in a lua string and locally in a file with chadrc.bak.(random numbers)

git reset on config dir and git pull

whether success or error, restore the chadrc file

if restore fails, then print backup file path

for more deep understanding, read the comments in utils.lua

* NvChadUpdater: Make update repo and url configurable | Improvr logging
2021-08-19 12:33:11 +05:30
siduck76 623a2a0d1a default_config : add statusline separators style 2021-08-19 11:59:42 +05:30
Tuan Nguyen 1d78add91e
chore: update path_display (#285) 2021-08-19 09:36:32 +05:30
Galen Rowell f82b390aba
make cheatsheet enabled by default (#281) 2021-08-18 19:31:02 +05:30
Galen Rowell fa965c9797
added relativenumber option & statusline option (#279) 2021-08-18 17:43:56 +05:30
siduck76 e663122638 add bg to Floating window 2021-08-18 15:25:58 +05:30
Galen Rowell 575dc10ddc
Greatly improve terminal features! Persistent terminals (#275)
* remove toggleTerm plugin

* Adding term binds, term hider & Telescope terms to bring them back

* Adding many term features!
2021-08-18 15:43:35 +05:30
siduck76 51760c21f5 Add important notes for user , default config 2021-08-18 11:10:13 +05:30
siduck76 056fcb51f5
User config works 2021-08-18 00:33:37 +05:30
siduck76 b571fd9d40
test user config xD 2021-08-18 00:08:38 +05:30
Pocco81 0d35b9ddac
feat: added default conf and deep extension capabilities (#269) 2021-08-18 00:02:48 +05:30
Aki 98086892a7
tree-wide: Format files | Reformat chadrc | Misc (#268)
chadrc: looks cleaner this way

move close buffer to misc as it is not dependent on buffer plugin
2021-08-17 23:21:10 +05:30
siduck76 e25f30899d rename mountaineer 2021-08-17 19:13:03 +05:30
siduck76 cf4e0a2c53 fix plenary.nvim not loading (#256) 2021-08-17 12:12:33 +05:30
siduck76 c62e94923a add mapping cheatsheet (#244) 2021-08-16 22:18:08 +05:30
siduck76 eaaefc236d add one-light (#243) 2021-08-16 19:04:09 +05:30
Galen Rowell 86903ab982
chore: stylua formatting update (#261)
* addded stylua config file

* chore: formatted with stylua
2021-08-16 13:19:09 +05:30
Aki 4abf43aa99
Fixes (#259)
* Missed in 154ba7d

* utils/change-theme: Check theme name for magic chars
2021-08-16 09:18:31 +05:30
siduck76 9c134872fb rename theme name 2021-08-16 08:57:25 +05:30
siduck76 aabc3e692f update tomorrow night theme name 2021-08-16 08:43:39 +05:30
siduck76 c251f88567 update nvim-base16 repo link 2021-08-16 08:14:16 +05:30
ashincoder 7b796294a4
refact: move false to true in plugins and change disable to 'not' so that the user does'nt be confused (#257) 2021-08-16 06:16:14 +05:30
siduck76 49120177ce
Update theme.lua 2021-08-15 01:10:05 +05:30
siduck76 154ba7d419 add theme toggler (#245) 2021-08-15 00:44:55 +05:30
Sage Baram ea0a221230
(feat) add filename edit/lock icons provider (#253)
* (feat) add filename edit/lock icons provider

* Update statusline.lua

Co-authored-by: Sage Baram <sagebaram@gamil.com>
Co-authored-by: siduck76 <siduck13@gmail.com>
2021-08-14 23:56:34 +05:30
siduck76 ebdcd4cae1 fix luasnip creating statusline errors (#250) 2021-08-14 22:35:10 +05:30
siduck76 05e587cfc0
Clean up utils 2021-08-14 22:32:32 +05:30
siduck76 e0feea9407
cleanup ! 2021-08-14 22:31:32 +05:30