none-ls.nvimはしばらく6be90f8cf37d7f50a89b7229412f6184b16f1b28のバージョンを使うこと
This commit is contained in:
parent
2bc0ba445e
commit
de562a0218
1 changed files with 22 additions and 9 deletions
31
init.lua
31
init.lua
|
@ -176,7 +176,13 @@ require("lazy").setup({
|
||||||
{ "jay-babu/mason-null-ls.nvim", event = "LspAttach" },
|
{ "jay-babu/mason-null-ls.nvim", event = "LspAttach" },
|
||||||
{ "jay-babu/mason-nvim-dap.nvim", event = "LspAttach" },
|
{ "jay-babu/mason-nvim-dap.nvim", event = "LspAttach" },
|
||||||
{ "neovim/nvim-lspconfig", event = "BufReadPre" },
|
{ "neovim/nvim-lspconfig", event = "BufReadPre" },
|
||||||
{ "nvimtools/none-ls.nvim", event = "LspAttach" },
|
{
|
||||||
|
"nvimtools/none-ls.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvimtools/none-ls-extras.nvim",
|
||||||
|
},
|
||||||
|
event = "LspAttach",
|
||||||
|
},
|
||||||
{ "mfussenegger/nvim-dap", event = "LspAttach" },
|
{ "mfussenegger/nvim-dap", event = "LspAttach" },
|
||||||
{ "rcarriga/nvim-dap-ui", event = "LspAttach" },
|
{ "rcarriga/nvim-dap-ui", event = "LspAttach" },
|
||||||
{ "nvim-neotest/nvim-nio", event = "LspAttach" },
|
{ "nvim-neotest/nvim-nio", event = "LspAttach" },
|
||||||
|
@ -434,11 +440,18 @@ require("mason-lspconfig").setup_handlers({
|
||||||
})
|
})
|
||||||
|
|
||||||
--none-ls
|
--none-ls
|
||||||
local status, null_ls = pcall(require, "null-ls")
|
local null_ls = require("null-ls")
|
||||||
if not status then
|
|
||||||
return
|
null_ls.setup({
|
||||||
end
|
sources = {
|
||||||
null_ls.setup()
|
null_ls.builtins.formatting.stylua,
|
||||||
|
null_ls.builtins.formatting.prettierd,
|
||||||
|
null_ls.builtins.diagnostics.rubocop,
|
||||||
|
null_ls.builtins.formatting.rubocop,
|
||||||
|
require("none-ls.diagnostics.eslint"),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>p", function()
|
vim.keymap.set("n", "<leader>p", function()
|
||||||
vim.lsp.buf.format({ async = true })
|
vim.lsp.buf.format({ async = true })
|
||||||
end)
|
end)
|
||||||
|
@ -467,7 +480,7 @@ map(
|
||||||
map("n", "<leader>d", ":lua require'dapui'.toggle()<CR>", { silent = true })
|
map("n", "<leader>d", ":lua require'dapui'.toggle()<CR>", { silent = true })
|
||||||
map("n", "<leader><leader>d", ":lua require'dapui'.eval()<CR>", { silent = true })
|
map("n", "<leader><leader>d", ":lua require'dapui'.eval()<CR>", { silent = true })
|
||||||
|
|
||||||
---DAP-UI
|
--DAP-UI
|
||||||
require("dapui").setup({
|
require("dapui").setup({
|
||||||
icons = { expanded = "▾", collapsed = "▸", current_frame = "▸" },
|
icons = { expanded = "▾", collapsed = "▸", current_frame = "▸" },
|
||||||
mappings = {
|
mappings = {
|
||||||
|
@ -527,7 +540,7 @@ require("dapui").setup({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
---jaq-nvim
|
--jaq-nvim
|
||||||
require("jaq-nvim").setup({
|
require("jaq-nvim").setup({
|
||||||
cmds = {
|
cmds = {
|
||||||
internal = {
|
internal = {
|
||||||
|
@ -666,7 +679,7 @@ cmp.setup({
|
||||||
--nvim-treesitter
|
--nvim-treesitter
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = enable,
|
||||||
disable = { "help", "markdown", "toml" },
|
disable = { "help", "markdown", "toml" },
|
||||||
},
|
},
|
||||||
refactor = {
|
refactor = {
|
||||||
|
|
Loading…
Reference in a new issue