Compare commits

50 Commits

Author SHA1 Message Date
hakase 83d958ba47 update 2025-04-19 18:50:01 -05:00
hakase 4123a4752c fixed stuff for latest update 2025-04-19 18:32:51 -05:00
hakase 2a58ee17e7 post-update 2025-04-05 10:09:03 -05:00
hakase 6bcb31995a fixed ssh remote clipboard 2025-02-22 08:04:02 -06:00
hakase 1ce80bf79e enabled ssh remote clipboard 2025-02-22 07:59:55 -06:00
hakase 5f48a96e8c switched to fish 2025-02-22 06:53:14 -06:00
lsoriano-mcm f2e889b1d1 submitting assignment 2 2024-10-01 12:04:16 -05:00
hakase fde5adbe71 removed redundancies 2024-09-08 20:51:51 -05:00
hakase 5e73c24fdd feat: add go lsp and formatting 2024-09-08 20:45:18 -05:00
hakase 44a0ad24f1 🔥 removed neogit 2024-09-05 08:04:59 -05:00
hakase 6fe552e3dc feat: add lazygit 2024-09-05 08:03:12 -05:00
hakase 1a2d03d2c9 fix: telescope blocking view 2024-08-30 11:49:08 -05:00
hakase c8dfbf8aee sync 2024-08-26 07:31:26 -05:00
hakase d6905f2052 🧑💻 formatting 2024-08-20 08:13:26 -05:00
hakase 3beba645ef 🔧 add typescript 2024-08-20 07:03:11 -05:00
hakase 5fe351bbe1 🔧 add new mapping 2024-08-20 07:02:05 -05:00
hakase e61da45d1e added todo 2024-08-20 06:44:24 -05:00
sakamoto 0400a04c7c add cmdline telescope 2024-08-14 08:48:19 -05:00
sakamoto 574895ef9f 🔧 nvchad: removed spelling check 2024-07-29 07:47:04 -05:00
sakamoto 6848b2d504 🐛 nvchad: italics on conditions and repeats 2024-07-29 07:46:43 -05:00
Sakamoto 4b03162cb4 added spelling 2024-07-14 19:06:22 -05:00
Sakamoto af37decd58 added dashboard 2024-07-14 18:39:18 -05:00
Sakamoto Hiroshi d2a8b257fa ✏️ init: better phrasing 2024-07-05 18:20:38 -05:00
Sakamoto Hiroshi 72db09176e 📦️ plugins: dashboard-nvim 2024-07-05 18:16:24 -05:00
Sakamoto Hiroshi ad22420275 mapping: markdown toggle 2024-07-05 18:15:47 -05:00
Sakamoto Hiroshi c7c4a74600 use gitmoji using colon 2024-07-05 16:27:28 -05:00
Sakamoto Hiroshi 103946319c 💄 massive revamp 2024-07-02 10:00:09 -05:00
Sakamoto Hiroshi a07f92783c 🔧 added clangd 2024-07-01 16:03:45 -05:00
Sakamoto Hiroshi ca2ef7748b 🚸 qol colors 2024-06-29 20:53:43 -05:00
Sakamoto Hiroshi 989df347c0 🔧 switched to chocolate theme 2024-06-25 12:08:28 -05:00
Sakamoto Hiroshi 76130d8d42 added gitsigns 2024-06-25 12:08:12 -05:00
Sakamoto Hiroshi 2f2e49c6f3 🙈 added lazy-lock 2024-06-25 12:05:36 -05:00
Sakamoto Hiroshi 5b25dcb01b added typescript lsp 2024-06-25 12:05:08 -05:00
Sakamoto Hiroshi b0857954c4 added markdown preview 2024-06-23 16:00:25 -05:00
Sakamoto Hiroshi 4e41296560 ✏️a spacing 2024-06-22 14:03:24 -05:00
Sakamoto Hiroshi 70167bf1c8 personal changes 2024-06-22 13:10:22 -05:00
Sidhanth Rathod aad624221a Add UNLICENSE 2024-04-15 07:50:17 +05:30
Sidhanth Rathod 2730bbd210 Delete README.md 2024-04-15 06:44:23 +05:30
Sidhanth Rathod 3da16ca21b Delete LICENSE
as it is useless
2024-04-15 06:44:03 +05:30
Sidhanth Rathod d801a059ef Merge pull request #12 from sullrich84/patch-1
add missing comma
2024-03-26 15:17:59 +05:30
Sebastian Ullrich 260c70c958 add missing comma 2024-03-26 10:44:58 +01:00
Sidhanth Rathod 6a612b80f8 Merge pull request #11 from segyges/fix-init.lua
Update init.lua
2024-03-25 06:49:07 +05:30
segyges 330861bd93 Update init.lua
Fix typos in init.lua
2024-03-24 11:45:42 -05:00
Sidhanth Rathod 813f95e06e add note about nvconfig in chadrc 2024-03-23 11:49:07 +05:30
Sidhanth Rathod 94dc47f8bb add note in plugins file 2024-03-22 18:11:04 +05:30
siduck 70f66adb59 rm useless mapping 2024-03-18 06:41:03 +05:30
siduck 726248c2f3 add nvchad_types & .stylua.toml 2024-03-18 06:34:01 +05:30
siduck 9d47133ba1 update nvchad branch 2024-03-09 21:36:02 +05:30
siduck aa13916e94 add starter config files 2024-03-09 21:33:44 +05:30
Sidhanth Rathod 45a1b2c9a8 Initial commit 2024-03-09 21:32:32 +05:30
10 changed files with 375 additions and 132 deletions
-9
View File
@@ -1,9 +0,0 @@
**This repo is supposed to used as config by NvChad users!**
- 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 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!
+62 -3
View File
@@ -1,10 +1,10 @@
vim.g.base46_cache = vim.fn.stdpath "data" .. "/base46/"
vim.g.base46_cache = vim.fn.stdpath "data" .. "/nvchad/base46/"
vim.g.mapleader = " "
-- bootstrap lazy and all plugins
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
if not vim.loop.fs_stat(lazypath) then
local repo = "https://github.com/folke/lazy.nvim.git"
vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath }
end
@@ -20,18 +20,77 @@ require("lazy").setup({
lazy = false,
branch = "v2.5",
import = "nvchad.plugins",
config = function()
require "options"
end,
},
{ import = "plugins" },
}, lazy_config)
-- load plugins' setup
require("todo-comments").setup({})
-- load theme
dofile(vim.g.base46_cache .. "defaults")
dofile(vim.g.base46_cache .. "statusline")
require "options"
require "nvchad.autocmds"
-- shell
vim.opt.shell = "/bin/fish"
-- Disable inline diagnostics (virtual text)
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
virtual_text = false,
}
)
-- Function to show diagnostics in a floating window on hover
local function show_diagnostics_on_hover()
local opts = {
focusable = false,
close_events = { "BufLeave", "CursorMoved", "InsertEnter", "FocusLost" },
border = 'rounded',
source = 'always',
prefix = ' ',
}
vim.api.nvim_command('autocmd CursorHold * lua vim.diagnostic.open_float(nil, ' .. vim.inspect(opts) .. ')')
end
-- Call the function to set up the autocmd
show_diagnostics_on_hover()
vim.schedule(function()
require "mappings"
end)
-- enables remote clipboard
-- vim.g.clipboard = {
-- name = 'OSC 52',
-- copy = {
-- ['+'] = require('vim.ui.clipboard.osc52').copy('+'),
-- ['*'] = require('vim.ui.clipboard.osc52').copy('*'),
-- },
-- paste = {
-- ['+'] = require('vim.ui.clipboard.osc52').paste('+'),
-- ['*'] = require('vim.ui.clipboard.osc52').paste('*'),
-- },
-- }
-- Ruff and pyright cross-compatibility
vim.api.nvim_create_autocmd("LspAttach", {
group = vim.api.nvim_create_augroup('lsp_attach_disable_ruff_hover', { clear = true }),
callback = function(args)
local client = vim.lsp.get_client_by_id(args.data.client_id)
if client == nil then
return
end
if client.name == 'ruff' then
-- Disable hover in favor of Pyright
client.server_capabilities.hoverProvider = false
end
end,
desc = 'LSP: Disable hover capability from Ruff',
})
+61 -18
View File
@@ -1,26 +1,69 @@
-- This file needs to have same structure as nvconfig.lua
-- https://github.com/NvChad/ui/blob/v3.0/lua/nvconfig.lua
-- Please read that file to know all available options :(
-- This file needs to have same structure as nvconfig.lua
-- https://github.com/NvChad/NvChad/blob/v2.5/lua/nvconfig.lua
---@type ChadrcConfig
local M = {}
M.base46 = {
theme = "ayu_dark",
transparency = true,
theme_toggle = { "ayu_dark", "ayu_light" },
hl_override = {
Comment = { italic = true },
["@comment"] = { italic = true },
},
}
M.nvdash = { load_on_startup = true }
M.ui = {
tabufline = {
lazyload = false
}
-- theme = "nightowl",
theme = "decay",
transparency = true,
statusline = {
theme = "minimal",
},
hl_override = {
Include = {
italic = true,
},
-- for, while loops
Repeat = {
italic = true,
},
-- if statements
Conditional = {
italic = true,
},
-- class, with, as keywords
["@keyword"] = {
italic = true,
},
-- conditions
["@keyword.conditional"] = {
italic = true,
},
-- repeat
["@keyword.repeat"] = {
italic = true,
},
-- function keyword
["@keyword.function"] = {
italic = true,
},
-- return, yield keywords
["@keyword.return"] = {
bold = true,
},
-- function names
["@function"] = {
italic = false,
},
-- symbolic
["@operator"] = {
bold = true,
},
-- logical keywords
["@keyword.operator"] = {
italic = true,
},
-- function parameters
["@parameter"] = {
italic = true,
["@variable"] = {
italic = false,
},
},
},
}
return M
+6 -2
View File
@@ -1,9 +1,13 @@
local options = {
formatters_by_ft = {
lua = { "stylua" },
python = { "black" },
css = { "prettier" },
html = { "prettier" },
nix = { "alejandra" },
go = { "goimports", "gofmt" },
bash = {"beautysh"},
sh = {"beautysh"},
zsh = {"beautysh"},
},
-- format_on_save = {
@@ -13,4 +17,4 @@ local options = {
-- },
}
return options
require("conform").setup(options)
+47
View File
@@ -0,0 +1,47 @@
local header = {
[[]],
[[]],
[[]],
[[ ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗]],
[[ ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║]],
[[ ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║]],
[[ ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║]],
[[ ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║]],
[[ ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝]],
[[]],
[[]],
[[]],
}
local footer = {
[[]],
[[]],
'Don\'t know how to exit? Refer to the link below.',
'https://stackoverflow.com/questions/11828270/how-do-i-exit-vim',
}
local options = {
theme = 'hyper',
disable_move = false,
shortcut_type = 'letter',
shuffle_letter = true,
change_to_vcs_root = false,
config = {
header = header,
shortcut = {
{
desc = "😎 Skill Issue.",
},
},
footer = footer,
},
hide = {
statusline = true,
tabline = true,
winbar = true,
},
preview = {
},
}
require("dashboard").setup(options)
+61 -56
View File
@@ -1,71 +1,76 @@
local nvlsp = require "nvchad.configs.lspconfig"
-- EXAMPLE
local on_attach = require("nvchad.configs.lspconfig").on_attach
local on_init = require("nvchad.configs.lspconfig").on_init
local capabilities = require("nvchad.configs.lspconfig").capabilities
local lspconfig = require "lspconfig"
nvlsp.defaults() -- loads nvchad's defaults
local servers = { "html", "cssls", "clangd" }
local util = require "lspconfig/util"
-- lsps with default config
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = nvlsp.on_attach,
on_init = nvlsp.on_init,
capabilities = nvlsp.capabilities,
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
}
end
lspconfig.basedpyright.setup {
on_attach = nvlsp.on_attach,
-- on_init = nvlsp.on_init,
capabilities = nvlsp.capabilities,
-- typescript
lspconfig.ts_ls.setup {
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
}
-- python
lspconfig.basedpyright.setup{
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
filetypes = { "python" },
settings = {
pyright = {
disableOrganizeImports = true,
},
python = {
analysis = {
ignore = { '*' }
},
},
basedpyright = {
typeCheckingMode = "standard",
}
}
}
lspconfig.gopls.setup {
on_attach = on_attach,
capabilities = capabilities,
cmd = {"gopls"},
filetypes = { "go", "gomod", "gowork", "gotmpl" },
root_dir = util.root_pattern("go.work", "go.mod", ".git"),
settings = {
gopls = {
completeUnimported = true,
usePlaceholders = true,
analyses = {
unusedParameters = true,
}
}
}
}
---- ruff_lsp and pyright compatibility
-- local on_attach = function(client, bufnr)
-- if client.name == 'ruff_lsp' then
-- -- hover in favor of Pyright
-- client.server_capabilities.hoverProvider = false
-- end
-- end
--
lspconfig.ruff.setup{
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
init_options = {
settings = {
}
},
}
lspconfig.ruff.setup {
on_attach = nvlsp.on_attach,
-- on_init = nvlsp.on_init,
capabilities = nvlsp.capabilities,
settings = {
}
}
lspconfig.rust_analyzer.setup {
on_attach = nvlsp.on_attach,
-- on_init = nvlsp.on_init,
capabilities = nvlsp.capabilities,
settings = {
}
}
lspconfig.bashls.setup {
on_attach = nvlsp.on_attach,
-- on_init = nvlsp.on_init,
capabilities = nvlsp.capabilities,
settings = {
}
}
lspconfig.ts_ls.setup {
on_attach = nvlsp.on_attach,
-- on_init = nvlsp.on_init,
capabilities = nvlsp.capabilities,
settings = {
}
}
lspconfig.rnix.setup {
on_attach = nvlsp.on_attach,
capabilities = nvlsp.capabilities,
settings = {
}
}
+13
View File
@@ -0,0 +1,13 @@
local bufnr = vim.api.nvim_get_current_buf()
vim.keymap.set("n", "<leader>a", function()
vim.cmd.RustLsp "codeAction" -- supports rust-analyzer's grouping
-- or vim.lsp.buf.codeAction() if you don't want grouping.
end, { silent = true, buffer = bufnr })
vim.keymap.set(
"n",
"K", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions
function()
vim.cmd.RustLsp { "hover", "actions" }
end,
{ silent = true, buffer = bufnr }
)
+8 -6
View File
@@ -3,14 +3,16 @@ require "nvchad.mappings"
-- add yours here
local map = vim.keymap.set
local keymap = vim.api.nvim_set_keymap
map("n", ";", ":", { desc = "CMD enter command mode" })
map("i", "jk", "<ESC>")
-- map("n", "<leader>gh", ":Neogit <cr>")
map("n", "<leader>md", ":MarkdownPreviewToggle <cr>")
map("n", "<leader>tl", ":TodoLocList <cr>")
map("n", "<leader>td", ":TodoQuickFix <cr>")
map("n", "<leader>cr", ":!python3 % <cr>")
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
-- custom
map("n", "<leader>ss", ":lua vim.diagnostic.open_float(nil,{focus=false}) <cr>")
map("n", "<leader>sd", ":lua vim.diagnostic.setqflist() <cr>")
-- vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
+4 -4
View File
@@ -1,10 +1,10 @@
require "nvchad.options"
-- add yours here!
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
-- Show line diagnostics automatically in hover window
-- vim.o.updatetime = 250
-- vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
-- vim.opt.spelllang = "en_us"
-- vim.opt.spell = true
-- local o = vim.o
-- o.cursorlineopt ='both' -- to enable cursorline!
+113 -34
View File
@@ -2,59 +2,138 @@ return {
{
"stevearc/conform.nvim",
-- event = 'BufWritePre', -- uncomment for format on save
opts = require "configs.conform",
config = function()
require "configs.conform"
end,
},
-- These are some examples, uncomment them if you want to see them work!
{
"neovim/nvim-lspconfig",
config = function()
require("nvchad.configs.lspconfig").defaults()
require "configs.lspconfig"
end,
},
-- test new blink
{ import = "nvchad.blink.lazyspec" },
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"vim", "lua", "vimdoc",
"html", "css", "python",
"rust",
},
},
"williamboman/mason.nvim",
opts = {
ensure_installed = {
"lua-language-server",
"stylua",
"html-lsp",
"css-lsp",
"prettier",
"basedpyright", "mypy", "black", "ruff-lsp",
"goimports", "gofumpt", "gomodifytags", "impl", "delve",
"typescript-language-server",
"clangd",
},
},
},
{
"kdheepak/lazygit.nvim",
lazy = true,
cmd = {
"LazyGit",
"LazyGitConfig",
"LazyGitCurrentFile",
"LazyGitFilter",
"LazyGitFilterCurrentFile",
},
-- optional for floating window border decoration
dependencies = {
"nvim-lua/plenary.nvim",
},
-- setting the keybinding for LazyGit with 'keys' is recommended in
-- order to load the plugin when the command is run for the first time
keys = {
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"vim",
"lua",
"vimdoc",
"html",
"css",
"python",
"typescript",
"go",
"gomod",
"gowork",
"gosum",
},
},
},
{
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
config = function()
require("nvim-surround").setup{}
end,
},
{
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
build = "cd app && yarn install",
init = function()
vim.g.mkdp_filetypes = { "markdown" }
end,
ft = { "markdown" },
build = function()
vim.fn["mkdp#util#install"]()
end,
},
{
"lewis6991/gitsigns.nvim",
opts = {
current_line_blame = true,
},
},
{
'nvimdev/dashboard-nvim',
event = 'VimEnter',
config = function()
require "configs.dashboard"
end,
dependencies = { {'nvim-tree/nvim-web-devicons'}}
},
-- {
-- "nvim-telescope/telescope.nvim",
-- tag = "0.1.5",
-- dependencies = {
-- 'nvim-lua/plenary.nvim',
-- 'jonarrien/telescope-cmdline.nvim',
-- },
-- keys = {
-- { ':', '<cmd>Telescope cmdline<cr>', desc = 'Cmdline' }
-- },
-- opts = {
-- ...,
-- extensions = {
-- cmdline = {
-- },
-- },
-- ...
-- },
-- config = function(_, opts)
-- require("telescope").setup(opts)
-- require("telescope").load_extension('cmdline')
-- end,
-- },
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
opts = {}
},
{
"kdheepak/lazygit.nvim",
cmd = {
"LazyGit",
"LazyGitConfig",
"LazyGitCurrentFile",
"LazyGitFilter",
"LazyGitFilterCurrentFile",
},
-- optional for floating window border decoration
dependencies = { "nvim-lua/plenary.nvim", },
-- setting the keybinding for LazyGit with 'keys' is recommended in
-- order to load the plugin when the command is run for the first time
keys = {
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
}
},
{
'mrcjkb/rustaceanvim',
version = '^6', -- Recommended
lazy = false, -- This plugin is already lazy
},
}