many changes
This commit is contained in:
parent
6ca8b432e9
commit
6bd8744441
7 changed files with 36 additions and 7 deletions
|
@ -9,7 +9,7 @@ return {
|
||||||
{ import = "astrocommunity.pack.cpp" },
|
{ import = "astrocommunity.pack.cpp" },
|
||||||
{ import = "astrocommunity.pack.astro" },
|
{ import = "astrocommunity.pack.astro" },
|
||||||
{ import = "astrocommunity.pack.svelte" },
|
{ import = "astrocommunity.pack.svelte" },
|
||||||
{ import = "astrocommunity.pack.rust" },
|
-- { import = "astrocommunity.pack.rust" },
|
||||||
{ import = "astrocommunity.pack.tailwindcss" },
|
{ import = "astrocommunity.pack.tailwindcss" },
|
||||||
{ import = "astrocommunity.pack.toml" },
|
{ import = "astrocommunity.pack.toml" },
|
||||||
{ import = "astrocommunity.pack.yaml" },
|
{ import = "astrocommunity.pack.yaml" },
|
||||||
|
@ -24,7 +24,7 @@ return {
|
||||||
{ import = "astrocommunity.scrolling.satellite-nvim" },
|
{ import = "astrocommunity.scrolling.satellite-nvim" },
|
||||||
{ import = "astrocommunity.scrolling.vim-smoothie" },
|
{ import = "astrocommunity.scrolling.vim-smoothie" },
|
||||||
{ import = "astrocommunity.media.presence-nvim" },
|
{ import = "astrocommunity.media.presence-nvim" },
|
||||||
{ import = "astrocommunity.workflow.hardtime-nvim" },
|
-- { import = "astrocommunity.workflow.hardtime-nvim" },
|
||||||
{ import = "astrocommunity.colorscheme.nightfox-nvim" },
|
{ import = "astrocommunity.colorscheme.nightfox-nvim" },
|
||||||
-- import/override with your plugins folder
|
-- import/override with your plugins folder
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,6 @@ return {
|
||||||
-- vim.lsp.inlay_hint.enable(0, true),
|
-- 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!
|
-- -- AstroCore provides a central place to modify mappings, vim options, autocommands, and more!
|
||||||
-- -- Configuration documentation can be found with `:h astrocore`
|
-- -- Configuration documentation can be found with `:h astrocore`
|
||||||
|
|
|
@ -56,6 +56,7 @@ return {
|
||||||
},
|
},
|
||||||
-- Configure buffer local auto commands to add when attaching a language server
|
-- Configure buffer local auto commands to add when attaching a language server
|
||||||
autocmds = {
|
autocmds = {
|
||||||
|
eslint_fix_on_save = false,
|
||||||
-- first key is the `augroup` to add the auto commands to (:h augroup)
|
-- first key is the `augroup` to add the auto commands to (:h augroup)
|
||||||
lsp_document_highlight = {
|
lsp_document_highlight = {
|
||||||
-- Optional condition to create/delete auto command group
|
-- Optional condition to create/delete auto command group
|
||||||
|
|
19
lua/plugins/hardtime.lua
Normal file
19
lua/plugins/hardtime.lua
Normal 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,
|
||||||
|
}
|
|
@ -10,7 +10,9 @@ return {
|
||||||
-- 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("astrocore").list_insert_unique(opts.ensure_installed, {
|
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, {
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
-- "rust_analyzer",
|
-- "astro",
|
||||||
|
-- "svelte",
|
||||||
|
"rust_analyzer",
|
||||||
-- add more arguments for adding more language servers
|
-- add more arguments for adding more language servers
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
@ -43,7 +45,10 @@ return {
|
||||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||||
optional = true,
|
optional = true,
|
||||||
opts = function(_, opts)
|
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,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ return {
|
||||||
"nvimtools/none-ls.nvim",
|
"nvimtools/none-ls.nvim",
|
||||||
opts = function(_, config)
|
opts = function(_, config)
|
||||||
-- config variable is the default configuration table for the setup function call
|
-- 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
|
-- Check supported formatters and linters
|
||||||
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting
|
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting
|
||||||
|
@ -16,7 +16,12 @@ return {
|
||||||
config.sources = {
|
config.sources = {
|
||||||
-- Set a formatter
|
-- Set a formatter
|
||||||
-- null_ls.builtins.formatting.stylua,
|
-- 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
|
return config -- return final config table
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue