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:
Kasper Juul Hermansen 2023-10-05 21:20:42 +02:00
parent a0f9a79651
commit d224daaa64
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
5 changed files with 89 additions and 3 deletions

View File

@ -137,7 +137,7 @@ font:
style: Italic style: Italic
normal: normal:
#bold_italic: Hack Nerd Font Mono #bold_italic: Hack Nerd Font Mono
bold_italic: {{ .monospace_font }} family: {{ .monospace_font }}
style: Bold Italic style: Bold Italic
# Normal (roman) font face # Normal (roman) font face
#normal: #normal:

View File

@ -15,7 +15,7 @@ require("lazy").setup({
--{ import = "lazyvim.plugins.extras.ui.mini-animate" }, --{ import = "lazyvim.plugins.extras.ui.mini-animate" },
{ import = "lazyvim.plugins.extras.util.mini-hipatterns" }, { import = "lazyvim.plugins.extras.util.mini-hipatterns" },
{ import = "lazyvim.plugins.extras.util.project" }, { import = "lazyvim.plugins.extras.util.project" },
{ import = "lazyvim.plugins.extras.dap.core" },
-- import any extras modules here -- import any extras modules here

View 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
}

View 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,
}

View File

@ -1,3 +1,11 @@
return { return {
"mfussenegger/nvim-dap" --{
-- "mfussenegger/nvim-dap"
--},
--{
-- "rcarriga/nvim-dap-ui"
--},
--{
-- "theHamsta/nvim-dap-virtual-text"
--}
} }