Compare commits
3 commits
013cdcb45e
...
5501a8027a
| Author | SHA1 | Date | |
|---|---|---|---|
| 5501a8027a | |||
| b27714866f | |||
| b57dc94d3a |
7 changed files with 39 additions and 20 deletions
14
.luarc.json
14
.luarc.json
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"runtime.version": "LuaJIT",
|
|
||||||
"runtime.path": [
|
|
||||||
"lua/?.lua",
|
|
||||||
"lua/?.init.lua"
|
|
||||||
],
|
|
||||||
"diagnostics.globals": [
|
|
||||||
"vim"
|
|
||||||
],
|
|
||||||
"workspace.checkThirdParty": false,
|
|
||||||
"workspace.library": [
|
|
||||||
"$VIMRUNTIME"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +1,4 @@
|
||||||
vim.pack.add({
|
vim.pack.add({
|
||||||
-- Colorscheme
|
|
||||||
{ src = "https://github.com/ellisonleao/gruvbox.nvim" },
|
|
||||||
-- Treesitter parsers
|
|
||||||
{ src = "https://github.com/nvim-treesitter/nvim-treesitter" },
|
|
||||||
-- Preconfigured lsp's
|
-- Preconfigured lsp's
|
||||||
{ src = "https://github.com/neovim/nvim-lspconfig" },
|
{ src = "https://github.com/neovim/nvim-lspconfig" },
|
||||||
-- Amazing neovim bundle of plugins that are super nice
|
|
||||||
{ src = "https://github.com/nvim-mini/mini.nvim" },
|
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,5 @@
|
||||||
|
vim.pack.add({
|
||||||
|
{ src = "https://github.com/ellisonleao/gruvbox.nvim" },
|
||||||
|
})
|
||||||
vim.o.background = "dark"
|
vim.o.background = "dark"
|
||||||
vim.cmd([[colorscheme gruvbox]])
|
vim.cmd([[colorscheme gruvbox]])
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
vim.pack.add({
|
||||||
|
{ src = "https://github.com/folke/lazydev.nvim" }
|
||||||
|
})
|
||||||
|
|
||||||
-- Enable some settings globally
|
-- Enable some settings globally
|
||||||
vim.lsp.config("*", {
|
vim.lsp.config("*", {
|
||||||
-- allow for multiline token support
|
-- allow for multiline token support
|
||||||
|
|
@ -30,3 +34,6 @@ vim.lsp.enable({
|
||||||
|
|
||||||
-- diagnostic settings
|
-- diagnostic settings
|
||||||
vim.diagnostic.config({ virtual_text = true })
|
vim.diagnostic.config({ virtual_text = true })
|
||||||
|
|
||||||
|
-- fix annoying lua lsp errors
|
||||||
|
require("lazydev").setup()
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
vim.pack.add({
|
||||||
|
{ src = "https://github.com/nvim-mini/mini.nvim" },
|
||||||
|
})
|
||||||
|
|
||||||
-- setup picker with icons
|
-- setup picker with icons
|
||||||
require("mini.icons").setup()
|
require("mini.icons").setup()
|
||||||
require("mini.pick").setup({
|
require("mini.pick").setup({
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
vim.pack.add({
|
||||||
|
{ src = "https://github.com/nvim-treesitter/nvim-treesitter" },
|
||||||
|
})
|
||||||
---@diagnostic disable: missing-fields
|
---@diagnostic disable: missing-fields
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
ensure_installed = { "go", "nix" },
|
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,
|
||||||
|
})
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@
|
||||||
"rev": "5e0a460",
|
"rev": "5e0a460",
|
||||||
"src": "https://github.com/ellisonleao/gruvbox.nvim"
|
"src": "https://github.com/ellisonleao/gruvbox.nvim"
|
||||||
},
|
},
|
||||||
|
"lazydev.nvim": {
|
||||||
|
"rev": "e28ce52",
|
||||||
|
"src": "https://github.com/folke/lazydev.nvim"
|
||||||
|
},
|
||||||
"mini.nvim": {
|
"mini.nvim": {
|
||||||
"rev": "cf32454",
|
"rev": "cf32454",
|
||||||
"src": "https://github.com/nvim-mini/mini.nvim"
|
"src": "https://github.com/nvim-mini/mini.nvim"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue