Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
|
ab2de7391a | 11 months ago |
@ -1,8 +1,8 @@
|
||||
tt.*
|
||||
.tests
|
||||
doc/tags
|
||||
debug
|
||||
.repro
|
||||
foo.*
|
||||
*.log
|
||||
data
|
||||
tt.*
|
||||
.tests
|
||||
doc/tags
|
||||
debug
|
||||
.repro
|
||||
foo.*
|
||||
*.log
|
||||
data
|
||||
|
@ -1,15 +1,15 @@
|
||||
{
|
||||
"neodev": {
|
||||
"library": {
|
||||
"enabled": true,
|
||||
"plugins": true
|
||||
}
|
||||
},
|
||||
"neoconf": {
|
||||
"plugins": {
|
||||
"lua_ls": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"neodev": {
|
||||
"library": {
|
||||
"enabled": true,
|
||||
"plugins": true
|
||||
}
|
||||
},
|
||||
"neoconf": {
|
||||
"plugins": {
|
||||
"lua_ls": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,2 +1,2 @@
|
||||
-- bootstrap lazy.nvim, LazyVim and your plugins
|
||||
require("config.lazy")
|
||||
-- bootstrap lazy.nvim, LazyVim and your plugins
|
||||
require("config.lazy")
|
||||
|
@ -1,3 +1,3 @@
|
||||
-- Autocmds are automatically loaded on the VeryLazy event
|
||||
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||
-- Add any additional autocmds here
|
||||
-- Autocmds are automatically loaded on the VeryLazy event
|
||||
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||
-- Add any additional autocmds here
|
||||
|
@ -1,3 +1,3 @@
|
||||
-- Keymaps are automatically loaded on the VeryLazy event
|
||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||
-- Add any additional keymaps here
|
||||
-- Keymaps are automatically loaded on the VeryLazy event
|
||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||
-- Add any additional keymaps here
|
||||
|
@ -1,46 +1,46 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
-- bootstrap lazy.nvim
|
||||
-- stylua: ignore
|
||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
|
||||
end
|
||||
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- add LazyVim and import its plugins
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
-- import any extras modules here
|
||||
-- { import = "lazyvim.plugins.extras.lang.typescript" },
|
||||
-- { import = "lazyvim.plugins.extras.lang.json" },
|
||||
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||
-- import/override with your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
defaults = {
|
||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||
lazy = false,
|
||||
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||
-- have outdated releases, which may break your Neovim install.
|
||||
version = false, -- always use the latest git commit
|
||||
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||
},
|
||||
--install = { colorscheme = { "catpuccin-mocha", "oxocarbon", "tokyonight", "habamax" } },
|
||||
checker = { enabled = true }, -- automatically check for plugin updates
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
-- "matchit",
|
||||
-- "matchparen",
|
||||
-- "netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
-- bootstrap lazy.nvim
|
||||
-- stylua: ignore
|
||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
|
||||
end
|
||||
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- add LazyVim and import its plugins
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
-- import any extras modules here
|
||||
-- { import = "lazyvim.plugins.extras.lang.typescript" },
|
||||
-- { import = "lazyvim.plugins.extras.lang.json" },
|
||||
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||
-- import/override with your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
defaults = {
|
||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||
lazy = false,
|
||||
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||
-- have outdated releases, which may break your Neovim install.
|
||||
version = false, -- always use the latest git commit
|
||||
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||
},
|
||||
--install = { colorscheme = { "catpuccin-mocha", "oxocarbon", "tokyonight", "habamax" } },
|
||||
checker = { enabled = true }, -- automatically check for plugin updates
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
-- "matchit",
|
||||
-- "matchparen",
|
||||
-- "netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
@ -1,3 +1,3 @@
|
||||
-- Options are automatically loaded before lazy.nvim startup
|
||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||
-- Add any additional options here
|
||||
-- Options are automatically loaded before lazy.nvim startup
|
||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||
-- Add any additional options here
|
||||
|
@ -1,3 +1,3 @@
|
||||
return {
|
||||
"danilamihailov/beacon.nvim",
|
||||
}
|
||||
return {
|
||||
"danilamihailov/beacon.nvim",
|
||||
}
|
||||
|
@ -0,0 +1,4 @@
|
||||
return {
|
||||
"luckasRanarison/clear-action.nvim",
|
||||
opts = {},
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
return {
|
||||
"tpope/vim-fireplace",
|
||||
dependencies = {
|
||||
"tpope/vim-sexp-mappings-for-regular-people",
|
||||
"tpope/vim-surround",
|
||||
"tpope/vim-salve",
|
||||
},
|
||||
}
|
||||
return {
|
||||
"tpope/vim-fireplace",
|
||||
dependencies = {
|
||||
"tpope/vim-sexp-mappings-for-regular-people",
|
||||
"tpope/vim-surround",
|
||||
"tpope/vim-salve",
|
||||
},
|
||||
}
|
||||
|
@ -1,69 +1,77 @@
|
||||
-- local colors_citylight = {
|
||||
-- black = "#1f252b",
|
||||
-- white = "#b7c5d3",
|
||||
-- red = "#e27e8d",
|
||||
-- green = "#54af83",
|
||||
-- blue = "#68a1f0",
|
||||
-- yellow = "#ebda65",
|
||||
-- grey = "#718ca1",
|
||||
-- darkgrey = "#41505e",
|
||||
-- aqua = "#9effff",
|
||||
-- orange = "#ebbf83",
|
||||
-- sage = "#008b94",
|
||||
-- steel = "#718ca1",
|
||||
-- teal = "#70e1e8",
|
||||
-- azure = "#5ec4ff",
|
||||
-- errorRed = "#f88070",
|
||||
-- successGreen = "#8bd49c",
|
||||
-- }
|
||||
|
||||
return {
|
||||
{ "rebelot/kanagawa.nvim" },
|
||||
{ "rktjmp/lush.nvim" },
|
||||
{ "kvrohit/rasmus.nvim" },
|
||||
{ "ntk148v/komau.vim" },
|
||||
{ "ray-x/aurora" },
|
||||
{ "nyoom-engineering/oxocarbon.nvim" },
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
local catppuccin = require("catppuccin")
|
||||
catppuccin.setup({
|
||||
transparent_background = true,
|
||||
italic = true,
|
||||
altfont = true,
|
||||
styles = {
|
||||
comments = { "italic" }, -- Change the style of comments
|
||||
conditionals = { "italic" },
|
||||
loops = {},
|
||||
functions = { "altfont", "italic" },
|
||||
keywords = {},
|
||||
strings = { "italic" },
|
||||
variables = {},
|
||||
numbers = {},
|
||||
booleans = { "altfont", "bold" },
|
||||
properties = {},
|
||||
types = {},
|
||||
operators = {},
|
||||
},
|
||||
color_overrides = {},
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"folke/styler.nvim",
|
||||
config = function()
|
||||
require("styler").setup({
|
||||
themes = {
|
||||
markdown = { colorscheme = "komau" },
|
||||
help = { colorscheme = "catppuccin-mocha", background = "dark" },
|
||||
elixir = { colorscheme = "catppuccin-mocha" },
|
||||
lua = { colorscheme = "catppuccin-mocha" },
|
||||
org = { colorscheme = "catppuccin-frappe" },
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
-- local colors_citylight = {
|
||||
-- black = "#1f252b",
|
||||
-- white = "#b7c5d3",
|
||||
-- red = "#e27e8d",
|
||||
-- green = "#54af83",
|
||||
-- blue = "#68a1f0",
|
||||
-- yellow = "#ebda65",
|
||||
-- grey = "#718ca1",
|
||||
-- darkgrey = "#41505e",
|
||||
-- aqua = "#9effff",
|
||||
-- orange = "#ebbf83",
|
||||
-- sage = "#008b94",
|
||||
-- steel = "#718ca1",
|
||||
-- teal = "#70e1e8",
|
||||
-- azure = "#5ec4ff",
|
||||
-- errorRed = "#f88070",
|
||||
-- successGreen = "#8bd49c",
|
||||
-- }
|
||||
|
||||
return {
|
||||
{ "rebelot/kanagawa.nvim" },
|
||||
{ "rktjmp/lush.nvim" },
|
||||
{ "kvrohit/rasmus.nvim" },
|
||||
{ "ntk148v/komau.vim" },
|
||||
{ "ray-x/aurora" },
|
||||
{ "nyoom-engineering/oxocarbon.nvim" },
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
local catppuccin = require("catppuccin")
|
||||
catppuccin.setup({
|
||||
transparent_background = true,
|
||||
italic = true,
|
||||
altfont = true,
|
||||
styles = {
|
||||
comments = { "italic" }, -- Change the style of comments
|
||||
conditionals = { "italic" },
|
||||
loops = {},
|
||||
functions = { "altfont", "italic" },
|
||||
keywords = {},
|
||||
strings = { "italic" },
|
||||
variables = {},
|
||||
numbers = {},
|
||||
booleans = { "altfont", "bold" },
|
||||
properties = {},
|
||||
types = {},
|
||||
operators = {},
|
||||
},
|
||||
color_overrides = {},
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"2nthony/vitesse.nvim",
|
||||
dependencies = {
|
||||
"tjdevries/colorbuddy.nvim",
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/styler.nvim",
|
||||
config = function()
|
||||
require("styler").setup({
|
||||
themes = {
|
||||
markdown = { colorscheme = "komau" },
|
||||
c = { colorscheme = "vitesse" },
|
||||
cpp = { colorscheme = "vitesse" },
|
||||
help = { colorscheme = "vitesse" },
|
||||
elixir = { colorscheme = "catppuccin-mocha" },
|
||||
lua = { colorscheme = "catppuccin-mocha" },
|
||||
org = { colorscheme = "vitesse" },
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
@ -1,29 +1,29 @@
|
||||
return {
|
||||
"elixir-tools/elixir-tools.nvim",
|
||||
version = "*",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = function()
|
||||
local elixir = require("elixir")
|
||||
local elixirls = require("elixir.elixirls")
|
||||
|
||||
elixir.setup({
|
||||
nextls = { enable = true },
|
||||
credo = {},
|
||||
elixirls = {
|
||||
enable = true,
|
||||
settings = elixirls.settings({
|
||||
dialyzerEnabled = false,
|
||||
enableTestLenses = false,
|
||||
}),
|
||||
on_attach = function(_, _)
|
||||
vim.keymap.set("n", "<space>fp", ":ElixirFromPipe<cr>", { buffer = true, noremap = true })
|
||||
vim.keymap.set("n", "<space>tp", ":ElixirToPipe<cr>", { buffer = true, noremap = true })
|
||||
vim.keymap.set("v", "<space>em", ":ElixirExpandMacro<cr>", { buffer = true, noremap = true })
|
||||
end,
|
||||
},
|
||||
})
|
||||
end,
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
}
|
||||
return {
|
||||
"elixir-tools/elixir-tools.nvim",
|
||||
version = "*",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = function()
|
||||
local elixir = require("elixir")
|
||||
local elixirls = require("elixir.elixirls")
|
||||
|
||||
elixir.setup({
|
||||
nextls = { enable = true },
|
||||
credo = {},
|
||||
elixirls = {
|
||||
enable = true,
|
||||
settings = elixirls.settings({
|
||||
dialyzerEnabled = false,
|
||||
enableTestLenses = false,
|
||||
}),
|
||||
on_attach = function(_, _)
|
||||
vim.keymap.set("n", "<space>fp", ":ElixirFromPipe<cr>", { buffer = true, noremap = true })
|
||||
vim.keymap.set("n", "<space>tp", ":ElixirToPipe<cr>", { buffer = true, noremap = true })
|
||||
vim.keymap.set("v", "<space>em", ":ElixirExpandMacro<cr>", { buffer = true, noremap = true })
|
||||
end,
|
||||
},
|
||||
})
|
||||
end,
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
}
|
||||
|
@ -0,0 +1,3 @@
|
||||
return {
|
||||
"dimaportenko/telescope-simulators.nvim",
|
||||
}
|
@ -1,48 +1,48 @@
|
||||
return {
|
||||
"folke/flash.nvim",
|
||||
event = "VeryLazy",
|
||||
---@type Flash.Config
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
"s",
|
||||
mode = { "n", "x", "o" },
|
||||
function()
|
||||
require("flash").jump()
|
||||
end,
|
||||
desc = "Flash",
|
||||
},
|
||||
{
|
||||
"S",
|
||||
mode = { "n", "o", "x" },
|
||||
function()
|
||||
require("flash").treesitter()
|
||||
end,
|
||||
desc = "Flash Treesitter",
|
||||
},
|
||||
{
|
||||
"r",
|
||||
mode = "o",
|
||||
function()
|
||||
require("flash").remote()
|
||||
end,
|
||||
desc = "Remote Flash",
|
||||
},
|
||||
{
|
||||
"R",
|
||||
mode = { "o", "x" },
|
||||
function()
|
||||
require("flash").treesitter_search()
|
||||
end,
|
||||
desc = "Flash Treesitter Search",
|
||||
},
|
||||
{
|
||||
"<c-s>",
|
||||
mode = { "c" },
|
||||
function()
|
||||
require("flash").toggle()
|
||||
end,
|
||||
desc = "Toggle Flash Search",
|
||||
},
|
||||
},
|
||||
}
|
||||
return {
|
||||
"folke/flash.nvim",
|
||||
event = "VeryLazy",
|
||||
---@type Flash.Config
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
"s",
|
||||
mode = { "n", "x", "o" },
|
||||
function()
|
||||
require("flash").jump()
|
||||
end,
|
||||
desc = "Flash",
|
||||
},
|
||||
{
|
||||
"S",
|
||||
mode = { "n", "o", "x" },
|
||||
function()
|
||||
require("flash").treesitter()
|
||||
end,
|
||||
desc = "Flash Treesitter",
|
||||
},
|
||||
{
|
||||
"r",
|
||||
mode = "o",
|
||||
function()
|
||||
require("flash").remote()
|
||||
end,
|
||||
desc = "Remote Flash",
|
||||
},
|
||||
{
|
||||
"R",
|
||||
mode = { "o", "x" },
|
||||
function()
|
||||
require("flash").treesitter_search()
|
||||
end,
|
||||
desc = "Flash Treesitter Search",
|
||||
},
|
||||
{
|
||||
"<c-s>",
|
||||
mode = { "c" },
|
||||
function()
|
||||
require("flash").toggle()
|
||||
end,
|
||||
desc = "Toggle Flash Search",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -0,0 +1,9 @@
|
||||
return {
|
||||
"akinsho/flutter-tools.nvim",
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"stevearc/dressing.nvim", -- optional for vim.ui.select
|
||||
},
|
||||
config = true,
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
return {
|
||||
"tpope/vim-fugitive",
|
||||
}
|
||||
return {
|
||||
"tpope/vim-fugitive",
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
return {
|
||||
"phaazon/hop.nvim",
|
||||
branch = "v2",
|
||||
}
|
||||
return {
|
||||
"phaazon/hop.nvim",
|
||||
branch = "v2",
|
||||
}
|
||||
|
@ -1,16 +1,5 @@
|
||||
return {
|
||||
"vhyrro/luarocks.nvim",
|
||||
priority = 1000,
|
||||
config = true,
|
||||
opts = {
|
||||
rocks = {
|
||||
"luasec",
|
||||
"lua-utils", --"lua-curl",
|
||||
"nvim-nio",
|
||||
"mimetypes",
|
||||
"xml2lua",
|
||||
"pathlib.nvim",
|
||||
"fzy",
|
||||
},
|
||||
},
|
||||
priority = 1000, -- We'd like this plugin to load first out of the rest
|
||||
config = true, -- This automatically runs `require("luarocks-nvim").setup()`
|
||||
}
|
||||
|
@ -1,39 +1,37 @@
|
||||
return {
|
||||
"nvim-neorg/neorg",
|
||||
build = ":Neorg sync-parsers",
|
||||
dependencies = { "luarocks.nvim" },
|
||||
lazy = false,
|
||||
version = "*",
|
||||
config = function()
|
||||
require("neorg").setup({
|
||||
load = {
|
||||
["core.defaults"] = {},
|
||||
["core.highlights"] = {},
|
||||
["core.concealer"] = {},
|
||||
["core.dirman"] = {
|
||||
config = {
|
||||
workspaces = {
|
||||
notes = "~/Documents/vorg/work",
|
||||
gtd = "~/Documents/vorg/gtd",
|
||||
},
|
||||
index = "index.norg",
|
||||
default_workspace = "notes",
|
||||
open_last_workspace = true,
|
||||
use_popup = true,
|
||||
},
|
||||
},
|
||||
["core.qol.todo_items"] = {
|
||||
config = {
|
||||
create_todo_items = true,
|
||||
},
|
||||
},
|
||||
["core.presenter"] = {
|
||||
config = {
|
||||
zen_mode = "truezen",
|
||||
},
|
||||
},
|
||||
["core.export"] = {},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
return {
|
||||
"nvim-neorg/neorg",
|
||||
build = ":Neorg sync-parsers",
|
||||
dependencies = { "nvim-lua/plenary.nvim", "luarocks.nvim" },
|
||||
config = function()
|
||||
require("neorg").setup({
|
||||
load = {
|
||||
["core.defaults"] = {},
|
||||
["core.highlights"] = {},
|
||||
["core.concealer"] = {},
|
||||
["core.dirman"] = {
|
||||
config = {
|
||||
workspaces = {
|
||||
notes = "~/Documents/vorg/work",
|
||||
gtd = "~/Documents/vorg/gtd",
|
||||
},
|
||||
index = "index.norg",
|
||||
default_workspace = "notes",
|
||||
open_last_workspace = true,
|
||||
use_popup = true,
|
||||
},
|
||||
},
|
||||
["core.qol.todo_items"] = {
|
||||
config = {
|
||||
create_todo_items = true,
|
||||
},
|
||||
},
|
||||
["core.presenter"] = {
|
||||
config = {
|
||||
zen_mode = "truezen",
|
||||
},
|
||||
},
|
||||
["core.export"] = {},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
@ -1,30 +0,0 @@
|
||||
return {
|
||||
"Shatur/neovim-tasks",
|
||||
config = function()
|
||||
local tasks = require("tasks")
|
||||
local Path = require("plenary.path")
|
||||
|
||||
tasks.setup({
|
||||
default_params = {
|
||||
cmake = {
|
||||
cmd = "cmake",
|
||||
build_dir = tostring(Path:new("{cwd}", "build")),
|
||||
build_type = "Debug",
|
||||
dap_name = "lldb",
|
||||
args = {
|
||||
configure = { "-D", "CMAKE_EXPORT_COMPILE_COMMANDS=1" },
|
||||
},
|
||||
},
|
||||
},
|
||||
save_before_run = true,
|
||||
params_file = "neovim.json",
|
||||
quickfix = {
|
||||
pos = "botright",
|
||||
height = 12,
|
||||
},
|
||||
dap_open_command = function()
|
||||
return require("dapiu").open()
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
init = function()
|
||||
-- disable rtp plugin, as we only need its queries for mini.ai
|
||||
-- In case other textobject modules are enabled, we will load them
|
||||
-- once nvim-treesitter is loaded
|
||||
require("lazy.core.loader").disable_rtp_plugin("nvim-treesitter-textobjects")
|
||||
load_textobjects = true
|
||||
end,
|
||||
}
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
init = function()
|
||||
-- disable rtp plugin, as we only need its queries for mini.ai
|
||||
-- In case other textobject modules are enabled, we will load them
|
||||
-- once nvim-treesitter is loaded
|
||||
require("lazy.core.loader").disable_rtp_plugin("nvim-treesitter-textobjects")
|
||||
load_textobjects = true
|
||||
end,
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
return {
|
||||
"stevearc/oil.nvim",
|
||||
opts = {},
|
||||
-- Optional dependencies
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
}
|
||||
return {
|
||||
"stevearc/oil.nvim",
|
||||
opts = {},
|
||||
-- Optional dependencies
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
return {
|
||||
"nvim-orgmode/orgmode",
|
||||
ft = { "org" },
|
||||
config = function()
|
||||
local org = require("orgmode")
|
||||
org.setup_ts_grammar()
|
||||
org.setup({
|
||||
org_agenda_files = { "~/Documents/org/*" },
|
||||
org_default_notes_file = "~/Documents/org/refile.org",
|
||||
})
|
||||
end,
|
||||
}
|
||||
return {
|
||||
"nvim-orgmode/orgmode",
|
||||
ft = { "org" },
|
||||
config = function()
|
||||
local org = require("orgmode")
|
||||
org.setup_ts_grammar()
|
||||
org.setup({
|
||||
org_agenda_files = { "~/Documents/org/*" },
|
||||
org_default_notes_file = "~/Documents/org/refile.org",
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
@ -1,8 +0,0 @@
|
||||
return {
|
||||
"rest-nvim/rest.nvim",
|
||||
ft = "http",
|
||||
dependencies = { "luarocks.nvim" },
|
||||
config = function()
|
||||
require("rest-nvim").setup()
|
||||
end,
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
return {
|
||||
"DefaultGen/simple-denote.nvim",
|
||||
config = function()
|
||||
local map = vim.keymap.set
|
||||
require("simple-denote").setup({
|
||||
ext = "org", -- Note file extension
|
||||
dir = "~/org", -- Notes directory (should already exist)
|
||||
add_heading = true, -- Add a md/org heading to new notes
|
||||
retitle_hea = true, -- Replace the first line with a new heading when retitling
|
||||
})
|
||||
map({ "n" }, "<leader>nn", "<cmd>Denote note<cr>", { noremap = true })
|
||||
end,
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
return {
|
||||
"simrat39/symbols-outline.nvim",
|
||||
cmd = "SymbolsOutline",
|
||||
keys = { { "<leader>cs", "<cmd>SymbolsOutline<cr>", desc = "Symbols Outline" } },
|
||||
config = true,
|
||||
}
|
||||
return {
|
||||
"simrat39/symbols-outline.nvim",
|
||||
cmd = "SymbolsOutline",
|
||||
keys = { { "<leader>cs", "<cmd>SymbolsOutline<cr>", desc = "Symbols Outline" } },
|
||||
config = true,
|
||||
}
|
||||
|
@ -1,18 +1,19 @@
|
||||
return {
|
||||
"ribelo/taskwarrior.nvim",
|
||||
config = function()
|
||||
local map = vim.keymap.set
|
||||
local taskwarrior = require("taskwarrior_nvim.taskwarrior")
|
||||
|
||||
map({ "n" }, "<leader>ta", function()
|
||||
vim.ui.input({ prompt = "Custom command: " }, function(input)
|
||||
vim.notify(input)
|
||||
taskwarrior.add_task({ input })
|
||||
end)
|
||||
end, { noremap = true })
|
||||
|
||||
map({ "n" }, "<leader>tb", function()
|
||||
require("taskwarrior_nvim").browser({ "ready" })
|
||||
end, { noremap = true })
|
||||
local taskwarrior = require("taskwarrior_nvim")
|
||||
-- vim.keymap.set("n", "<space>fp", ":ElixirFromPipe<cr>", { buffer = true, noremap = true })
|
||||
-- vim.keymap.set(
|
||||
-- "n",
|
||||
-- "<space>ta",
|
||||
-- taskwarrior.cmd("add", unpack(vim.split(vim.fn.input("Custom command: ")))),
|
||||
-- { buffer = true, noremap = true }
|
||||
-- )
|
||||
-- vim.keymap.set(
|
||||
-- "n",
|
||||
-- "<space>tb",
|
||||
-- require("taskwarrior_nvim").browser({ "ready" }),
|
||||
-- { buffer = true, noremap = true }
|
||||
-- )
|
||||
end,
|
||||
}
|
||||
|
@ -1,17 +1,17 @@
|
||||
return {
|
||||
{
|
||||
"aserowy/tmux.nvim",
|
||||
config = function()
|
||||
return require("tmux").setup({})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"christoomey/vim-tmux-navigator",
|
||||
keys = {
|
||||
["<C-h"] = { "<cmd> TmuxNavigatorLeft<CR>", "Window Left" },
|
||||
["<C-l"] = { "<cmd> TmuxNavigatorRight<CR>", "Window Right" },
|
||||
["<C-j"] = { "<cmd> TmuxNavigatorDown<CR>", "Window Down" },
|
||||
["<C-k"] = { "<cmd> TmuxNavigatorUp<CR>", "Window Up" },
|
||||
},
|
||||
},
|
||||
}
|
||||
return {
|
||||
{
|
||||
"aserowy/tmux.nvim",
|
||||
config = function()
|
||||
return require("tmux").setup({})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"christoomey/vim-tmux-navigator",
|
||||
keys = {
|
||||
["<C-h"] = { "<cmd> TmuxNavigatorLeft<CR>", "Window Left" },
|
||||
["<C-l"] = { "<cmd> TmuxNavigatorRight<CR>", "Window Right" },
|
||||
["<C-j"] = { "<cmd> TmuxNavigatorDown<CR>", "Window Down" },
|
||||
["<C-k"] = { "<cmd> TmuxNavigatorUp<CR>", "Window Up" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -1,114 +1,114 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
version = false, -- last release is way too old and doesn't work on Windows
|
||||
build = ":TSUpdate",
|
||||
event = { "BufReadPost", "BufNewFile" },
|
||||
dependencies = {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
init = function()
|
||||
-- disable rtp plugin, as we only need its queries for mini.ai
|
||||
-- In case other textobject modules are enabled, we will load them
|
||||
-- once nvim-treesitter is loaded
|
||||
require("lazy.core.loader").disable_rtp_plugin("nvim-treesitter-textobjects")
|
||||
load_textobjects = true
|
||||
end,
|
||||
},
|
||||
},
|
||||
cmd = { "TSUpdateSync" },
|
||||
keys = {
|
||||
{ "<c-space>", desc = "Increment selection" },
|
||||
{ "<bs>", desc = "Decrement selection", mode = "x" },
|
||||
},
|
||||
---@type TSConfig
|
||||
opts = {
|
||||
highlight = { enable = true, additional_vim_regex_highlighting = { "org" } },
|
||||
indent = { enable = true },
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"bicep",
|
||||
"c",
|
||||
"clojure",
|
||||
"comment",
|
||||
"commonlisp",
|
||||
"cpp",
|
||||
"eex",
|
||||
--"elisp",
|
||||
"elixir",
|
||||
"erlang",
|
||||
"go",
|
||||
"haskell",
|
||||
"html",
|
||||
"java",
|
||||
"javascript",
|
||||
"json",
|
||||
"kotlin",
|
||||
"latex",
|
||||
"ledger",
|
||||
"lua",
|
||||
"luadoc",
|
||||
"luap",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"nix",
|
||||
"ocaml",
|
||||
"org",
|
||||
"perl",
|
||||
"php",
|
||||
"phpdoc",
|
||||
"python",
|
||||
"query",
|
||||
"regex",
|
||||
"ruby",
|
||||
"rust",
|
||||
"scala",
|
||||
"scheme",
|
||||
"sql",
|
||||
"tsx",
|
||||
"typescript",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
"yaml",
|
||||
"zig",
|
||||
},
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "<C-space>",
|
||||
node_incremental = "<C-space>",
|
||||
scope_incremental = false,
|
||||
node_decremental = "<bs>",
|
||||
},
|
||||
},
|
||||
},
|
||||
---@param opts TSConfig
|
||||
config = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
---@type table<string, boolean>
|
||||
local added = {}
|
||||
opts.ensure_installed = vim.tbl_filter(function(lang)
|
||||
if added[lang] then
|
||||
return false
|
||||
end
|
||||
added[lang] = true
|
||||
return true
|
||||
end, opts.ensure_installed)
|
||||
end
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
|
||||
if load_textobjects then
|
||||
-- PERF: no need to load the plugin, if we only need its queries for mini.ai
|
||||
if opts.textobjects then
|
||||
for _, mod in ipairs({ "move", "select", "swap", "lsp_interop" }) do
|
||||
if opts.textobjects[mod] and opts.textobjects[mod].enable then
|
||||
local Loader = require("lazy.core.loader")
|
||||
Loader.disabled_rtp_plugins["nvim-treesitter-textobjects"] = nil
|
||||
local plugin = require("lazy.core.config").plugins["nvim-treesitter-textobjects"]
|
||||
require("lazy.core.loader").source_runtime(plugin.dir, "plugin")
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
}
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
version = false, -- last release is way too old and doesn't work on Windows
|
||||
build = ":TSUpdate",
|
||||
event = { "BufReadPost", "BufNewFile" },
|
||||
dependencies = {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
init = function()
|
||||
-- disable rtp plugin, as we only need its queries for mini.ai
|
||||
-- In case other textobject modules are enabled, we will load them
|
||||
-- once nvim-treesitter is loaded
|
||||
require("lazy.core.loader").disable_rtp_plugin("nvim-treesitter-textobjects")
|
||||
load_textobjects = true
|
||||
end,
|
||||
},
|
||||
},
|
||||
cmd = { "TSUpdateSync" },
|
||||
keys = {
|
||||
{ "<c-space>", desc = "Increment selection" },
|
||||
{ "<bs>", desc = "Decrement selection", mode = "x" },
|
||||
},
|
||||
---@type TSConfig
|
||||
opts = {
|
||||
highlight = { enable = true, additional_vim_regex_highlighting = { "org" } },
|
||||
indent = { enable = true },
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"bicep",
|
||||
"c",
|
||||
"clojure",
|
||||
"comment",
|
||||
"commonlisp",
|
||||
"cpp",
|
||||
"eex",
|
||||
--"elisp",
|
||||
"elixir",
|
||||
"erlang",
|
||||
"go",
|
||||
"haskell",
|
||||
"html",
|
||||
"java",
|
||||
"javascript",
|
||||
"json",
|
||||
"kotlin",
|
||||
"latex",
|
||||
"ledger",
|
||||
"lua",
|
||||
"luadoc",
|
||||
"luap",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"nix",
|
||||
"ocaml",
|
||||
"org",
|
||||
"perl",
|
||||
"php",
|
||||
"phpdoc",
|
||||
"python",
|
||||
"query",
|
||||
"regex",
|
||||
"ruby",
|
||||
"rust",
|
||||
"scala",
|
||||
"scheme",
|
||||
"sql",
|
||||
"tsx",
|
||||
"typescript",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
"yaml",
|
||||
"zig",
|
||||
},
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "<C-space>",
|
||||
node_incremental = "<C-space>",
|
||||
scope_incremental = false,
|
||||
node_decremental = "<bs>",
|
||||
},
|
||||
},
|
||||
},
|
||||
---@param opts TSConfig
|
||||
config = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
---@type table<string, boolean>
|
||||
local added = {}
|
||||
opts.ensure_installed = vim.tbl_filter(function(lang)
|
||||
if added[lang] then
|
||||
return false
|
||||
end
|
||||
added[lang] = true
|
||||
return true
|
||||
end, opts.ensure_installed)
|
||||
end
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
|
||||
if load_textobjects then
|
||||
-- PERF: no need to load the plugin, if we only need its queries for mini.ai
|
||||
if opts.textobjects then
|
||||
for _, mod in ipairs({ "move", "select", "swap", "lsp_interop" }) do
|
||||
if opts.textobjects[mod] and opts.textobjects[mod].enable then
|
||||
local Loader = require("lazy.core.loader")
|
||||
Loader.disabled_rtp_plugins["nvim-treesitter-textobjects"] = nil
|
||||
local plugin = require("lazy.core.config").plugins["nvim-treesitter-textobjects"]
|
||||
require("lazy.core.loader").source_runtime(plugin.dir, "plugin")
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
return {
|
||||
"2nthony/vitesse.nvim",
|
||||
dependencies = {
|
||||
"tjdevries/colorbuddy.nvim",
|
||||
},
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
return {
|
||||
"cuducos/yaml.nvim",
|
||||
ft = { "yaml" }, -- optional
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"nvim-telescope/telescope.nvim", -- optional
|
||||
},
|
||||
}
|
@ -1 +1 @@
|
||||
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
column_width = 120
|
Loading…
Reference in New Issue