-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify heirline, add mason-tool-installer
- Loading branch information
Showing
3 changed files
with
60 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
return function(config) | ||
-- the first element of the default configuration table is the statusline | ||
config[1] = { | ||
-- set the fg/bg of the statusline | ||
hl = { fg = "fg", bg = "bg" }, | ||
-- when adding the mode component, enable the mode text with padding to the left/right of it | ||
astronvim.status.component.mode { mode_text = { padding = { left = 1, right = 1 } } }, | ||
-- add all the other components for the statusline | ||
astronvim.status.component.git_branch(), | ||
astronvim.status.component.file_info(), | ||
astronvim.status.component.git_diff(), | ||
astronvim.status.component.diagnostics(), | ||
astronvim.status.component.fill(), | ||
astronvim.status.component.lsp(), | ||
astronvim.status.component.treesitter(), | ||
astronvim.status.component.nav(), | ||
} | ||
-- return the final configuration table | ||
return config | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,39 @@ | ||
return { | ||
ensure_installed = { | ||
-- Lsp | ||
-- "clangd", | ||
"pyright", | ||
"lua-language-server", | ||
"typescript-language-server", | ||
"rust-analyzer", | ||
"vim-language-server", | ||
"html-lsp", | ||
"css-lsp", | ||
"json-lsp", | ||
"emmet-ls", | ||
local M = {} | ||
function M.setup() | ||
return { | ||
ensure_installed = { | ||
-- Lsp | ||
-- "clangd", | ||
"pyright", | ||
"lua-language-server", | ||
"typescript-language-server", | ||
"rust-analyzer", | ||
"vim-language-server", | ||
"html-lsp", | ||
"css-lsp", | ||
"json-lsp", | ||
"emmet-ls", | ||
|
||
-- Formatter | ||
"prettierd", | ||
-- "prettier", | ||
"stylua", | ||
"black", | ||
"yamlfmt", | ||
-- Formatter | ||
"prettierd", | ||
-- "prettier", | ||
"stylua", | ||
"black", | ||
"yamlfmt", | ||
|
||
-- Linter | ||
"mypy", | ||
"hadolint", | ||
"eslint_d", | ||
-- "eslint-lsp", | ||
-- Linter | ||
"mypy", | ||
"hadolint", | ||
"eslint_d", | ||
-- "eslint-lsp", | ||
|
||
-- Diagnostics | ||
"cspell", | ||
-- Diagnostics | ||
"cspell", | ||
|
||
-- Dap | ||
-- "debugpy", | ||
}, | ||
} | ||
-- Dap | ||
-- "debugpy", | ||
}, | ||
} | ||
end | ||
|
||
return M |