@@ -1,3 +1,5 @@
|
||||
-- Options are automatically loaded before lazy.nvim startup
|
||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||
-- Add any additional options here
|
||||
vim.o.termguicolors = true
|
||||
--vim.cmd'colorscheme yourfavcolorscheme'
|
||||
|
13
lua/plugins/copilot.lua
Normal file
13
lua/plugins/copilot.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
"zbirenbaum/copilot.lua",
|
||||
enabled = true,
|
||||
cmd = "Copilot",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("copilot").setup({
|
||||
suggestion = {
|
||||
auto_trigger = true,
|
||||
}
|
||||
})
|
||||
end,
|
||||
}
|
@@ -1,3 +1,26 @@
|
||||
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=true", "--stdin=true" },
|
||||
to_stdin = true,
|
||||
},
|
||||
factory = h.formatter_factory,
|
||||
})
|
||||
|
||||
|
||||
return {
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
event = "BufReadPre",
|
||||
@@ -7,7 +30,6 @@ return {
|
||||
return {
|
||||
sources = {
|
||||
nls.builtins.formatting.terraform_fmt,
|
||||
--nls.builtins.formatting.rustfmt,
|
||||
--nls.builtins.formatting.yamlfmt,
|
||||
nls.builtins.formatting.deno_fmt.with({
|
||||
filetypes = { "markdown" }
|
||||
@@ -17,8 +39,20 @@ return {
|
||||
nls.builtins.formatting.goimports,
|
||||
nls.builtins.formatting.gofumpt,
|
||||
nls.builtins.formatting.taplo,
|
||||
nls.builtins.formatting.prettierd.with({
|
||||
filetypes = { "graphql" }
|
||||
}),
|
||||
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,
|
||||
}),
|
||||
},
|
||||
}
|
||||
end,
|
||||
|
3
lua/plugins/nvim-dap.lua
Normal file
3
lua/plugins/nvim-dap.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
"mfussenegger/nvim-dap"
|
||||
}
|
6
lua/plugins/tmux.lua
Normal file
6
lua/plugins/tmux.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
return {
|
||||
"aserowy/tmux.nvim",
|
||||
config = function()
|
||||
require("tmux").setup()
|
||||
end
|
||||
}
|
Reference in New Issue
Block a user