many changes

This commit is contained in:
Djkáťo 2024-05-15 20:01:02 +02:00
parent 6ca8b432e9
commit 6bd8744441
7 changed files with 36 additions and 7 deletions

View file

@ -9,7 +9,7 @@ return {
{ import = "astrocommunity.pack.cpp" },
{ import = "astrocommunity.pack.astro" },
{ import = "astrocommunity.pack.svelte" },
{ import = "astrocommunity.pack.rust" },
-- { import = "astrocommunity.pack.rust" },
{ import = "astrocommunity.pack.tailwindcss" },
{ import = "astrocommunity.pack.toml" },
{ import = "astrocommunity.pack.yaml" },
@ -24,7 +24,7 @@ return {
{ import = "astrocommunity.scrolling.satellite-nvim" },
{ import = "astrocommunity.scrolling.vim-smoothie" },
{ import = "astrocommunity.media.presence-nvim" },
{ import = "astrocommunity.workflow.hardtime-nvim" },
-- { import = "astrocommunity.workflow.hardtime-nvim" },
{ import = "astrocommunity.colorscheme.nightfox-nvim" },
-- import/override with your plugins folder
}

View file

@ -8,7 +8,6 @@ return {
-- vim.lsp.inlay_hint.enable(0, true),
},
}
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
--
-- -- AstroCore provides a central place to modify mappings, vim options, autocommands, and more!
-- -- Configuration documentation can be found with `:h astrocore`

View file

@ -56,6 +56,7 @@ return {
},
-- Configure buffer local auto commands to add when attaching a language server
autocmds = {
eslint_fix_on_save = false,
-- first key is the `augroup` to add the auto commands to (:h augroup)
lsp_document_highlight = {
-- Optional condition to create/delete auto command group

19
lua/plugins/hardtime.lua Normal file
View file

@ -0,0 +1,19 @@
return {
"m4xshen/hardtime.nvim",
event = "User AstroFile",
opts = {
disable_mouse = false,
restriction_mode = "hint",
disabled_keys = {
["<Insert>"] = { "", "i" },
["<Home>"] = { "", "i" },
["<End>"] = { "", "i" },
["<PageUp>"] = { "", "i" },
["<PageDown>"] = { "", "i" },
},
},
config = function(_, opts)
require("hardtime").setup(opts)
require("hardtime").enable()
end,
}

View file

@ -10,7 +10,9 @@ return {
-- add more things to the ensure_installed table protecting against community packs modifying it
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, {
"lua_ls",
-- "rust_analyzer",
-- "astro",
-- "svelte",
"rust_analyzer",
-- add more arguments for adding more language servers
})
end,
@ -43,7 +45,10 @@ return {
"WhoIsSethDaniel/mason-tool-installer.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "codelldb" })
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, {
"codelldb",
-- "astro-language-server",
})
end,
},
}

View file

@ -8,7 +8,7 @@ return {
"nvimtools/none-ls.nvim",
opts = function(_, config)
-- config variable is the default configuration table for the setup function call
-- local null_ls = require "null-ls"
local null_ls = require "null-ls"
-- Check supported formatters and linters
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting
@ -16,7 +16,12 @@ return {
config.sources = {
-- Set a formatter
-- null_ls.builtins.formatting.stylua,
-- null_ls.builtins.formatting.prettier,
null_ls.builtins.formatting.prettier.with {
extra_filetypes = {
"svelte",
"astro",
},
},
}
return config -- return final config table
end,