Config
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
local M = {}
|
||||
|
||||
M.base46 = {
|
||||
theme = "onedark",
|
||||
|
||||
theme = "gruvchad",
|
||||
-- transparency = true,
|
||||
-- hl_override = {
|
||||
-- Comment = { italic = true },
|
||||
-- ["@comment"] = { italic = true },
|
||||
@@ -21,4 +21,34 @@ M.base46 = {
|
||||
-- }
|
||||
--}
|
||||
|
||||
|
||||
M.nvdash = {
|
||||
load_on_startup = true,
|
||||
|
||||
header = {
|
||||
"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⠀⠀⠀⠀",
|
||||
"⠀⠀⠀⢸⠛⠒⠒⠀⠤⢤⣤⡔⠚⠉⠀⢸⠀⠀⠀⠀",
|
||||
"⠀⠀⠀⢸⡄⢀⠴⣊⠉⠀⢀⡈⠉⠙⠒⠾⣙⡦⠄⠀",
|
||||
"⠀⠠⠴⡁⡽⣡⠊⠁⠀⠀⢰⠳⡌⣦⡀⠀⠈⢳⣄⠀",
|
||||
"⠀⠀⠀⢸⢱⠃⠀⠀⢀⡴⠃⠀⡿⠃⠙⢦⡀⠘⣏⠁",
|
||||
"⠀⠀⠀⡆⢸⡄⢠⣾⠉⠙⡆⠀⠀⠀⣼⡏⠙⣦⣸⠀",
|
||||
"⠀⠀⢰⠇⠈⢷⢾⠄⠀⠤⠅⠀⠀⠀⠦⠤⠤⣇⡿⠀",
|
||||
"⠀⠀⣼⡆⠀⠀⢸⠀⠀⢀⡄⠒⠒⠒⡆⠀⣠⢞⣡⠀",
|
||||
"⠀⠙⣅⣣⣀⣀⣸⣦⣄⣈⣇⣀⣀⣤⠗⢻⣅⡜⠻⠆",
|
||||
"⠀⠘⠧⠤⠤⠽⣀⣀⡿⢿⣟⣿⣉⣉⠭⠭⠤⠼⠃⠀",
|
||||
"⠀⠀⠀⠀⠀⢄⡀⢠⠇⠀⠉⠘⡇⠁⣀⠄⠠⠄⡀⠀",
|
||||
"⠉⠒⠤⣀⠀⠀⡈⣽⠀⠀⠀⠀⢸⡍⣀⠀⠀⡀⠀⠂",
|
||||
"⠀⠀⠀⠀⠀⠀⢀⡿⠀⠀⠀⠀⠀⢳⢀⠈⠀⠀⠀⠀",
|
||||
"⠀⠀⡠⠂⠀⠀⣰⢧⠌⢄⠖⡔⠡⡞⣧⠀⠈⠑⢄⠀",
|
||||
"⠠⠊⠀⠀⠀⠊⠈⠻⡿⠛⠛⠛⠻⠽⠀⠃⠀⠀⠈⠣",
|
||||
},
|
||||
|
||||
buttons = {
|
||||
{ txt = " Find File", keys = "Spc f f", cmd = "Telescope find_files" },
|
||||
{ txt = " Recent Files", keys = "Spc f o", cmd = "Telescope oldfiles" },
|
||||
-- more... check nvconfig.lua file for full list of buttons
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
return M
|
||||
|
||||
@@ -4,7 +4,7 @@ require("nvchad.configs.lspconfig").defaults()
|
||||
local lspconfig = require "lspconfig"
|
||||
|
||||
-- EXAMPLE
|
||||
local servers = { "html", "cssls" }
|
||||
local servers = { "html", "cssls","rust_analyzer" }
|
||||
local nvlsp = require "nvchad.configs.lspconfig"
|
||||
|
||||
-- lsps with default config
|
||||
|
||||
@@ -7,4 +7,10 @@ local map = vim.keymap.set
|
||||
map("n", ";", ":", { desc = "CMD enter command mode" })
|
||||
map("i", "jk", "<ESC>")
|
||||
|
||||
map("n","<C-PageDown>", "<cmd>bnext<cr>", { desc = "Next buffer" })
|
||||
map("n","<C-PageUp>", "<cmd>bprevious<cr>",{ desc = "Previous buffer" })
|
||||
map('n',"gra", function() vim.lsp.buf.code_action() end, {desc = "vim.lsp.buf.code_action()" })
|
||||
map("x","gra", function() vim.lsp.buf.code_action() end, { desc = "vim.lsp.buf.code_action()" })
|
||||
map("n","grn", function() vim.lsp.buf.rename() end ,{desc = "vim.lsp.buf.rename()" })
|
||||
map("n","grr", function() vim.lsp.buf.references() end ,{ desc = "vim.lsp.buf.references()" })
|
||||
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
|
||||
|
||||
Reference in New Issue
Block a user