Compare commits
2 Commits
5ee995ebea
...
bd078ae722
Author | SHA1 | Date |
---|---|---|
Young Xu | bd078ae722 | |
Young Xu | 1e0f65a4cd |
|
@ -15,7 +15,25 @@ require("nvim-tree").setup({
|
|||
enable = true,
|
||||
update_root = true,
|
||||
},
|
||||
filters = { custom = { ".git" } },
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
},
|
||||
filesystem_watchers = {
|
||||
enable = true,
|
||||
debounce_delay = 10,
|
||||
},
|
||||
git = {
|
||||
enable = true,
|
||||
ignore = true,
|
||||
show_on_dirs = true,
|
||||
show_on_open_dirs = true,
|
||||
timeout = 400,
|
||||
},
|
||||
modified = {
|
||||
enable = false,
|
||||
show_on_dirs = true,
|
||||
show_on_open_dirs = true,
|
||||
},
|
||||
view = {
|
||||
width = 30,
|
||||
mappings = {
|
||||
|
|
|
@ -9,28 +9,64 @@ require("mason").setup({
|
|||
})
|
||||
|
||||
require("mason-lspconfig").setup({
|
||||
ensure_installed = {
|
||||
"clangd",
|
||||
"emmet_ls",
|
||||
"cmake",
|
||||
"gradle_ls",
|
||||
"kotlin_language_server",
|
||||
"lua_ls",
|
||||
"rust_analyzer",
|
||||
"gopls",
|
||||
"golangci_lint_ls",
|
||||
"tsserver",
|
||||
"volar",
|
||||
"taplo",
|
||||
"yamlls",
|
||||
"jsonls",
|
||||
"jdtls",
|
||||
"bashls",
|
||||
"cssls",
|
||||
"dockerls",
|
||||
"docker_compose_language_service",
|
||||
"eslint",
|
||||
"html",
|
||||
},
|
||||
ensure_installed = {},
|
||||
automatic_installation = true,
|
||||
})
|
||||
|
||||
require("mason-tool-installer").setup({
|
||||
-- a list of all tools you want to ensure are installed upon
|
||||
-- start; they should be the names Mason uses for each tool
|
||||
ensure_installed = {
|
||||
"bash-language-server",
|
||||
"clangd",
|
||||
"cmake-language-server",
|
||||
"css-lsp",
|
||||
"docker-compose-language-service",
|
||||
"dockerfile-language-server",
|
||||
"emmet-ls",
|
||||
"eslint-lsp",
|
||||
"goimports",
|
||||
"goimports-reviser",
|
||||
"golangci-lint",
|
||||
"golangci-lint-langserver",
|
||||
"golines",
|
||||
"gopls",
|
||||
"gradle-language-server",
|
||||
"html-lsp",
|
||||
"jdtls",
|
||||
"json-lsp",
|
||||
"kotlin-language-server",
|
||||
"lua-language-server",
|
||||
"rust-analyzer",
|
||||
"rustfmt",
|
||||
"stylua",
|
||||
"taplo",
|
||||
"typescript-language-server",
|
||||
"vue-language-server",
|
||||
"yaml-language-server",
|
||||
"yamlfmt",
|
||||
"yamllint",
|
||||
},
|
||||
-- if set to true this will check each tool for updates. If updates
|
||||
-- are available the tool will be updated. This setting does not
|
||||
-- affect :MasonToolsUpdate or :MasonToolsInstall.
|
||||
-- Default: false
|
||||
auto_update = true,
|
||||
-- automatically install / update on startup. If set to false nothing
|
||||
-- will happen on startup. You can use :MasonToolsInstall or
|
||||
-- :MasonToolsUpdate to install tools and check for updates.
|
||||
-- Default: true
|
||||
run_on_start = true,
|
||||
-- set a delay (in ms) before the installation starts. This is only
|
||||
-- effective if run_on_start is set to true.
|
||||
-- e.g.: 5000 = 5 second delay, 10000 = 10 second delay, etc...
|
||||
-- Default: 0
|
||||
start_delay = 15000, -- 3 second delay
|
||||
-- Only attempt to install if 'debounce_hours' number of hours has
|
||||
-- elapsed since the last time Neovim was started. This stores a
|
||||
-- timestamp in a file named stdpath('data')/mason-tool-installer-debounce.
|
||||
-- This is only relevant when you are using 'run_on_start'. It has no
|
||||
-- effect when running manually via ':MasonToolsInstall' etc....
|
||||
-- Default: nil
|
||||
debounce_hours = 24, -- at least 5 hours between attempts to install/update
|
||||
})
|
||||
|
|
|
@ -5,6 +5,7 @@ null_ls.setup({
|
|||
null_ls.builtins.formatting.stylua,
|
||||
null_ls.builtins.formatting.gofmt,
|
||||
null_ls.builtins.formatting.eslint_d,
|
||||
null_ls.builtins.formatting.yamlfmt,
|
||||
null_ls.builtins.formatting.protolint,
|
||||
-- 诊断
|
||||
null_ls.builtins.diagnostics.eslint_d,
|
||||
|
|
|
@ -44,6 +44,7 @@ return require("packer").startup(function(use)
|
|||
"williamboman/mason-lspconfig.nvim",
|
||||
"neovim/nvim-lspconfig",
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
})
|
||||
-- 命令行
|
||||
use({
|
||||
|
|
Loading…
Reference in New Issue