Compare commits

...

3 commits

Author SHA1 Message Date
dd701b268a rust n stuff 2024-03-14 14:25:10 +01:00
654f200459 prettier 2024-02-12 15:52:41 +01:00
djkato
bbf98cedf2 treesitter and lsps 2024-01-10 13:56:16 +01:00
9 changed files with 60 additions and 37 deletions

View file

@ -7,6 +7,7 @@ return {
spell = false, -- sets vim.opt.spell spell = false, -- sets vim.opt.spell
signcolumn = "auto", -- sets vim.opt.signcolumn to auto signcolumn = "auto", -- sets vim.opt.signcolumn to auto
wrap = false, -- sets vim.opt.wrap wrap = false, -- sets vim.opt.wrap
shell = "/usr/bin/fish"
}, },
g = { g = {
mapleader = " ", -- sets vim.g.mapleader mapleader = " ", -- sets vim.g.mapleader

5
plugins/codeium.lua Normal file
View file

@ -0,0 +1,5 @@
return {
--- 'Exafunction/codeium.vim',
--- event = 'BufEnter'
}

View file

@ -1,5 +1,5 @@
{ return {
"m4xshen/hardtime.nvim", "m4xshen/hardtime.nvim",
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" }, dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
opts = {} opts = {}
}, }

View file

@ -0,0 +1,19 @@
-- use mason-lspconfig to configure LSP installations
return {
"williamboman/mason-lspconfig.nvim",
opts = {
automatic_installation = true,
ensure_installed = {
"astro",
"svelte",
"tailwindcss",
"rust_analyzer",
"jsonls",
"tsserver",
"html",
"taplo",
-- "mdx_analyzer",
--"lua_ls"
},
},
}

View file

@ -18,7 +18,7 @@ return {
opts = function(_, opts) opts = function(_, opts)
-- add more things to the ensure_installed table protecting against community packs modifying it -- add more things to the ensure_installed table protecting against community packs modifying it
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, { opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
-- "prettier", "prettier",
-- "stylua", -- "stylua",
}) })
end, end,

View file

@ -1,23 +0,0 @@
return {
"MunifTanjim/prettier.nvim",
config = function()
prettier.setup({
bin = 'prettierd', -- or `'prettierd'` (v0.23.3+)
filetypes = {
"css",
"graphql",
"html",
"javascript",
"javascriptreact",
"json",
"less",
"markdown",
"scss",
"typescript",
"typescriptreact",
"yaml",
"astro",
},
})
end
}

View file

@ -1,10 +0,0 @@
return {
"simrat39/rust-tools.nvim",
opts = {
tools = {
inlay_hints = {
auto = false,
},
},
},
}

View file

@ -0,0 +1,26 @@
return {
"mrcjkb/rustaceanvim",
event = "BufReadPost",
version = "^3", -- Recommended
ft = { "rust" },
config = function()
vim.g.rustaceanvim = {
-- Plugin configuration
-- tools = {},
-- LSP configuration
server = {
on_attach = function(client, bufnr)
-- you can also put keymaps in here
vim.lsp.inlay_hint.enable(bufnr, true)
end,
-- settings = {
-- -- rust-analyzer language server configuration
-- ["rust-analyzer"] = {},
-- },
-- },
-- -- DAP configuration
-- dap = {},
},
}
end,
}

View file

@ -3,7 +3,12 @@ return {
opts = function(_, opts) opts = function(_, opts)
-- add more things to the ensure_installed table protecting against community packs modifying it -- add more things to the ensure_installed table protecting against community packs modifying it
opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, { opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
-- "lua" "astro",
"yaml",
"svelte",
"dockerfile",
"json5",
"markdown"
}) })
end, end,
} }