Compare commits

..

17 Commits

Author SHA1 Message Date
0bdaff2282 mason lsp 2026-01-30 23:35:41 -06:00
cbf12def45 jphp sup 2026-01-30 10:45:28 -06:00
eab1653d4e plugins 2026-01-26 16:04:02 -06:00
d9dbec840a Update README.md 2026-01-14 13:17:48 -06:00
poslop
2c6ea74dec update readme install 2026-01-14 13:17:02 -06:00
poslop
efb9359686 gitignore 2026-01-14 13:12:54 -06:00
Connor Denihan
e3572e1f5e Update chadrc.lua (#91) 2025-07-31 10:46:58 +05:30
Connor Denihan
5c656910f0 Fix: Grammatical Error in README.md 2025-06-20 22:46:27 +05:30
siduck
925399d90c add example of autocmds by default 2025-05-25 11:49:51 +05:30
Sidhanth Rathod
2b4293a4c1 Update lspconfig.lua 2025-05-04 13:50:03 +05:30
siduck
85404dcb03 add example for blink users 2025-04-15 07:55:35 +05:30
siduck
2ef0168470 use vim.lsp.config & vim.lsp.enable 2025-04-15 07:55:31 +05:30
Sidhanth Rathod
c3d1fb646a Update chadrc.lua 2025-01-12 06:29:04 +05:30
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
12 changed files with 57 additions and 51 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
lazy-lock.json

View File

@@ -1,6 +1,6 @@
column_width = 120
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
indent_width = 4
quote_style = "AutoPreferDouble"
call_parentheses = "None"

View File

@@ -1,4 +1,8 @@
**This repo is supposed to used as config by NvChad users!**
## Install
```
git clone https://git.archfox.org/poslop/nvbad ~/.config/nvim && nvim
```
**This repo is supposed to be 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"`

View File

@@ -1,4 +1,4 @@
vim.g.base46_cache = vim.fn.stdpath "data" .. "/nvchad/base46/"
vim.g.base46_cache = vim.fn.stdpath "data" .. "/base46/"
vim.g.mapleader = " "
-- bootstrap lazy and all plugins
@@ -30,7 +30,7 @@ dofile(vim.g.base46_cache .. "defaults")
dofile(vim.g.base46_cache .. "statusline")
require "options"
require "nvchad.autocmds"
require "autocmds"
vim.schedule(function()
require "mappings"

1
lua/autocmds.lua Normal file
View File

@@ -0,0 +1 @@
require "nvchad.autocmds"

View File

@@ -1,5 +1,5 @@
-- 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
@@ -14,4 +14,11 @@ M.base46 = {
-- },
}
-- M.nvdash = { load_on_startup = true }
-- M.ui = {
-- tabufline = {
-- lazyload = false
-- }
-- }
return M

View File

@@ -1,24 +1,6 @@
-- load defaults i.e lua_lsp
require("nvchad.configs.lspconfig").defaults()
local lspconfig = require "lspconfig"
-- local servers = { "phpactor" }
-- vim.lsp.enable(servers)
-- EXAMPLE
local servers = { "html", "cssls" }
local nvlsp = require "nvchad.configs.lspconfig"
-- 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,
}
end
-- configuring single server, example: typescript
-- lspconfig.ts_ls.setup {
-- on_attach = nvlsp.on_attach,
-- on_init = nvlsp.on_init,
-- capabilities = nvlsp.capabilities,
-- }
-- read :h vim.lsp.config for changing options of lsp servers

6
lua/plugins/conform.lua Normal file
View File

@@ -0,0 +1,6 @@
return {
{
"stevearc/conform.nvim",
opts = require "configs.conform",
}
}

View File

@@ -1,25 +0,0 @@
return {
{
"stevearc/conform.nvim",
-- event = 'BufWritePre', -- uncomment for format on save
opts = require "configs.conform",
},
-- These are some examples, uncomment them if you want to see them work!
{
"neovim/nvim-lspconfig",
config = function()
require "configs.lspconfig"
end,
},
-- {
-- "nvim-treesitter/nvim-treesitter",
-- opts = {
-- ensure_installed = {
-- "vim", "lua", "vimdoc",
-- "html", "css"
-- },
-- },
-- },
}

8
lua/plugins/lsp.lua Normal file
View File

@@ -0,0 +1,8 @@
return {
{
"neovim/nvim-lspconfig",
config = function()
require "configs.lspconfig"
end,
}
}

5
lua/plugins/markdown.lua Normal file
View File

@@ -0,0 +1,5 @@
return {
{
"iamcco/markdown-preview.nvim"
}
}

17
lua/plugins/mason.lua Normal file
View File

@@ -0,0 +1,17 @@
return {
{
"williamboman/mason-lspconfig.nvim",
event = { "BufReadPre", "BufNewFile" },
dependencies = {
"mason-org/mason.nvim",
"neovim/nvim-lspconfig",
},
opts = {
ensure_installed = {
"phpactor",
"lua_ls",
"nil_ls"
}
}
}
}