Compare commits

...

10 Commits

Author SHA1 Message Date
adc5ebe45f edits 2025-08-04 23:29:31 -04:00
Sidhanth Rathod
d0c602f5f1
Merge pull request #50 from algren123/docs/update-nvconfig-reference
docs: updated chadrc.lua reference to nvconfig.lua to point to v3.0
2024-10-05 17:33:03 +05:30
Algren-Michael Pauna
6db16815ac docs: updated chadrc.lua reference to nvconfig.lua to point to v3.0 instead of v2.5 2024-10-05 12:50:23 +01:00
Sidhanth Rathod
76da790a27
Merge pull request #47 from 0xTux/main
fix path for base64 plugin
2024-10-02 05:48:51 +05:30
tux
0eb7d42b30
fix path for base64 plugin 2024-10-02 05:38:25 +05:30
Sidhanth Rathod
59f23d053a
Merge pull request #44 from TimJ0212/main
Change LSP example to the not deprecated ts_ls (fixes #43)
2024-09-12 10:41:37 +05:30
Tim Jungk
a4c2bbf43c Change LSP example to the not deprecated ts_ls 2024-09-12 06:49:21 +02:00
Sidhanth Rathod
cb60352466
Update chadrc.lua 2024-09-07 14:34:33 +05:30
Sidhanth Rathod
3e1667ef3c
Update README.md 2024-08-11 19:36:21 +05:30
siduck
935ea570af repace vim.loop with vim.uv 2024-08-08 05:49:06 +05:30
7 changed files with 115 additions and 5 deletions

View File

@ -3,3 +3,7 @@
- The main nvchad repo (NvChad/NvChad) is used as a plugin by this repo. - The main nvchad repo (NvChad/NvChad) is used as a plugin by this repo.
- So you just import its modules , like `require "nvchad.options" , require "nvchad.mappings"` - So you just import its modules , like `require "nvchad.options" , require "nvchad.mappings"`
- So you can delete the .git from this repo ( when you clone it locally ) or fork it :) - So you can delete the .git from this repo ( when you clone it locally ) or fork it :)
# Credits
1) Lazyvim starter https://github.com/LazyVim/starter as nvchad's starter was inspired by Lazyvim's . It made a lot of things easier!

View File

@ -1,10 +1,10 @@
vim.g.base46_cache = vim.fn.stdpath "data" .. "/nvchad/base46/" vim.g.base46_cache = vim.fn.stdpath "data" .. "/base46/"
vim.g.mapleader = " " vim.g.mapleader = " "
-- bootstrap lazy and all plugins -- bootstrap lazy and all plugins
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then if not vim.uv.fs_stat(lazypath) then
local repo = "https://github.com/folke/lazy.nvim.git" local repo = "https://github.com/folke/lazy.nvim.git"
vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath } vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath }
end end

View File

@ -1,11 +1,12 @@
-- This file needs to have same structure as nvconfig.lua -- This file needs to have same structure as nvconfig.lua
-- https://github.com/NvChad/ui/blob/v2.5/lua/nvconfig.lua -- https://github.com/NvChad/ui/blob/v3.0/lua/nvconfig.lua
-- Please read that file to know all available options :(
---@type ChadrcConfig ---@type ChadrcConfig
local M = {} local M = {}
M.base46 = { M.base46 = {
theme = "onedark", theme = "dark_horizon",
-- hl_override = { -- hl_override = {
-- Comment = { italic = true }, -- Comment = { italic = true },

View File

@ -17,7 +17,7 @@ for _, lsp in ipairs(servers) do
end end
-- configuring single server, example: typescript -- configuring single server, example: typescript
-- lspconfig.tsserver.setup { -- lspconfig.ts_ls.setup {
-- on_attach = nvlsp.on_attach, -- on_attach = nvlsp.on_attach,
-- on_init = nvlsp.on_init, -- on_init = nvlsp.on_init,
-- capabilities = nvlsp.capabilities, -- capabilities = nvlsp.capabilities,

14
lua/custom_telescope.lua Normal file
View File

@ -0,0 +1,14 @@
local telescope = require('telescope.builtin')
local M = {}
function M.search_markdown_tasks()
telescope.grep_string({
prompt_title = "Open Task List",
search = "- [ ]", -- Customize if needed for specific task markers
cwd = vim.fn.expand('%:p:h') -- Current file's directory
})
end
return M

View File

@ -8,3 +8,45 @@ map("n", ";", ":", { desc = "CMD enter command mode" })
map("i", "jk", "<ESC>") map("i", "jk", "<ESC>")
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>") -- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
-- Add a keybinding for searching Markdown tasks
vim.api.nvim_set_keymap('n', '<leader>mt', ':lua require("custom_telescope").search_markdown_tasks()<CR>', { noremap = true, silent = true })
-- Add a keybinding for calling ObsidianTag
vim.api.nvim_set_keymap('n', '<leader>tt', ':ObsidianTag<CR>', { noremap = true, silent = true })
-- Add a keybinding for calling ObsidianBacklinks
vim.api.nvim_set_keymap('n', '<leader>lb', ':ObsidianBacklinks<CR>', { noremap = true, silent = true })
-- 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,
},
},
},
}
-- make leader-e toggle the tree view as opposed to just setting focus
vim.api.nvim_set_keymap('n', '<leader>e', ':NvimTreeToggle<CR>', {noremap = true, silent = true})
-- 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

View File

@ -4,3 +4,52 @@ require "nvchad.options"
-- local o = vim.o -- local o = vim.o
-- o.cursorlineopt ='both' -- to enable cursorline! -- o.cursorlineopt ='both' -- to enable cursorline!
require('telescope').setup{
defaults = {
layout_config = {
prompt_position = "top"
}
}
}
require('nvim-tree').setup{
filters = {
enable = true,
git_ignored = false,
dotfiles = false,
git_clean = false,
no_buffer = false,
no_bookmark = false,
custom = {},
exclude = {},
},
disable_netrw = true,
hijack_cursor = true,
sync_root_with_cwd = true,
update_focused_file = {
enable = true,
update_root = false,
},
view = {
width = 30,
preserve_window_proportions = true,
},
renderer = {
root_folder_label = false,
highlight_git = true,
indent_markers = { enable = true },
icons = {
glyphs = {
default = "󰈚",
folder = {
default = "",
empty = "",
empty_open = "",
open = "",
symlink = "",
},
git = { unmerged = "" },
},
},
},
}