feat(dev plugins): update plugins configs for developing
This commit is contained in:
parent
d35acd0125
commit
ff20726ade
|
@ -89,6 +89,7 @@ cmp.setup{
|
||||||
|
|
||||||
sources = {
|
sources = {
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp" },
|
||||||
|
{ name = "luasnip" },
|
||||||
{ name = "buffer" },
|
{ name = "buffer" },
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,6 +2,6 @@ require('nvim-ts-autotag').setup({
|
||||||
opts = {
|
opts = {
|
||||||
enable_close = true,
|
enable_close = true,
|
||||||
enable_rename = true,
|
enable_rename = true,
|
||||||
enable_close_on_slash = false
|
enable_close_on_slash = true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -4,7 +4,7 @@ require("dap-vscode-js").setup({
|
||||||
debugger_path = "/.local/share/lunarvim/site/pack/lazy/opt/vscode-js-debug",
|
debugger_path = "/.local/share/lunarvim/site/pack/lazy/opt/vscode-js-debug",
|
||||||
debugger_cmd = { "js-debug-adapter" },
|
debugger_cmd = { "js-debug-adapter" },
|
||||||
adapters = { 'node-terminal' },
|
adapters = { 'node-terminal' },
|
||||||
})
|
})
|
||||||
|
|
||||||
dap.configurations.cpp = {
|
dap.configurations.cpp = {
|
||||||
{
|
{
|
||||||
|
@ -28,7 +28,7 @@ dap.adapters["pwa-node"] = {
|
||||||
port = "${port}",
|
port = "${port}",
|
||||||
executable = {
|
executable = {
|
||||||
command = "node",
|
command = "node",
|
||||||
args = {os.getenv("HOME") .. "/.local/share/lvim/mason/packages/js-debug-adapter/js-debug/src/dapDebugServer.js", "${port}"},
|
args = { os.getenv("HOME") .. "/.local/share/lvim/mason/packages/js-debug-adapter/js-debug/src/dapDebugServer.js", "${port}" },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,13 +45,13 @@ dap.configurations.javascript = {
|
||||||
dap.adapters.chrome = {
|
dap.adapters.chrome = {
|
||||||
type = "executable",
|
type = "executable",
|
||||||
command = "node",
|
command = "node",
|
||||||
args = {os.getenv("HOME") .. "/.local/share/lvim/mason/packages/chrome-debug-adapter/out/src/chromeDebug.js"},
|
args = { os.getenv("HOME") .. "/.local/share/lvim/mason/packages/chrome-debug-adapter/out/src/chromeDebug.js" },
|
||||||
}
|
}
|
||||||
|
|
||||||
dap.adapters.firefox = {
|
dap.adapters.firefox = {
|
||||||
type = 'executable',
|
type = 'executable',
|
||||||
command = 'node',
|
command = 'node',
|
||||||
args = {os.getenv('HOME') .. '/.local/share/lvim/mason/packages/firefox-debug-adapter/dist/adapter.bundle.js'},
|
args = { os.getenv('HOME') .. '/.local/share/lvim/mason/packages/firefox-debug-adapter/dist/adapter.bundle.js' },
|
||||||
}
|
}
|
||||||
|
|
||||||
dap.configurations.typescriptreact = {
|
dap.configurations.typescriptreact = {
|
||||||
|
@ -91,9 +91,9 @@ require("dapui").setup()
|
||||||
|
|
||||||
local dap, dapui = require("dap"), require("dapui")
|
local dap, dapui = require("dap"), require("dapui")
|
||||||
|
|
||||||
|
|
||||||
dap.listeners.after.event_initialized["dapui_config"] = function()
|
dap.listeners.after.event_initialized["dapui_config"] = function()
|
||||||
dapui.open({})
|
dapui.open({})
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>ui', require 'dapui'.toggle)
|
vim.keymap.set('n', '<leader>ui', require 'dapui'.toggle)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
|
lspconfig.clangd.setup({})
|
||||||
|
|
||||||
lspconfig.lua_ls.setup({
|
lspconfig.lua_ls.setup({
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
|
|
|
@ -1,25 +1,22 @@
|
||||||
local navic = require("nvim-navic")
|
local navic = require("nvim-navic")
|
||||||
|
|
||||||
vim.g.rustaceanvim = {
|
vim.g.rustaceanvim = {
|
||||||
tools = {
|
|
||||||
autoSetHints = true,
|
|
||||||
inlay_hints = {
|
|
||||||
show_parameter_hints = true,
|
|
||||||
parameter_hints_prefix = "in: ", -- "<- "
|
|
||||||
other_hints_prefix = "out: " -- "=> "
|
|
||||||
}
|
|
||||||
},
|
|
||||||
server = {
|
server = {
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
navic.attach(client, bufnr)
|
navic.attach(client, bufnr)
|
||||||
end,
|
end,
|
||||||
settings = {
|
settings = {
|
||||||
['rust-analyzer'] = {
|
['rust-analyzer'] = {
|
||||||
|
procMacro = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
assist = {
|
assist = {
|
||||||
importEnforceGranularity = true,
|
importEnforceGranularity = true,
|
||||||
importPrefix = "create"
|
importPrefix = "create"
|
||||||
},
|
},
|
||||||
cargo = { allFeatures = true },
|
cargo = {
|
||||||
|
allFeatures = true,
|
||||||
|
},
|
||||||
checkOnSave = {
|
checkOnSave = {
|
||||||
command = "clippy",
|
command = "clippy",
|
||||||
allFeatures = true
|
allFeatures = true
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
require'nvim-treesitter.configs'.setup {
|
require 'nvim-treesitter.configs'.setup {
|
||||||
ensure_installed = { 'rust', 'c', 'lua', 'tsx', 'javascript', 'typescript' },
|
ensure_installed = { 'rust', 'c', 'lua', 'tsx', 'javascript', 'typescript' },
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
auto_install = true,
|
auto_install = true,
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
},
|
||||||
|
autotag = {
|
||||||
|
enable = true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue