Compare commits

...

18 Commits
v2.5 ... pt

Author SHA1 Message Date
baabb64d18 dont hide 2023-10-31 11:12:10 -04:00
a1703d00be merge with v2.0 2023-10-03 08:43:14 -04:00
siduck
13e9b0f458 rm outdated link from readme 2023-10-02 13:50:56 +05:30
Sidhanth Rathod
195fe4ae72
Rm outdated info in readme 2023-09-28 11:33:45 +05:30
4517485701 update glyphs to v2.0 2023-05-09 11:17:57 -04:00
841b45998e merge v2.0 2023-05-08 08:11:16 -04:00
6aef27028f add mapping for leader g d to do a diff, and dont add terminals 2023-04-25 15:02:27 -04:00
8a56de017a attempt to make hidden files findable in telescope 2023-04-07 19:59:09 -04:00
d0ea9296ac Merge branch 'v2.0' into pt 2023-04-06 12:09:06 -04:00
052c523466 make tabs 4 spaces 2023-04-06 12:08:24 -04:00
8a89abfc4f arrows move windows and JK move screen 2023-04-04 13:53:43 -04:00
f8e88fa96c Merge branch 'pt' of gitea.hptrow.me:pt/nvhcad into pt 2023-04-04 13:34:55 -04:00
2bc5b50420 ignore tmux logs 2023-04-04 13:33:20 -04:00
85add23ae3 .gitignore files while show as ghosted 2023-04-04 13:32:33 -04:00
02224ade77 Merge branch 'v2.0' of https://github.com/NvChad/NvChad into pt 2023-04-04 13:16:58 -04:00
9f97f2d4a1 Merge branch 'v2.0' of https://github.com/NvChad/NvChad into pt 2023-04-04 13:15:53 -04:00
df1af847b2 Merge branch 'v2.0' of https://github.com/NvChad/NvChad into pt 2023-04-02 02:06:22 -04:00
1c0a2345e0 show ignored diretories 2023-04-02 02:06:19 -04:00
4 changed files with 71 additions and 15 deletions

5
.github/README.md vendored
View File

