Compare commits

...

3 Commits

Author SHA1 Message Date
Zynh Ludwig 6d97149d0f just catching up commits 2024-09-18 19:16:28 -07:00
Zynh Ludwig d7ca1f2cc2 treesj being cool and awesome 2024-09-18 19:16:16 -07:00
Zynh Ludwig f66bc2c5ab rust disable underline 2024-08-31 05:15:56 -07:00
6 changed files with 56 additions and 7 deletions

3
after/ftplugin/rust.lua Normal file
View File

@ -0,0 +1,3 @@
-- vim.diagnostic.config({
-- underline = false,
-- })

View File

@ -1,24 +1,29 @@
{ {
"extras": [ "extras": [
"lazyvim.plugins.extras.coding.mini-surround", "lazyvim.plugins.extras.coding.mini-surround",
"lazyvim.plugins.extras.dap.core",
"lazyvim.plugins.extras.editor.aerial", "lazyvim.plugins.extras.editor.aerial",
"lazyvim.plugins.extras.editor.aerial", "lazyvim.plugins.extras.editor.aerial",
"lazyvim.plugins.extras.editor.fzf",
"lazyvim.plugins.extras.editor.harpoon2", "lazyvim.plugins.extras.editor.harpoon2",
"lazyvim.plugins.extras.editor.navic", "lazyvim.plugins.extras.editor.navic",
"lazyvim.plugins.extras.formatting.prettier", "lazyvim.plugins.extras.formatting.prettier",
"lazyvim.plugins.extras.lang.clangd", "lazyvim.plugins.extras.lang.clangd",
"lazyvim.plugins.extras.lang.elixir", "lazyvim.plugins.extras.lang.elixir",
"lazyvim.plugins.extras.lang.git",
"lazyvim.plugins.extras.lang.go", "lazyvim.plugins.extras.lang.go",
"lazyvim.plugins.extras.lang.java", "lazyvim.plugins.extras.lang.java",
"lazyvim.plugins.extras.lang.json",
"lazyvim.plugins.extras.lang.markdown",
"lazyvim.plugins.extras.lang.nix", "lazyvim.plugins.extras.lang.nix",
"lazyvim.plugins.extras.lang.omnisharp", "lazyvim.plugins.extras.lang.omnisharp",
"lazyvim.plugins.extras.lang.python",
"lazyvim.plugins.extras.lang.rust", "lazyvim.plugins.extras.lang.rust",
"lazyvim.plugins.extras.lang.tailwind", "lazyvim.plugins.extras.lang.tailwind",
"lazyvim.plugins.extras.lang.typescript" "lazyvim.plugins.extras.lang.toml",
"lazyvim.plugins.extras.util.mini-hipatterns"
], ],
"news": { "news": {
"NEWS.md": "6077" "NEWS.md": "6520"
}, },
"version": 6 "version": 6
} }

7
lua/plugins/luarocks.lua Normal file
View File

@ -0,0 +1,7 @@
return {
-- {
-- "vhyrro/luarocks.nvim",
-- priority = 1000, -- Very high priority is required, luarocks.nvim should run as the first plugin in your config.
-- config = true,
-- },
}

14
lua/plugins/otter.lua Normal file
View File

@ -0,0 +1,14 @@
return {
-- {
-- "jmbuhr/otter.nvim",
-- dependencies = {
-- "hrsh7th/nvim-cmp",
-- "neovim/nvim-lspconfig",
-- "nvim-treesitter/nvim-treesitter",
-- },
-- lazy = false,
-- config = function()
-- require("otter").activate({ "javascript", "python", "rust" }, true, true, nil)
-- end,
-- },
}

View File

@ -6,17 +6,30 @@ return {
default_settings = { default_settings = {
-- rust-analyzer language server configuration -- rust-analyzer language server configuration
["rust-analyzer"] = { ["rust-analyzer"] = {
-- rustfmt = {
-- overrideCommand = {
-- "leptosfmt",
-- "--stdin",
-- "--rustfmt",
-- },
-- },
cargo = { cargo = {
targetDir = true, targetDir = true,
buildScripts = { buildScripts = {
enable = false, enable = false,
}, },
}, },
checkOnSave = true, procMacro = {
-- check = { enable = true,
-- command = "clippy", -- ignored = {
-- ["leptos_macro"] = { "component" },
-- }, -- },
}, },
checkOnSave = true,
check = {
command = "clippy",
},
},
}, },
}, },
}, },

View File

@ -8,6 +8,13 @@ return {
{ "<space>ts", "<cmd>TSJSplit<cr>", desc = "Treesitter Split" }, { "<space>ts", "<cmd>TSJSplit<cr>", desc = "Treesitter Split" },
}, },
config = function() config = function()
require("treesj").setup({ use_default_keymaps = false }) require("treesj").setup({
use_default_keymaps = false,
on_error = function(err_text, level)
if not err_text:find("splitted") then
vim.cmd.join()
end
end,
})
end, end,
} }