Compare commits

..

10 Commits

Author SHA1 Message Date
siduck
b7a163e232 rm un-needed build function for ui plugin 2024-08-28 16:41:11 +05:30
siduck
5189f3e32c nvimtree: show dotfiles by default #2975 2024-08-21 07:24:10 +05:30
Valde
fea5d02d2d
update mapping descriptions in mappings.lua (#2963)
* Update mappings.lua

Update mapping descriptions for better cheatsheet display

* Update mappings.lua

Gather toggleables under 'Toggle' panel
2024-08-11 14:11:12 +05:30
siduck
8df1aa9a4d lua lspconfig: include luv lib types #2960 2024-08-10 16:02:51 +05:30
siduck
c40c5116c4 use default icons for gitsigns conf 2024-08-01 13:54:44 +05:30
siduck
43208351b7 rm some duplicate default opts of telescope config 2024-08-01 10:07:55 +05:30
siduck
c892cfedb2 rm some duplicate default opts of nvimtree config 2024-08-01 09:43:02 +05:30
Randy D. Wallace Jr.
4a2cefa5c1
Do not use config setting in mason - fix nvim-java (#2948)
* Do not use config setting in mason
* plugins: remove un-needed config() calls

---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>
2024-07-27 21:51:10 +05:30
siduck
c383cd4463 rm masoninstallAll cmd as its added to ui repo 523cddc573 2024-07-27 20:48:52 +05:30
siduck
086a4a58ac rm un-needed branch specs
also move the config func contents ui/plugin dir  25fbc4b
2024-07-27 20:23:10 +05:30
6 changed files with 21 additions and 129 deletions

View File

@ -2,12 +2,8 @@ dofile(vim.g.base46_cache .. "git")
local options = {
signs = {
add = { text = "" },
change = { text = "" },
delete = { text = "󰍵" },
topdelete = { text = "" },
changedelete = { text = "~" },
untracked = { text = "" },
changedelete = { text = "󱕖" },
},
on_attach = function(bufnr)

View File

@ -57,7 +57,7 @@ M.capabilities.textDocument.completion.completionItem = {
M.defaults = function()
dofile(vim.g.base46_cache .. "lsp")
require ("nvchad.lsp").diagnostic_config()
require("nvchad.lsp").diagnostic_config()
require("lspconfig").lua_ls.setup {
on_attach = M.on_attach,
@ -75,6 +75,7 @@ M.defaults = function()
vim.fn.expand "$VIMRUNTIME/lua/vim/lsp",
vim.fn.stdpath "data" .. "/lazy/ui/nvchad_types",
vim.fn.stdpath "data" .. "/lazy/lazy.nvim/lua/lazy",
"${3rd}/luv/library",
},
maxPreload = 100000,
preloadFileSize = 10000,

View File

@ -1,75 +1,33 @@
dofile(vim.g.base46_cache .. "nvimtree")
local options = {
filters = {
dotfiles = false,
},
filters = { dotfiles = false },
disable_netrw = true,
hijack_netrw = true,
hijack_cursor = true,
hijack_unnamed_buffer_when_opening = false,
sync_root_with_cwd = true,
update_focused_file = {
enable = true,
update_root = false,
},
view = {
adaptive_size = false,
side = "left",
width = 30,
preserve_window_proportions = true,
},
git = {
enable = true,
ignore = true,
},
filesystem_watchers = {
enable = true,
},
actions = {
open_file = {
resize_window = true,
},
},
renderer = {
root_folder_label = false,
highlight_git = true,
highlight_opened_files = "none",
indent_markers = {
enable = true,
},
indent_markers = { enable = true },
icons = {
show = {
file = true,
folder = true,
folder_arrow = true,
git = true,
},
glyphs = {
default = "󰈚",
symlink = "",
folder = {
default = "",
empty = "",
empty_open = "",
open = "",
symlink = "",
symlink_open = "",
arrow_open = "",
arrow_closed = "",
},
git = {
unstaged = "",
staged = "",
unmerged = "",
renamed = "",
untracked = "",
deleted = "",
ignored = "",
},
git = { unmerged = "" },
},
},
},

View File

@ -2,50 +2,18 @@ dofile(vim.g.base46_cache .. "telescope")
local options = {
defaults = {
vimgrep_arguments = {
"rg",
"-L",
"--color=never",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--smart-case",
},
prompt_prefix = "",
selection_caret = " ",
entry_prefix = " ",
initial_mode = "insert",
selection_strategy = "reset",
sorting_strategy = "ascending",
layout_strategy = "horizontal",
layout_config = {
horizontal = {
prompt_position = "top",
preview_width = 0.55,
results_width = 0.8,
},
vertical = {
mirror = false,
},
width = 0.87,
height = 0.80,
preview_cutoff = 120,
},
file_sorter = require("telescope.sorters").get_fuzzy_file,
file_ignore_patterns = { "node_modules" },
generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter,
path_display = { "truncate" },
winblend = 0,
border = {},
borderchars = { "", "", "", "", "", "", "", "" },
color_devicons = true,
set_env = { ["COLORTERM"] = "truecolor" }, -- default = nil,
file_previewer = require("telescope.previewers").vim_buffer_cat.new,
grep_previewer = require("telescope.previewers").vim_buffer_vimgrep.new,
qflist_previewer = require("telescope.previewers").vim_buffer_qflist.new,
-- Developer configurations: Not meant for general override
buffer_previewer_maker = require("telescope.previewers").buffer_previewer_maker,
mappings = {
n = { ["q"] = require("telescope.actions").close },
},

View File

@ -7,26 +7,26 @@ map("i", "<C-l>", "<Right>", { desc = "move right" })
map("i", "<C-j>", "<Down>", { desc = "move down" })
map("i", "<C-k>", "<Up>", { desc = "move up" })
map("n", "<Esc>", "<cmd>noh<CR>", { desc = "general clear highlights" })
map("n", "<C-h>", "<C-w>h", { desc = "switch window left" })
map("n", "<C-l>", "<C-w>l", { desc = "switch window right" })
map("n", "<C-j>", "<C-w>j", { desc = "switch window down" })
map("n", "<C-k>", "<C-w>k", { desc = "switch window up" })
map("n", "<C-s>", "<cmd>w<CR>", { desc = "file save" })
map("n", "<C-c>", "<cmd>%y+<CR>", { desc = "file copy whole" })
map("n", "<Esc>", "<cmd>noh<CR>", { desc = "General Clear highlights" })
map("n", "<leader>n", "<cmd>set nu!<CR>", { desc = "toggle line number" })
map("n", "<leader>rn", "<cmd>set rnu!<CR>", { desc = "toggle relative number" })
map("n", "<leader>ch", "<cmd>NvCheatsheet<CR>", { desc = "toggle nvcheatsheet" })
map("n", "<C-s>", "<cmd>w<CR>", { desc = "General Save file" })
map("n", "<C-c>", "<cmd>%y+<CR>", { desc = "General Copy whole file" })
map("n", "<leader>n", "<cmd>set nu!<CR>", { desc = "Toggle line number" })
map("n", "<leader>rn", "<cmd>set rnu!<CR>", { desc = "Toggle relative number" })
map("n", "<leader>ch", "<cmd>NvCheatsheet<CR>", { desc = "Toggle nvcheatsheet" })
map("n", "<leader>fm", function()
require("conform").format { lsp_fallback = true }
end, { desc = "format files" })
end, { desc = "General Format file" })
-- global lsp mappings
map("n", "<leader>ds", vim.diagnostic.setloclist, { desc = "lsp diagnostic loclist" })
map("n", "<leader>ds", vim.diagnostic.setloclist, { desc = "LSP Diagnostic loclist" })
-- tabufline
map("n", "<leader>b", "<cmd>enew<CR>", { desc = "buffer new" })
@ -44,8 +44,8 @@ map("n", "<leader>x", function()
end, { desc = "buffer close" })
-- Comment
map("n", "<leader>/", "gcc", { desc = "comment toggle", remap = true })
map("v", "<leader>/", "gc", { desc = "comment toggle", remap = true })
map("n", "<leader>/", "gcc", { desc = "Toggle Comment", remap = true })
map("v", "<leader>/", "gc", { desc = "Toggle comment", remap = true })
-- nvimtree
map("n", "<C-n>", "<cmd>NvimTreeToggle<CR>", { desc = "nvimtree toggle window" })

View File

@ -1,8 +1,8 @@
return {
"nvim-lua/plenary.nvim",
{
"NvChad/base46",
branch = "v2.5",
build = function()
require("base46").load_all_highlights()
end,
@ -10,24 +10,14 @@ return {
{
"NvChad/ui",
branch = "v2.5",
lazy = false,
build = function()
dofile(vim.fn.stdpath "data" .. "/lazy/ui/lua/nvchad_feedback.lua")()
end,
config = function()
require "nvchad"
end,
},
{
"nvim-tree/nvim-web-devicons",
opts = function()
return { override = require "nvchad.icons.devicons" }
end,
config = function(_, opts)
dofile(vim.g.base46_cache .. "devicons")
require("nvim-web-devicons").setup(opts)
return { override = require "nvchad.icons.devicons" }
end,
},
@ -56,9 +46,6 @@ return {
opts = function()
return require "nvchad.configs.nvimtree"
end,
config = function(_, opts)
require("nvim-tree").setup(opts)
end,
},
{
@ -71,8 +58,6 @@ return {
end,
},
"nvim-lua/plenary.nvim",
-- formatting!
{
"stevearc/conform.nvim",
@ -81,9 +66,6 @@ return {
lua = { "stylua" },
},
},
config = function(_, opts)
require("conform").setup(opts)
end,
},
-- git stuff
@ -93,9 +75,6 @@ return {
opts = function()
return require "nvchad.configs.gitsigns"
end,
config = function(_, opts)
require("gitsigns").setup(opts)
end,
},
-- lsp stuff
@ -105,13 +84,6 @@ return {
opts = function()
return require "nvchad.configs.mason"
end,
config = function(_, opts)
require("mason").setup(opts)
vim.api.nvim_create_user_command("MasonInstallAll", function()
require("nvchad.mason").install_all(opts.ensure_installed)
end, {})
end,
},
{
@ -166,9 +138,6 @@ return {
opts = function()
return require "nvchad.configs.cmp"
end,
config = function(_, opts)
require("cmp").setup(opts)
end,
},
{