mirror of
https://github.com/Dannecron/nvchad-starter.git
synced 2025-12-25 11:52:35 +03:00
customize config
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.idea/
|
||||
|
||||
lazy-lock.json
|
||||
@@ -1,24 +1,22 @@
|
||||
-- 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/v3.0/lua/nvconfig.lua
|
||||
-- Please read that file to know all available options :(
|
||||
-- Please read that file to know all available options :(
|
||||
|
||||
---@type ChadrcConfig
|
||||
local M = {}
|
||||
|
||||
M.base46 = {
|
||||
theme = "onedark",
|
||||
|
||||
-- hl_override = {
|
||||
-- Comment = { italic = true },
|
||||
-- ["@comment"] = { italic = true },
|
||||
-- },
|
||||
theme = "one_light",
|
||||
changed_themes = { "one_light", "doomchad" },
|
||||
transparency = true,
|
||||
hl_override = {
|
||||
Comment = {
|
||||
italic = true,
|
||||
},
|
||||
},
|
||||
hl_add = {
|
||||
NvimTreeOpenedFolderName = { fg = "green", bold = true },
|
||||
},
|
||||
}
|
||||
|
||||
-- M.nvdash = { load_on_startup = true }
|
||||
-- M.ui = {
|
||||
-- tabufline = {
|
||||
-- lazyload = false
|
||||
-- }
|
||||
-- }
|
||||
|
||||
return M
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
local options = {
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
-- css = { "prettier" },
|
||||
-- html = { "prettier" },
|
||||
|
||||
javascript = { "prettier" },
|
||||
css = { "prettier" },
|
||||
html = { "prettier" },
|
||||
|
||||
sh = { "shfmt" },
|
||||
},
|
||||
|
||||
-- format_on_save = {
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
require("nvchad.configs.lspconfig").defaults()
|
||||
|
||||
local servers = { "html", "cssls" }
|
||||
local servers = {
|
||||
-- front-end
|
||||
"html",
|
||||
"cssls",
|
||||
-- static files
|
||||
"jsonls",
|
||||
"yamlls",
|
||||
-- docker
|
||||
"dockerls",
|
||||
"docker_compose_language_service",
|
||||
}
|
||||
vim.lsp.enable(servers)
|
||||
|
||||
-- read :h vim.lsp.config for changing options of lsp servers
|
||||
|
||||
@@ -6,5 +6,6 @@ local map = vim.keymap.set
|
||||
|
||||
map("n", ";", ":", { desc = "CMD enter command mode" })
|
||||
map("i", "jk", "<ESC>")
|
||||
map("v", ">", ">gv", { desc = "indent" })
|
||||
|
||||
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
|
||||
|
||||
@@ -12,17 +12,13 @@ return {
|
||||
require "configs.lspconfig"
|
||||
end,
|
||||
},
|
||||
|
||||
-- test new blink
|
||||
-- { import = "nvchad.blink.lazyspec" },
|
||||
|
||||
-- {
|
||||
-- "nvim-treesitter/nvim-treesitter",
|
||||
-- opts = {
|
||||
-- ensure_installed = {
|
||||
-- "vim", "lua", "vimdoc",
|
||||
-- "html", "css"
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
{
|
||||
"mistweaverco/kulala.nvim",
|
||||
ft = {"http", "rest"},
|
||||
opts = {
|
||||
global_keymaps = true,
|
||||
global_keymaps_prefix = "<leader>k",
|
||||
kulala_keymaps_prefix = "",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user