Fix configs

This commit is contained in:
Ismo Vuorinen
2023-02-16 17:05:13 +02:00
parent e3fa6772f0
commit 9929616f55
4 changed files with 31 additions and 80 deletions

View File

@@ -14,25 +14,11 @@ local config = {
pin_plugins = nil, -- nil, true, false (nil will pin plugins on stable only)
skip_prompts = false, -- skip prompts about breaking changes
show_changelog = true, -- show the changelog after performing an update
auto_reload = false, -- automatically reload and sync packer after a successful update
auto_quit = false -- automatically quit the current session after a successful update
-- remotes = { -- easily add new remotes to track
-- ["remote_name"] = "https://remote_url.come/repo.git", -- full remote url
-- ["remote2"] = "github_user/repo", -- GitHub user/repo shortcut,
-- ["remote3"] = "github_user", -- GitHub user assume AstroNvim fork
-- },
auto_reload = true, -- automatically reload and sync packer after a successful update
auto_quit = true -- automatically quit the current session after a successful update
},
-- Set colorscheme to use
colorscheme = "default_theme",
-- Add highlight groups in any theme
highlights = {
-- init = { -- this table overrides highlights in all themes
-- Normal = { bg = "#000000" },
-- }
-- duskfox = { -- a table of overrides/changes to the duskfox theme
-- Normal = { bg = "#000000" },
-- },
},
-- set vim options here (vim.<first_key>.<second_key> = value)
options = {
opt = {
@@ -272,60 +258,6 @@ local config = {
paths = {}
}
},
-- CMP Source Priorities
-- modify here the priorities of default cmp sources
-- higher value == higher priority
-- The value can also be set to a boolean for disabling default sources:
-- false == disabled
-- true == 1000
cmp = {
source_priority = {
nvim_lsp = 1000,
luasnip = 750,
buffer = 500,
path = 250
}
},
-- Customize Heirline options
-- heirline = {
-- -- Customize different separators between sections
-- separators = {
-- tab = { "", "" },
-- },
-- -- Customize colors for each element each element has a `_fg` and a `_bg`
-- colors = function(colors)
-- colors.git_branch_fg = astronvim.get_hlgroup "Conditional"
-- return colors
-- end,
-- -- Customize attributes of highlighting in Heirline components
-- attributes = {
-- -- styling choices for each heirline element, check possible attributes with `:h attr-list`
-- git_branch = { bold = true }, -- bold the git branch statusline component
-- },
-- -- Customize if icons should be highlighted
-- icon_highlights = {
-- breadcrumbs = false, -- LSP symbols in the breadcrumbs
-- file_icon = {
-- winbar = false, -- Filetype icon in the winbar inactive windows
-- statusline = true, -- Filetype icon in the statusline
-- },
-- },
-- },
-- Modify which-key registration (Use this with mappings table in the above.)
["which-key"] = {
-- Add bindings which show up as group name
register = {
-- first key is the mode, n == normal mode
n = {
-- second key is the prefix, <leader> prefixes
["<leader>"] = {
-- third key is the key to bring up next level and its displayed
-- group name in which-key top level menu
["b"] = { name = "Buffer" }
}
}
}
},
-- This function is run last and is a good place to configuring
-- 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

View File

@@ -1,8 +1,4 @@
return {
-- You can disable default plugins as follows:
["goolord/alpha-nvim"] = { disable = false },
["max397574/better-escape.nvim"] = { disable = false },
-- You can also add new plugins here as well:
["wakatime/vim-wakatime"] = {
opt = true,
setup = function() table.insert(astronvim.file_plugins, "vim-wakatime") end,

View File

@@ -21,11 +21,9 @@ return {
"phpactor",
"psalm",
"pyright",
"spectral",
"stylelint_lsp",
"sqls",
"tailwindcss",
"terraformls",
"tsserver",
"vuels",
"yamlls"

View File

@@ -2,9 +2,34 @@ return {
-- Automatically install missing parsers when entering buffer
auto_install = true,
ensure_installed = {
"c", "help", "bash", "comment", "diff", "dockerfile", "html", "json",
"json5", "javascript", "latex", "markdown", "php", "phpdoc", "python",
"scss", "terraform", "todotxt", "toml", "typescript", "vim", "vue",
"yaml"
"help",
"bash",
"c",
"cmake",
"comment",
"diff",
"dockerfile",
"gitignore",
"graphql",
"html",
"javascript",
"json",
"json5",
"latex",
"lua",
"markdown",
"php",
"phpdoc",
"python",
"scss",
"sql",
"terraform",
"todotxt",
"toml",
"typescript",
"vim",
"vue",
"yaml",
}
}