copy over most settings from v3

This commit is contained in:
Paul Campbell 2024-04-11 08:04:03 +01:00
parent adabffc683
commit b93c065ff4
11 changed files with 93 additions and 11 deletions

View file

@ -1,4 +1,4 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- AstroCommunity: import any community modules here
-- We import this file in `lazy_setup.lua` before the `plugins/` folder.
@ -9,4 +9,62 @@ return {
"AstroNvim/astrocommunity",
{ import = "astrocommunity.pack.lua" },
-- import/override with your plugins folder
-- colorscheme
{ import = "astrocommunity.colorscheme.everforest" },
-- completion
-- { import = "astrocommunity.completion.codeium-vim" },
-- { import = "astrocommunity.completion.copilot-lua-cmp" },
-- diagnostics
{ import = "astrocommunity.diagnostics.lsp_lines-nvim" },
{ import = "astrocommunity.diagnostics.trouble-nvim" },
-- editing-support
{ import = "astrocommunity.editing-support.treesj" },
{ import = "astrocommunity.editing-support.todo-comments-nvim" },
{ import = "astrocommunity.editing-support.rainbow-delimiters-nvim" },
{ import = "astrocommunity.editing-support.auto-save-nvim" },
{ import = "astrocommunity.editing-support.refactoring-nvim" },
-- { import = "astrocommunity.editing-support.wildfire-nvim" }, -- Vim:E523: Not allowed here broken @1729fac - Aug 21, 2023 - https://github.com/SUSTech-data/wildfire.nvim/commits/master/
-- file-explorer
{ import = "astrocommunity.file-explorer.oil-nvim" },
-- git
-- { import = "astrocommunity.git.neogit" },
-- lsp
{ import = "astrocommunity.lsp.inc-rename-nvim" },
{ import = "astrocommunity.lsp.lsp-inlayhints-nvim" },
{ import = "astrocommunity.lsp.lsp-signature-nvim" },
-- motion
{ import = "astrocommunity.motion.flash-nvim" },
{ import = "astrocommunity.motion.hop-nvim" },
-- pack
{ import = "astrocommunity.pack.bash" },
{ import = "astrocommunity.pack.docker" },
{ import = "astrocommunity.pack.full-dadbod" },
{ import = "astrocommunity.pack.html-css" },
{ import = "astrocommunity.pack.json" },
{ import = "astrocommunity.pack.java" },
{ import = "astrocommunity.pack.markdown" },
-- { import = "astrocommunity.pack.python" },
{ import = "astrocommunity.pack.rust" },
-- { import = "astrocommunity.pack.terraform" },
{ import = "astrocommunity.pack.typescript-all-in-one" },
{ import = "astrocommunity.pack.yaml" },
-- scrolling
{ import = "astrocommunity.scrolling.nvim-scrollbar" },
-- test
-- { import = "astrocommunity.test.neotest" },
-- { import = "astrocommunity.test.nvim-coverage" },
-- workflow
{ import = "astrocommunity.workflow.hardtime-nvim" },
}

View file

@ -1,4 +1,4 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- AstroCore provides a central place to modify mappings, vim options, autocommands, and more!
-- Configuration documentation can be found with `:h astrocore`
@ -43,7 +43,7 @@ return {
-- NOTE: keycodes follow the casing in the vimdocs. For example, `<Leader>` must be capitalized
mappings = {
-- first key is the mode
n = {
n = { -- normal mode
-- second key is the lefthand side of the map
-- navigate buffer tabs with `H` and `L`
@ -65,10 +65,12 @@ return {
-- quick save
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
},
t = {
t = { -- terminal mode
-- setting a mapping to false will disable it
-- ["<esc>"] = false,
},
-- i - insert mode
-- v - visual mode
},
},
}

View file

@ -1,4 +1,4 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- AstroLSP allows you to customize the features in AstroNvim's LSP configuration engine
-- Configuration documentation can be found with `:h astrolsp`

View file

@ -1,4 +1,4 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- AstroUI provides the basis for configuring the AstroNvim User Interface
-- Configuration documentation can be found with `:h astroui`
@ -12,6 +12,7 @@ return {
opts = {
-- change colorscheme
colorscheme = "astrodark",
-- colorscheme = "everforest",
-- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes
highlights = {
init = { -- this table overrides highlights in all themes

View file

@ -1,4 +1,4 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- Customize Mason plugins

View file

@ -1,4 +1,4 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- Customize None-ls sources

18
lua/plugins/silicon.lua Normal file
View file

@ -0,0 +1,18 @@
return {
"michaelrommel/nvim-silicon",
lazy = true,
cmd = "Silicon",
keys = {
{ "<leader>sc", ":Silicon<CR>", desc = "Snapshot code block", mode = { "v" } }
},
config = function()
require("silicon").setup({
-- Configuration here, or leave empty to use defaults
font = "VictorMono Nerd Font Mono=34;Noto Color Emoji=34",
theme = "Dracula",
window_title = function()
return vim.fn.fnamemodify(vim.api.nvim_buf_get_name(vim.api.nvim_get_current_buf()), ":t")
end,
})
end
}

View file

@ -1,4 +1,4 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- Customize Treesitter

View file

@ -0,0 +1,3 @@
return {
{ "dmmulroy/ts-error-translator.nvim" },
}

View file

@ -1,4 +1,4 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- You can also add or configure plugins by creating files in this `plugins/` folder
-- Here are some examples:

View file

@ -1,4 +1,4 @@
if true then return end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- if true then return end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- This will run last in the setup process and is a good place to configure
-- things like custom filetypes. This just pure lua so anything that doesn't