Ported config from last job

main
Ashelyn Dawn 7 months ago
parent 1321173cf6
commit bd801ec902
No known key found for this signature in database
GPG Key ID: D1980B8C6F349BC1

1
.gitignore vendored

@ -0,0 +1 @@
private.lua

@ -1,3 +1,12 @@
local function map(mode, lhs, rhs, opts)
local options = { noremap = true }
if opts then
options = vim.tbl_extend("force", options, opts)
end
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end
return {
-- Configure AstroNvim updates
updater = {
@ -18,7 +27,7 @@ return {
},
-- Set colorscheme to use
colorscheme = "astrodark",
colorscheme = "catppuccin",
-- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on
diagnostics = {
@ -31,7 +40,7 @@ return {
formatting = {
-- control auto formatting on save
format_on_save = {
enabled = true, -- enable or disable format on save globally
enabled = false, -- enable or disable format on save globally
allow_filetypes = { -- enable format on save for specified filetypes only
-- "go",
},
@ -69,17 +78,7 @@ return {
-- augroups/autocommands and custom filetypes also this just pure lua so
-- anything that doesn't fit in the normal config locations above can go here
polish = function()
-- Set up custom filetypes
-- vim.filetype.add {
-- extension = {
-- foo = "fooscript",
-- },
-- filename = {
-- ["Foofile"] = "fooscript",
-- },
-- pattern = {
-- ["~/%.config/foo/.*"] = "fooscript",
-- },
-- }
vim.cmd "set nornu"
map("t", "jkl;", "<C-\\><C-n>'")
end,
}

@ -1,7 +1,8 @@
local private_vars = require 'user.private'
return {
-- You can also add new plugins here as well:
-- Add plugins, the lazy syntax
-- "andweeb/presence.nvim",
-- {
-- "ray-x/lsp_signature.nvim",
-- event = "BufRead",
@ -9,4 +10,69 @@ return {
-- require("lsp_signature").setup()
-- end,
-- },
{
"andweeb/presence.nvim",
event = "BufRead",
config = function()
require("presence").setup({
auto_update = true,
blacklist = private_vars.presence_blacklist,
})
end,
},
{
"ahmedkhalf/project.nvim",
event = "BufRead",
config = function()
require("project_nvim").setup {
detection_methods = { "pattern", "lsp" },
patterns = { ".git" }
}
end,
},
{
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
config = function()
require("catppuccin").setup({
flavour = "macchiato",
transparent_background = true,
term_colors = true,
})
end,
},
{
"APZelos/blamer.nvim",
name = "blamer",
event = "VeryLazy",
config = function()
vim.cmd("BlamerShow")
end,
},
{
"onsails/lspkind.nvim",
opts = function(_, opts)
-- use codicons preset
opts.preset = "codicons"
-- set some missing symbol types
opts.symbol_map = {
Array = "",
Boolean = "",
Key = "",
Namespace = "",
Null = "",
Number = "",
Object = "",
Package = "",
String = "",
}
end
},
}

Loading…
Cancel
Save