Compare commits
No commits in common. "5501a8027a263ee345f405f858854ad5e50efea7" and "013cdcb45edfb99b506165eb47b8b052edd4adb6" have entirely different histories.
5501a8027a
...
013cdcb45e
7 changed files with 20 additions and 39 deletions
14
.luarc.json
Normal file
14
.luarc.json
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"runtime.version": "LuaJIT",
|
||||||
|
"runtime.path": [
|
||||||
|
"lua/?.lua",
|
||||||
|
"lua/?.init.lua"
|
||||||
|
],
|
||||||
|
"diagnostics.globals": [
|
||||||
|
"vim"
|
||||||
|
],
|
||||||
|
"workspace.checkThirdParty": false,
|
||||||
|
"workspace.library": [
|
||||||
|
"$VIMRUNTIME"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
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,5 +1,2 @@
|
||||||
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,7 +1,3 @@
|
||||||
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
|
||||||
|
|
@ -34,6 +30,3 @@ 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,7 +1,3 @@
|
||||||
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,6 +1,3 @@
|
||||||
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" },
|
||||||
|
|
@ -21,21 +18,3 @@ 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,10 +4,6 @@
|
||||||
"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