@ -88,8 +88,7 @@ A fuzzy file finder, picker, sorter, previewer and much more:
- Many beautiful themes, theme toggler by our [base46 plugin](https://github.com/NvChad/base46) - Many beautiful themes, theme toggler by our [base46 plugin](https://github.com/NvChad/base46)
- Inbuilt terminal toggling & management with [Nvterm](https://github.com/NvChad/nvterm) - Inbuilt terminal toggling & management with [Nvterm](https://github.com/NvChad/nvterm)
- NvChad updater, hide & unhide terminal buffers with [NvChad extensions](https://github.com/NvChad/extensions) - Lightweight & performant ui plugin with [NvChad UI](https://github.com/NvChad/ui) It provides statusline modules, tabufline ( tabs + buffer manager) , beautiful cheatsheets, NvChad updater, hide & unhide terminal buffers, theme switcher and much more!
- Lightweight & performant ui plugin with [NvChad UI](https://github.com/NvChad/ui) It provides statusline modules, tabufline ( tabs + buffer manager) , beautiful cheatsheets and much more!
- File navigation with [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua) - File navigation with [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua)
- Beautiful and configurable icons with [nvim-web-devicons](https://github.com/kyazdani42/nvim-web-devicons) - Beautiful and configurable icons with [nvim-web-devicons](https://github.com/kyazdani42/nvim-web-devicons)
- Git diffs and more with [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim) - Git diffs and more with [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim)
@ -113,7 +112,7 @@ A fuzzy file finder, picker, sorter, previewer and much more:
If you like NvChad and would like to support & appreciate it via donation then I'll gladly accept it. If you like NvChad and would like to support & appreciate it via donation then I'll gladly accept it.
[![kofi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/siduck) [![kofi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/siduck)
[![paypal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](https://paypal.me/siduck76) [![paypal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](https://paypal.me/siduck13)
[![buymeacoffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/siduck) [![buymeacoffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/siduck)
[![patreon](https://img.shields.io/badge/Patreon-F96854?style=for-the-badge&logo=patreon&logoColor=white)](https://www.patreon.com/siduck) [![patreon](https://img.shields.io/badge/Patreon-F96854?style=for-the-badge&logo=patreon&logoColor=white)](https://www.patreon.com/siduck)

2
.gitignore vendored
View File

@ -6,4 +6,4 @@ syntax
coc-settings.json coc-settings.json
.luarc.json .luarc.json
lazy-lock.json lazy-lock.json
after *.log

View File

@ -1,4 +1,5 @@
require "core" require "core"
vim.api.nvim_set_var('mapleader', ';')
local custom_init_path = vim.api.nvim_get_runtime_file("lua/custom/init.lua", false)[1] local custom_init_path = vim.api.nvim_get_runtime_file("lua/custom/init.lua", false)[1]
@ -19,3 +20,60 @@ end
dofile(vim.g.base46_cache .. "defaults") dofile(vim.g.base46_cache .. "defaults")
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
require "plugins" require "plugins"
-- Configure Telescope to scroll files with ctrl+j/k
local actions = require('telescope.actions')
local sorters = require('telescope.sorters')
require('telescope').setup {
defaults = {
mappings = {
i = {
["<C-j>"] = actions.move_selection_next,
["<C-k>"] = actions.move_selection_previous,
},
},
file_sorter = sorters.get_fzy_sorter,
file_ignore_patterns = { '.git/*', 'node_modules/*', 'vendor/*' },
generic_sorter = sorters.get_generic_fuzzy_sorter,
},
extensions = {
fzf = {
fuzzy = true,
override_generic_sorter = true,
override_file_sorter = true,
case_mode = "smart_case",
}
}
}
vim.api.nvim_set_keymap('n', '<leader>e', ':NvimTreeToggle<CR>', {noremap = true, silent = true})
-- Cycle through open buffers with leader+a
vim.api.nvim_set_keymap('n', '<leader>a', ':bprevious<CR>', {noremap = true, silent = true})
vim.api.nvim_set_keymap('n', '<leader>f', ':bnext<CR>', {noremap = true, silent = true})
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
-- move the whole page without moving the cursor
vim.api.nvim_set_keymap('n', 'J', '<C-e>', { noremap = true })
vim.api.nvim_set_keymap('n', 'K', '<C-y>', { noremap = true })
-- Resize windows
vim.api.nvim_set_keymap('n', '<Up>', '5<C-w>+', { silent = true })
vim.api.nvim_set_keymap('n', '<Down>', '5<C-w>-', { silent = true })
vim.api.nvim_set_keymap('n', '<Right>', '10<C-w>>', { silent = true })
vim.api.nvim_set_keymap('n', '<Left>', '10<C-w><', { silent = true })
-- Set the tab width to 4 spaces
vim.cmd('set tabstop=4')
vim.cmd('set shiftwidth=4')
vim.cmd('set expandtab')
vim.o.hidden = true
-- Git diffthis
vim.api.nvim_set_keymap('n', '<leader>gd', ':Gitsigns diffthis<CR>', {noremap = true, silent = true})

View File

@ -16,11 +16,12 @@ local options = {
adaptive_size = false, adaptive_size = false,
side = "left", side = "left",
width = 30, width = 30,
preserve_window_proportions = true, preserve_window_proportions = true
-- hide_root_folder = true,
}, },
git = { git = {
enable = false, enable = true,
ignore = true, ignore = false,
}, },
filesystem_watchers = { filesystem_watchers = {
enable = true, enable = true,
@ -31,10 +32,8 @@ local options = {
}, },
}, },
renderer = { renderer = {
root_folder_label = false, highlight_git = true,
highlight_git = false,
highlight_opened_files = "none", highlight_opened_files = "none",
indent_markers = { indent_markers = {
enable = false, enable = false,
}, },
@ -44,16 +43,16 @@ local options = {
file = true, file = true,
folder = true, folder = true,
folder_arrow = true, folder_arrow = true,
git = false, git = true,
}, },
glyphs = { glyphs = {
default = "󰈚", default = "",
symlink = "", symlink = "",
folder = { folder = {
default = "", default = "",
empty = "", empty = "",
empty_open = "", empty_open = "",
open = "", open = "",
symlink = "", symlink = "",
symlink_open = "", symlink_open = "",