Compare commits
18 Commits
Author | SHA1 | Date | |
---|---|---|---|
baabb64d18 | |||
a1703d00be | |||
|
13e9b0f458 | ||
|
195fe4ae72 | ||
4517485701 | |||
841b45998e | |||
6aef27028f | |||
8a56de017a | |||
d0ea9296ac | |||
052c523466 | |||
8a89abfc4f | |||
f8e88fa96c | |||
2bc5b50420 | |||
85add23ae3 | |||
02224ade77 | |||
9f97f2d4a1 | |||
df1af847b2 | |||
1c0a2345e0 |
5
.github/README.md
vendored
5
.github/README.md
vendored
@ -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
2
.gitignore
vendored
@ -6,4 +6,4 @@ syntax
|
|||||||
coc-settings.json
|
coc-settings.json
|
||||||
.luarc.json
|
.luarc.json
|
||||||
lazy-lock.json
|
lazy-lock.json
|
||||||
after
|
*.log
|
||||||
|
58
init.lua
58
init.lua
@ -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})
|
||||||
|
|
||||||
|
@ -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 = "",
|
||||||
|
Loading…
Reference in New Issue
Block a user