mirror of
https://github.com/ivuorinen/astronvim_config.git
synced 2026-02-04 15:43:22 +00:00
Updated to v3 format, removed extra files
This commit is contained in:
@@ -1,105 +0,0 @@
|
||||
local colors = {
|
||||
red = "#d47d85",
|
||||
red_1 = "#ec5f67",
|
||||
grey = "#abb2bf",
|
||||
grey_1 = "#787e87",
|
||||
grey_2 = "#D3D3D3",
|
||||
black = "#1e222a",
|
||||
black_1 = "#252931",
|
||||
black_2 = "#2c323c",
|
||||
green = "#95be76",
|
||||
none = "NONE",
|
||||
}
|
||||
|
||||
return {
|
||||
highlights = {
|
||||
background = {
|
||||
fg = colors.grey_1,
|
||||
bg = colors.black_2,
|
||||
},
|
||||
|
||||
-- Buffers
|
||||
buffer_selected = {
|
||||
fg = colors.grey,
|
||||
bg = colors.black,
|
||||
},
|
||||
buffer_visible = {
|
||||
fg = colors.grey,
|
||||
bg = colors.black,
|
||||
},
|
||||
|
||||
-- Diagnostics
|
||||
error = {
|
||||
fg = colors.red_1,
|
||||
bg = colors.red_1,
|
||||
},
|
||||
error_diagnostic = {
|
||||
fg = colors.red_1,
|
||||
bg = colors.red_1,
|
||||
},
|
||||
|
||||
-- Close buttons
|
||||
close_button = {
|
||||
fg = colors.grey_1,
|
||||
bg = colors.black_2,
|
||||
},
|
||||
close_button_visible = {
|
||||
fg = colors.grey_2,
|
||||
bg = colors.black,
|
||||
},
|
||||
close_button_selected = {
|
||||
fg = colors.red,
|
||||
bg = colors.black,
|
||||
},
|
||||
fill = {
|
||||
fg = colors.grey_1,
|
||||
bg = colors.black_2,
|
||||
},
|
||||
indicator_selected = {
|
||||
fg = colors.black,
|
||||
bg = colors.black,
|
||||
},
|
||||
|
||||
-- Modified
|
||||
modified = {
|
||||
fg = colors.red,
|
||||
bg = colors.black_2,
|
||||
},
|
||||
modified_visible = {
|
||||
fg = colors.grey,
|
||||
bg = colors.black,
|
||||
},
|
||||
modified_selected = {
|
||||
fg = colors.green,
|
||||
bg = colors.black,
|
||||
},
|
||||
|
||||
-- Separators
|
||||
separator = {
|
||||
fg = colors.black_2,
|
||||
bg = colors.black_2,
|
||||
},
|
||||
separator_visible = {
|
||||
fg = colors.black,
|
||||
bg = colors.black,
|
||||
},
|
||||
separator_selected = {
|
||||
fg = colors.black_2,
|
||||
bg = colors.black_2,
|
||||
},
|
||||
|
||||
-- Tabs
|
||||
tab = {
|
||||
fg = colors.grey,
|
||||
bg = colors.black,
|
||||
},
|
||||
tab_selected = {
|
||||
fg = colors.black,
|
||||
bg = colors.black,
|
||||
},
|
||||
tab_close = {
|
||||
fg = colors.black,
|
||||
bg = colors.black,
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
local cmp = require "cmp"
|
||||
local luasnip = require "luasnip"
|
||||
return {
|
||||
completion = {
|
||||
completeopt = "menu,menuone,noinsert",
|
||||
},
|
||||
window = {
|
||||
documentation = {
|
||||
max_width = 40,
|
||||
},
|
||||
},
|
||||
mapping = {
|
||||
["<C-p>"] = cmp.mapping.select_prev_item { behavior = cmp.SelectBehavior.Select },
|
||||
["<C-n>"] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Select },
|
||||
["<C-k>"] = cmp.mapping.select_prev_item { behavior = cmp.SelectBehavior.Select },
|
||||
["<C-j>"] = cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Select },
|
||||
["<Tab>"] = cmp.mapping(function(fallback)
|
||||
if luasnip.jumpable(1) then
|
||||
luasnip.jump(1)
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, { "i", "s" }),
|
||||
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||
if luasnip.jumpable(-1) then
|
||||
luasnip.jump(-1)
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, { "i", "s" }),
|
||||
},
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
return {
|
||||
["wakatime/vim-wakatime"] = {
|
||||
opt = true,
|
||||
setup = function() table.insert(astronvim.file_plugins, "vim-wakatime") end,
|
||||
},
|
||||
["folke/zen-mode.nvim"] = {
|
||||
cmd = { "ZenMode" },
|
||||
config = function() require("user.plugins.zen-mode").config() end,
|
||||
},
|
||||
["nvim-treesitter/playground"] = {
|
||||
cmd = "TSHighlightCapturesUnderCursor",
|
||||
},
|
||||
["karb94/neoscroll.nvim"] = {
|
||||
opt = true,
|
||||
setup = function() table.insert(astronvim.file_plugins, "neoscroll.nvim") end,
|
||||
config = function() require("user.plugins.neoscroll").config() end,
|
||||
},
|
||||
["lvimuser/lsp-inlayhints.nvim"] = {
|
||||
module = "lsp-inlayhints",
|
||||
config = function() require "user.plugins.lsp-inlayhints" end,
|
||||
},
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
require("lsp-inlayhints").setup()
|
||||
@@ -1,31 +0,0 @@
|
||||
return function(config)
|
||||
config.preset = "codicons"
|
||||
config.symbol_map = {
|
||||
Text = " ",
|
||||
Method = " ",
|
||||
Function = " ",
|
||||
Constructor = " ",
|
||||
Field = " ",
|
||||
Variable = " ",
|
||||
Class = " ",
|
||||
Interface = " ",
|
||||
Module = " ",
|
||||
Property = " ",
|
||||
Unit = " ",
|
||||
Value = " ",
|
||||
Enum = " ",
|
||||
Keyword = " ",
|
||||
Snippet = " ",
|
||||
Color = " ",
|
||||
File = " ",
|
||||
Reference = " ",
|
||||
Folder = " ",
|
||||
EnumMember = " ",
|
||||
Constant = " ",
|
||||
Struct = " ",
|
||||
Event = " ",
|
||||
Operator = " ",
|
||||
TypeParameter = " ",
|
||||
}
|
||||
return config
|
||||
end
|
||||
@@ -1,31 +0,0 @@
|
||||
-- use mason-lspconfig to configure LSP installations
|
||||
return {
|
||||
automatic_installation = true,
|
||||
ensure_installed = {
|
||||
"ansiblels",
|
||||
"bashls",
|
||||
"clangd",
|
||||
"codeqlls",
|
||||
"cssls",
|
||||
"diagnosticls",
|
||||
"docker_compose_language_service",
|
||||
"dockerls",
|
||||
"emmet_ls",
|
||||
"eslint",
|
||||
"graphql",
|
||||
"html",
|
||||
"intelephense",
|
||||
"jsonls",
|
||||
"lua_ls",
|
||||
"marksman",
|
||||
"phpactor",
|
||||
"psalm",
|
||||
"pyright",
|
||||
"stylelint_lsp",
|
||||
"sqls",
|
||||
"tailwindcss",
|
||||
"tsserver",
|
||||
"vuels",
|
||||
"yamlls"
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
local M = {}
|
||||
|
||||
function M.config()
|
||||
local status_ok, neoscroll = pcall(require, "neoscroll")
|
||||
if not status_ok then return end
|
||||
|
||||
neoscroll.setup(require("core.utils").user_plugin_opts("plugins.neoscroll", {
|
||||
-- All these keys will be mapped to their corresponding default scrolling animation
|
||||
mappings = { "<C-u>", "<C-d>", "<C-b>", "<C-f>", "<C-y>", "<C-e>", "zt", "zz", "zb" },
|
||||
hide_cursor = true, -- Hide cursor while scrolling
|
||||
stop_eof = true, -- Stop at <EOF> when scrolling downwards
|
||||
use_local_scrolloff = false, -- Use the local scope of scrolloff instead of the global scope
|
||||
respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file
|
||||
cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further
|
||||
easing_function = nil, -- Default easing function
|
||||
pre_hook = nil, -- Function to run before the scrolling animation starts
|
||||
post_hook = nil, -- Function to run after the scrolling animation ends
|
||||
}))
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -1,75 +0,0 @@
|
||||
return function(config)
|
||||
local null_ls = require "null-ls"
|
||||
config.sources = {
|
||||
null_ls.builtins.code_actions.eslint,
|
||||
null_ls.builtins.code_actions.shellcheck,
|
||||
null_ls.builtins.code_actions.xo,
|
||||
|
||||
null_ls.builtins.diagnostics.actionlint,
|
||||
null_ls.builtins.diagnostics.ansiblelint,
|
||||
null_ls.builtins.diagnostics.dotenv_linter,
|
||||
null_ls.builtins.diagnostics.editorconfig_checker,
|
||||
null_ls.builtins.diagnostics.eslint,
|
||||
null_ls.builtins.diagnostics.flake8,
|
||||
null_ls.builtins.diagnostics.jsonlint,
|
||||
null_ls.builtins.diagnostics.luacheck,
|
||||
null_ls.builtins.diagnostics.markdownlint,
|
||||
null_ls.builtins.diagnostics.mypy,
|
||||
null_ls.builtins.diagnostics.php,
|
||||
null_ls.builtins.diagnostics.phpcs,
|
||||
null_ls.builtins.diagnostics.phpmd,
|
||||
null_ls.builtins.diagnostics.phpstan,
|
||||
null_ls.builtins.diagnostics.psalm,
|
||||
null_ls.builtins.diagnostics.pycodestyle,
|
||||
null_ls.builtins.diagnostics.pydocstyle,
|
||||
null_ls.builtins.diagnostics.pylint,
|
||||
null_ls.builtins.diagnostics.semgrep,
|
||||
null_ls.builtins.diagnostics.shellcheck,
|
||||
null_ls.builtins.diagnostics.standardjs,
|
||||
null_ls.builtins.diagnostics.stylelint,
|
||||
null_ls.builtins.diagnostics.tfsec,
|
||||
null_ls.builtins.diagnostics.trail_space,
|
||||
null_ls.builtins.diagnostics.tsc,
|
||||
null_ls.builtins.diagnostics.vacuum,
|
||||
null_ls.builtins.diagnostics.vint,
|
||||
null_ls.builtins.diagnostics.vulture,
|
||||
null_ls.builtins.diagnostics.xo,
|
||||
null_ls.builtins.diagnostics.yamllint,
|
||||
null_ls.builtins.diagnostics.zsh,
|
||||
|
||||
null_ls.builtins.formatting.autoflake,
|
||||
null_ls.builtins.formatting.autopep8,
|
||||
null_ls.builtins.formatting.black,
|
||||
null_ls.builtins.formatting.blade_formatter,
|
||||
null_ls.builtins.formatting.cbfmt,
|
||||
null_ls.builtins.formatting.clang_format,
|
||||
null_ls.builtins.formatting.eslint,
|
||||
null_ls.builtins.formatting.fixjson,
|
||||
null_ls.builtins.formatting.isort,
|
||||
null_ls.builtins.formatting.isort,
|
||||
null_ls.builtins.formatting.jq,
|
||||
null_ls.builtins.formatting.markdownlint,
|
||||
null_ls.builtins.formatting.nginx_beautifier,
|
||||
null_ls.builtins.formatting.pg_format,
|
||||
null_ls.builtins.formatting.phpcsfixer,
|
||||
null_ls.builtins.formatting.prettier_eslint,
|
||||
null_ls.builtins.formatting.prettier,
|
||||
null_ls.builtins.formatting.prettier,
|
||||
null_ls.builtins.formatting.puppet_lint,
|
||||
null_ls.builtins.formatting.rome,
|
||||
null_ls.builtins.formatting.rustfmt,
|
||||
null_ls.builtins.formatting.shfmt.with {
|
||||
args = { "-i", "1", "-bn", "-ci", "-sr", "-kb", "-fn" }
|
||||
},
|
||||
null_ls.builtins.formatting.stylelint,
|
||||
null_ls.builtins.formatting.stylua,
|
||||
null_ls.builtins.formatting.terrafmt,
|
||||
null_ls.builtins.formatting.terraform_fmt,
|
||||
null_ls.builtins.formatting.tidy,
|
||||
null_ls.builtins.formatting.yamlfmt,
|
||||
|
||||
null_ls.builtins.hover.dictionary,
|
||||
null_ls.builtins.hover.printenv,
|
||||
}
|
||||
return config
|
||||
end
|
||||
@@ -1,35 +0,0 @@
|
||||
return {
|
||||
-- Automatically install missing parsers when entering buffer
|
||||
auto_install = true,
|
||||
ensure_installed = {
|
||||
"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",
|
||||
}
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
local M = {}
|
||||
|
||||
function M.config()
|
||||
local status_ok, zen_mode = pcall(require, "zen-mode")
|
||||
if status_ok then
|
||||
zen_mode.setup {
|
||||
window = {
|
||||
backdrop = 0.95, -- shade the backdrop of the Zen window. Set to 1 to keep the same as Normal
|
||||
-- height and width can be:
|
||||
-- * an absolute number of cells when > 1
|
||||
-- * a percentage of the width / height of the editor when <= 1
|
||||
-- * a function that returns the width or the height
|
||||
width = 120, -- width of the Zen window
|
||||
height = 1, -- height of the Zen window
|
||||
-- by default, no options are changed for the Zen window
|
||||
-- uncomment any of the options below, or add other vim.wo options you want to apply
|
||||
options = {
|
||||
-- signcolumn = "no", -- disable signcolumn
|
||||
-- number = false, -- disable number column
|
||||
-- relativenumber = false, -- disable relative numbers
|
||||
-- cursorline = false, -- disable cursorline
|
||||
-- cursorcolumn = false, -- disable cursor column
|
||||
-- foldcolumn = "0", -- disable fold column
|
||||
-- list = false, -- disable whitespace characters
|
||||
},
|
||||
},
|
||||
plugins = {
|
||||
-- disable some global vim options (vim.o...)
|
||||
-- comment the lines to not apply the options
|
||||
options = {
|
||||
enabled = true,
|
||||
ruler = false, -- disables the ruler text in the cmd line area
|
||||
showcmd = false, -- disables the command in the last line of the screen
|
||||
},
|
||||
twilight = { enabled = true }, -- enable to start Twilight when zen mode opens
|
||||
gitsigns = { enabled = false }, -- disables git signs
|
||||
tmux = { enabled = false }, -- disables the tmux statusline
|
||||
-- this will change the font size on kitty when in zen mode
|
||||
-- to make this work, you need to set the following kitty options:
|
||||
-- - allow_remote_control socket-only
|
||||
-- - listen_on unix:/tmp/kitty
|
||||
kitty = {
|
||||
enabled = false,
|
||||
font = "+4", -- font size increment
|
||||
},
|
||||
},
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user