Merge branch 'main' of https://github.com/NvChad/starter
This commit is contained in:
commit
80a0176c65
@ -1,4 +1,4 @@
|
|||||||
**This repo is supposed to used as config by NvChad users!**
|
**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.
|
- 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"`
|
||||||
|
|||||||
2
init.lua
2
init.lua
@ -30,7 +30,7 @@ dofile(vim.g.base46_cache .. "defaults")
|
|||||||
dofile(vim.g.base46_cache .. "statusline")
|
dofile(vim.g.base46_cache .. "statusline")
|
||||||
|
|
||||||
require "options"
|
require "options"
|
||||||
require "nvchad.autocmds"
|
require "autocmds"
|
||||||
|
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
require "mappings"
|
require "mappings"
|
||||||
|
|||||||
1
lua/autocmds.lua
Normal file
1
lua/autocmds.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
require "nvchad.autocmds"
|
||||||
@ -14,4 +14,11 @@ M.base46 = {
|
|||||||
-- },
|
-- },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- M.nvdash = { load_on_startup = true }
|
||||||
|
-- M.ui = {
|
||||||
|
-- tabufline = {
|
||||||
|
-- lazyload = false
|
||||||
|
-- }
|
||||||
|
-- }
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|||||||
@ -1,24 +1,6 @@
|
|||||||
-- load defaults i.e lua_lsp
|
|
||||||
require("nvchad.configs.lspconfig").defaults()
|
require("nvchad.configs.lspconfig").defaults()
|
||||||
|
|
||||||
local lspconfig = require "lspconfig"
|
|
||||||
|
|
||||||
-- EXAMPLE
|
|
||||||
local servers = { "html", "cssls" }
|
local servers = { "html", "cssls" }
|
||||||
local nvlsp = require "nvchad.configs.lspconfig"
|
vim.lsp.enable(servers)
|
||||||
|
|
||||||
-- lsps with default config
|
-- read :h vim.lsp.config for changing options of lsp servers
|
||||||
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,
|
|
||||||
-- }
|
|
||||||
|
|||||||
@ -13,6 +13,9 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- test new blink
|
||||||
|
-- { import = "nvchad.blink.lazyspec" },
|
||||||
|
|
||||||
-- {
|
-- {
|
||||||
-- "nvim-treesitter/nvim-treesitter",
|
-- "nvim-treesitter/nvim-treesitter",
|
||||||
-- opts = {
|
-- opts = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user