Skip to content

Commit

Permalink
chore: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Mar 16, 2023
1 parent 5582870 commit d542d2f
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 96 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ inspired by his.
- [lualine.nvim](https://github.com/nvim-lualine/lualine.nvim)
- [LuaSnip](https://github.com/L3MON4D3/LuaSnip)
- [mason-lspconfig.nvim](https://github.com/williamboman/mason-lspconfig.nvim)
- [mason-null-ls.nvim](https://github.com/jayp0521/mason-null-ls.nvim)
- [mason-null-ls.nvim](https://github.com/jay-babu/mason-null-ls.nvim)
- [mason.nvim](https://github.com/williamboman/mason.nvim)
- [material.nvim](https://github.com/marko-cerovac/material.nvim)
- [medical-spell-files](https://github.com/melvio/medical-spell-files)
Expand Down
148 changes: 75 additions & 73 deletions lazy-lock.json

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions lua/config/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
})

-- Set indent level for certain filetypes
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = { "lua", "query", "javascript", "typescript" },
vim.api.nvim_create_autocmd({ "FileType", "BufRead" }, {
pattern = { "firrtl", "lua", "javascript", "typescript", "text", "query" },
callback = function()
vim.bo.shiftwidth = 2
vim.bo.tabstop = 2
Expand All @@ -59,7 +59,9 @@ vim.api.nvim_create_autocmd({ "FileType" }, {

-- Tree-Sitter highlighting for filetypes not autodetected
vim.filetype.add({
extension = {},
extension = {
qmldir = "qmldir",
},
})

-- close dap-float with <q>
Expand Down
3 changes: 2 additions & 1 deletion lua/config/lazy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ require("lazy").setup({
-- add LazyVim and import its plugins
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
-- import any extras modules here
-- { import = "lazyvim.plugins.extras.coding.copilot" },
{ import = "lazyvim.plugins.extras.lang.typescript" },
{ import = "lazyvim.plugins.extras.lang.json" },
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
-- import/override with your plugins
{ import = "plugins" },
{ import = "plugins.extras.coding.copilot" },
{ import = "plugins.extras.dev.treesitter" },
{ import = "plugins.extras.lang.clangd" },
{ import = "plugins.extras.lang.copilot" },
{ import = "plugins.extras.lang.csharp" },
{ import = "plugins.extras.lang.go" },
{ import = "plugins.extras.lang.java" },
Expand Down
28 changes: 14 additions & 14 deletions lua/plugins/colorscheme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,7 @@ return {
end,
},
{ "projekt0n/github-nvim-theme", lazy = false },
{
"rebelot/kanagawa.nvim",
lazy = false,
config = function()
local kanagawa = require("kanagawa")
kanagawa.setup()
end,
},
{ "rebelot/kanagawa.nvim", lazy = false, config = true },
{ "Shatur/neovim-ayu", lazy = false },
{ "shaunsingh/oxocarbon.nvim", lazy = false },
{ "LunarVim/horizon.nvim", lazy = false },
Expand All @@ -103,14 +96,12 @@ return {
"tokyonight.nvim",
lazy = false,
priority = 1000,
opts = function()
opts = function(_, opts)
return {
style = "moon",
-- transparent = true,
-- styles = {
-- sidebars = "transparent",
-- floats = "transparent",
-- },
styles = {
keywords = { italic = false },
},
sidebars = {
"qf",
"vista_kind",
Expand All @@ -120,6 +111,8 @@ return {
"startuptime",
"Outline",
},
---@param hl Highlights
---@param c ColorScheme
on_highlights = function(hl, c)
hl.CursorLineNr = { fg = c.orange, bold = true }
hl.LineNr = { fg = c.orange, bold = true }
Expand All @@ -141,6 +134,13 @@ return {
hl.TSRainbowGreen = { fg = c.green2 }
hl.TSRainbowViolet = { fg = c.purple }
hl.TSRainbowCyan = { fg = c.cyan }

-- upcoming nvim-treesitter PR
hl["@string.documentation"] = { fg = c.yellow }
hl["@comment.documentation"] = { fg = "#636da6", italic = false, style = { italic = false } }

-- Smali
hl["@parameter.builtin"] = { fg = "#efc890" }
end,
}
end,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ return {
{
"zbirenbaum/copilot.lua",
lazy = false,
config = true,
cmd = "Copilot",
build = ":Copilot auth",
opts = {
panel = { enabled = false },
suggestion = { auto_trigger = true },
plugin_manager_path = vim.fn.stdpath("data") .. "/lazy",
},
},

Expand Down
4 changes: 2 additions & 2 deletions lua/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ return {
dashboard.section.buttons.val = {
dashboard.button("p", "" .. " Open project", "<cmd>Telescope project display_type=full<cr>"),
dashboard.button("e", "" .. " New file", "<cmd>ene <BAR> startinsert<cr>"),
dashboard.button("f", "" .. " Find file", "<cmd>cd $HOME/Projects | Telescope find_files<cr>"),
dashboard.button("f", "" .. " Find file", "<cmd>cd $HOME/projects | Telescope find_files<cr>"),
dashboard.button("r", "" .. " Recent files", "<cmd>Telescope oldfiles <cr>"),
dashboard.button("s", "" .. " Restore Session", [[:lua require("persistence").load() <cr>]]),
dashboard.button("c", "" .. " Config", ":e $MYVIMRC | :cd %:p:h | Telescope file_browser<cr>"),
Expand Down Expand Up @@ -147,7 +147,7 @@ return {
event = "VeryLazy",
opts = {
themes = {
markdown = { colorscheme = "tokyonight-storm" },
markdown = { colorscheme = "rose-pine" },
help = { colorscheme = "oxocarbon", background = "dark" },
},
},
Expand Down

0 comments on commit d542d2f

Please sign in to comment.