customize config

This commit is contained in:
2025-10-25 13:06:43 +07:00
parent e3572e1f5e
commit 2114855b8a
6 changed files with 43 additions and 31 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
.idea/
lazy-lock.json

View File

@@ -6,19 +6,17 @@
local M = {} local M = {}
M.base46 = { M.base46 = {
theme = "onedark", theme = "one_light",
changed_themes = { "one_light", "doomchad" },
-- hl_override = { transparency = true,
-- Comment = { italic = true }, hl_override = {
-- ["@comment"] = { italic = true }, Comment = {
-- }, italic = true,
},
},
hl_add = {
NvimTreeOpenedFolderName = { fg = "green", bold = true },
},
} }
-- M.nvdash = { load_on_startup = true }
-- M.ui = {
-- tabufline = {
-- lazyload = false
-- }
-- }
return M return M

View File

@@ -1,8 +1,12 @@
local options = { local options = {
formatters_by_ft = { formatters_by_ft = {
lua = { "stylua" }, lua = { "stylua" },
-- css = { "prettier" },
-- html = { "prettier" }, javascript = { "prettier" },
css = { "prettier" },
html = { "prettier" },
sh = { "shfmt" },
}, },
-- format_on_save = { -- format_on_save = {

View File

@@ -1,6 +1,16 @@
require("nvchad.configs.lspconfig").defaults() 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) vim.lsp.enable(servers)
-- read :h vim.lsp.config for changing options of lsp servers -- read :h vim.lsp.config for changing options of lsp servers

View File

@@ -6,5 +6,6 @@ local map = vim.keymap.set
map("n", ";", ":", { desc = "CMD enter command mode" }) map("n", ";", ":", { desc = "CMD enter command mode" })
map("i", "jk", "<ESC>") map("i", "jk", "<ESC>")
map("v", ">", ">gv", { desc = "indent" })
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>") -- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")

View File

@@ -12,17 +12,13 @@ return {
require "configs.lspconfig" require "configs.lspconfig"
end, end,
}, },
{
-- test new blink "mistweaverco/kulala.nvim",
-- { import = "nvchad.blink.lazyspec" }, ft = {"http", "rest"},
opts = {
-- { global_keymaps = true,
-- "nvim-treesitter/nvim-treesitter", global_keymaps_prefix = "<leader>k",
-- opts = { kulala_keymaps_prefix = "",
-- ensure_installed = { },
-- "vim", "lua", "vimdoc", },
-- "html", "css"
-- },
-- },
-- },
} }