My own first version of kickstart.nvim

This commit is contained in:
AngryLuck 2024-03-19 18:01:42 +01:00
parent 3668af39f4
commit dc41cd1fc2
16 changed files with 305 additions and 93 deletions

View file

@ -0,0 +1,5 @@
return {
"windwp/nvim-autopairs",
event = "InsertEnter",
opts = {}
}

View file

@ -0,0 +1,20 @@
return {
{
-- Best colorscheme
'catppuccin/nvim',
name = 'catppuccin',
priority = 1000,
config = function()
vim.cmd.colorscheme 'catppuccin'
end,
},
{
-- Theme inspired by Atom
'navarasu/onedark.nvim',
priority = 1000,
-- config = function()
-- vim.cmd.colorscheme 'onedark'
-- end,
},
}

View file

@ -0,0 +1,5 @@
return {
'mrcjkb/haskell-tools.nvim',
version = '^3', -- Recommended
ft = { 'haskell', 'lhaskell', 'cabal', 'cabalproject' },
}

View file

@ -2,4 +2,8 @@
-- I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information
return {}
--
-- FOR PLUGINS NOT REQUIRING CONFIGURATION:
return {
"fladson/vim-kitty"
}

View file

@ -0,0 +1,29 @@
return {
"nvim-neorg/neorg",
dependencies = { "nvim-lua/plenary.nvim" },
build = ":Neorg sync-parsers",
-- tag = "*",
lazy = true, -- enable lazy load
ft = "norg", -- lazy load on file type
cmd = "Neorg", -- lazy load on command
config = function()
require("neorg").setup {
load = {
["core.defaults"] = {}, -- Loads default behaviour
["core.concealer"] = {}, -- Adds pretty icons to your documents
["core.dirman"] = { -- Manages Neorg workspaces
config = {
workspaces = {
notes = "~/documents/notes",
},
},
},
["core.completion"] = {
config = {
engine = "nvim-cmp",
}
}
},
}
end,
}

View file

@ -0,0 +1,3 @@
return {
"Fymyte/rasi.vim"
}

View file

@ -0,0 +1,9 @@
return {
"AndrewRadev/sideways.vim",
config = function()
vim.keymap.set("n", "<leader>s<", ":SidewaysLeft<Cr>")
vim.keymap.set("n", "<leader>s>", ":SidewaysRight<Cr>")
vim.keymap.set("n", "<leader>sh", ":SidewaysJumpLeft<Cr>")
vim.keymap.set("n", "<leader>sl", ":SidewaysJumpRight<Cr>")
end,
}

View file

@ -0,0 +1,26 @@
return {
'nvim-orgmode/orgmode',
dependencies = {
{ 'nvim-treesitter/nvim-treesitter', lazy = true },
},
-- ADD THIS BACK LATER - SOMETHING WRONG, SO DOESNT START
-- event = 'VeryLazy',
config = function()
-- Load treesitter grammar for org
require('orgmode').setup_ts_grammar()
-- Setup treesitter
require('nvim-treesitter.configs').setup({
highlight = {
enable = true,
},
ensure_installed = { 'org' },
})
-- Setup orgmode
require('orgmode').setup({
org_agenda_files = '~/documents/orgfiles/**/*',
org_default_notes_file = '~/documents/orgfiles/refile.org',
})
end,
}

View file

@ -0,0 +1,14 @@
return {
"aperezdc/vim-template",
-- Change init to config, and then tell when to load
-- config only works for lua modules that are "required" by nvim.
init = function()
vim.g.templates_directory = "~/documents/latex-templates/"
vim.g.templates_no_builtin_templates = true
vim.g.templates_global_name_prefix = "template:"
vim.g.templates_name_prefix = "template:"
vim.g.templates_no_autocmd = true
-- vim.cmd("let g:templates_no_autocmd=1")
end,
-- cmd = "Template",
}

View file

@ -0,0 +1,6 @@
return {
"lervag/vimtex",
config = function()
vim.g.vimtex_view_method = 'zathura'
end,
}

52
lua/kickstart/health.lua Normal file
View file

@ -0,0 +1,52 @@
--[[
--
-- This file is not required for your own configuration,
-- but helps people determine if their system is setup correctly.
--
--]]
local check_version = function()
local verstr = string.format('%s.%s.%s', vim.version().major, vim.version().minor, vim.version().patch)
if not vim.version.cmp then
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
return
end
if vim.version.cmp(vim.version(), { 0, 9, 4 }) >= 0 then
vim.health.ok(string.format("Neovim version is: '%s'", verstr))
else
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
end
end
local check_external_reqs = function()
-- Basic utils: `git`, `make`, `unzip`
for _, exe in ipairs { 'git', 'make', 'unzip', 'rg' } do
local is_executable = vim.fn.executable(exe) == 1
if is_executable then
vim.health.ok(string.format("Found executable: '%s'", exe))
else
vim.health.warn(string.format("Could not find executable: '%s'", exe))
end
end
return true
end
return {
check = function()
vim.health.start 'kickstart.nvim'
vim.health.info [[NOTE: Not every warning is a 'must-fix' in `:checkhealth`
Fix only warnings for plugins and languages you intend to use.
Mason will give warnings for languages that are not installed.
You do not need to install, unless you want to use those languages!]]
local uv = vim.uv or vim.loop
vim.health.info('System Information: ' .. vim.inspect(uv.os_uname()))
check_version()
check_external_reqs()
end,
}

View file

@ -0,0 +1,9 @@
return {
{ -- Add indentation guides even on blank lines
'lukas-reineke/indent-blankline.nvim',
-- Enable `lukas-reineke/indent-blankline.nvim`
-- See `:help ibl`
main = 'ibl',
opts = {},
},
}