Update .config/alacritty/alacritty.yml
Update .config/nvim/lua/config/lazy.lua Add .config/nvim/lua/plugins/go.lua Add .config/nvim/lua/plugins/none-ls.lua Update .config/nvim/lua/plugins/nvim-dap.lua
This commit is contained in:
parent
a0f9a79651
commit
d224daaa64
@ -137,7 +137,7 @@ font:
|
||||
style: Italic
|
||||
normal:
|
||||
#bold_italic: Hack Nerd Font Mono
|
||||
bold_italic: {{ .monospace_font }}
|
||||
family: {{ .monospace_font }}
|
||||
style: Bold Italic
|
||||
# Normal (roman) font face
|
||||
#normal:
|
||||
|
@ -15,7 +15,7 @@ require("lazy").setup({
|
||||
--{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||
{ import = "lazyvim.plugins.extras.util.mini-hipatterns" },
|
||||
{ import = "lazyvim.plugins.extras.util.project" },
|
||||
|
||||
{ import = "lazyvim.plugins.extras.dap.core" },
|
||||
|
||||
|
||||
-- import any extras modules here
|
||||
|
15
dot_config/nvim/lua/plugins/go.lua
Normal file
15
dot_config/nvim/lua/plugins/go.lua
Normal file
@ -0,0 +1,15 @@
|
||||
return {
|
||||
"ray-x/go.nvim",
|
||||
dependencies = { -- optional packages
|
||||
"ray-x/guihua.lua",
|
||||
"neovim/nvim-lspconfig",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
config = function()
|
||||
require("go").setup()
|
||||
end,
|
||||
event = {"CmdlineEnter"},
|
||||
ft = {"go", 'gomod'},
|
||||
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
|
||||
|
||||
}
|
63
dot_config/nvim/lua/plugins/none-ls.lua
Normal file
63
dot_config/nvim/lua/plugins/none-ls.lua
Normal file
@ -0,0 +1,63 @@
|
||||
local h = require("null-ls.helpers")
|
||||
local methods = require("null-ls.methods")
|
||||
local u = require("null-ls.utils")
|
||||
|
||||
local FORMATTING = methods.internal.FORMATTING
|
||||
|
||||
local leptosfmt = h.make_builtin({
|
||||
name = "leptosfmt",
|
||||
meta = {
|
||||
url = "https://github.com/bram209/leptosfmt",
|
||||
description = "A formatter for the leptos view! macro"
|
||||
},
|
||||
method = FORMATTING,
|
||||
filetypes = { "rust" },
|
||||
generator_opts = {
|
||||
command = "leptosfmt",
|
||||
args = { "--quiet", "--stdin" },
|
||||
to_stdin = true,
|
||||
},
|
||||
factory = h.formatter_factory,
|
||||
})
|
||||
|
||||
|
||||
return {
|
||||
"nvimtools/none-ls.nvim",
|
||||
event = "BufReadPre",
|
||||
dependencies = { "mason.nvim" },
|
||||
opts = function()
|
||||
local nls = require("null-ls")
|
||||
return {
|
||||
sources = {
|
||||
nls.builtins.formatting.terraform_fmt,
|
||||
--nls.builtins.formatting.yamlfmt,
|
||||
nls.builtins.formatting.deno_fmt.with({
|
||||
filetypes = { "markdown" }
|
||||
}),
|
||||
nls.builtins.formatting.golines,
|
||||
nls.builtins.formatting.goimports_reviser,
|
||||
nls.builtins.formatting.goimports,
|
||||
nls.builtins.formatting.gofumpt,
|
||||
nls.builtins.formatting.taplo,
|
||||
nls.builtins.formatting.prettierd.with({
|
||||
filetypes = { "graphql" }
|
||||
}),
|
||||
nls.builtins.formatting.shfmt,
|
||||
nls.builtins.code_actions.gitsigns,
|
||||
nls.builtins.code_actions.refactoring,
|
||||
nls.builtins.formatting.rustfmt.with({
|
||||
extra_args = { "--edition=2021" },
|
||||
filetypes = { "rust" }
|
||||
}),
|
||||
leptosfmt.with({
|
||||
condition = function(utils)
|
||||
return utils.root_has_file({ "leptosfmt.toml" })
|
||||
end,
|
||||
}),
|
||||
nls.builtins.diagnostics.revive,
|
||||
nls.builtins.code_actions.impl,
|
||||
nls.builtins.code_actions.refactoring,
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
@ -1,3 +1,11 @@
|
||||
return {
|
||||
"mfussenegger/nvim-dap"
|
||||
--{
|
||||
-- "mfussenegger/nvim-dap"
|
||||
--},
|
||||
--{
|
||||
-- "rcarriga/nvim-dap-ui"
|
||||
--},
|
||||
--{
|
||||
-- "theHamsta/nvim-dap-virtual-text"
|
||||
--}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user