Compare commits

..

3 commits

7 changed files with 39 additions and 20 deletions

View file

@ -1,14 +0,0 @@
{
"runtime.version": "LuaJIT",
"runtime.path": [
"lua/?.lua",
"lua/?.init.lua"
],
"diagnostics.globals": [
"vim"
],
"workspace.checkThirdParty": false,
"workspace.library": [
"$VIMRUNTIME"
]
}

View file

@ -1,10 +1,4 @@
vim.pack.add({
-- Colorscheme
{ src = "https://github.com/ellisonleao/gruvbox.nvim" },
-- Treesitter parsers
{ src = "https://github.com/nvim-treesitter/nvim-treesitter" },
-- Preconfigured lsp's
{ src = "https://github.com/neovim/nvim-lspconfig" },
-- Amazing neovim bundle of plugins that are super nice
{ src = "https://github.com/nvim-mini/mini.nvim" },
})

View file

@ -1,2 +1,5 @@
vim.pack.add({
{ src = "https://github.com/ellisonleao/gruvbox.nvim" },
})
vim.o.background = "dark"
vim.cmd([[colorscheme gruvbox]])

View file

@ -1,3 +1,7 @@
vim.pack.add({
{ src = "https://github.com/folke/lazydev.nvim" }
})
-- Enable some settings globally
vim.lsp.config("*", {
-- allow for multiline token support
@ -30,3 +34,6 @@ vim.lsp.enable({
-- diagnostic settings
vim.diagnostic.config({ virtual_text = true })
-- fix annoying lua lsp errors
require("lazydev").setup()

View file

@ -1,3 +1,7 @@
vim.pack.add({
{ src = "https://github.com/nvim-mini/mini.nvim" },
})
-- setup picker with icons
require("mini.icons").setup()
require("mini.pick").setup({

View file

@ -1,3 +1,6 @@
vim.pack.add({
{ src = "https://github.com/nvim-treesitter/nvim-treesitter" },
})
---@diagnostic disable: missing-fields
require("nvim-treesitter.configs").setup({
ensure_installed = { "go", "nix" },
@ -18,3 +21,21 @@ require("nvim-treesitter.configs").setup({
},
},
})
-- run tsupdate when updating nvim-treesitter
vim.api.nvim_create_autocmd('PackChanged', {
desc = 'Handle nvim-treesitter updates',
group = vim.api.nvim_create_augroup('nvim-treesitter-pack-changed-update-handler', { clear = true }),
callback = function(event)
if event.data.kind == 'update' and event.data.spec.name == 'nvim-treesitter' then
vim.notify('nvim-treesitter updated, running TSUpdate...', vim.log.levels.INFO)
---@diagnostic disable-next-line: param-type-mismatch
local ok = pcall(vim.cmd, 'TSUpdate')
if ok then
vim.notify('TSUpdate completed successfully!', vim.log.levels.INFO)
else
vim.notify('TSUpdate command not available yet, skipping', vim.log.levels.WARN)
end
end
end,
})

View file

@ -4,6 +4,10 @@
"rev": "5e0a460",
"src": "https://github.com/ellisonleao/gruvbox.nvim"
},
"lazydev.nvim": {
"rev": "e28ce52",
"src": "https://github.com/folke/lazydev.nvim"
},
"mini.nvim": {
"rev": "cf32454",
"src": "https://github.com/nvim-mini/mini.nvim"