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