avoiding OCD attack with the help of folke/todo-comments (#839)

This commit is contained in:
Abouzar Parvan 2021-07-11 02:04:20 +04:30 committed by GitHub
parent 5c76003228
commit 93379a2977
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 20 additions and 19 deletions

View file

@ -2,7 +2,7 @@ if require("lv-utils").check_lsp_client_active "elixirls" then
return return
end end
-- TODO Remove this at some point -- TODO: Remove this at some point
require("lspconfig").elixirls.setup { require("lspconfig").elixirls.setup {
cmd = { DATA_PATH .. "/lspinstall/elixir/elixir-ls/language_server.sh" }, cmd = { DATA_PATH .. "/lspinstall/elixir/elixir-ls/language_server.sh" },
} }

View file

@ -61,7 +61,7 @@ end
-- init_options = {bundles = bundles} -- init_options = {bundles = bundles}
-- }) -- })
-- TODO setup autoformat stuff later -- TODO: setup autoformat stuff later
-- _java = { -- _java = {
-- -- {'FileType', 'java', 'luafile '..CONFIG_PATH..'/lua/lsp/java-ls.lua'}, -- -- {'FileType', 'java', 'luafile '..CONFIG_PATH..'/lua/lsp/java-ls.lua'},
-- { -- {

View file

@ -1,6 +1,6 @@
local python_arguments = {} local python_arguments = {}
-- TODO replace with path argument -- TODO: replace with path argument
local flake8 = { local flake8 = {
LintCommand = "flake8 --ignore=E501 --stdin-display-name ${INPUT} -", LintCommand = "flake8 --ignore=E501 --stdin-display-name ${INPUT} -",
lintStdin = true, lintStdin = true,

View file

@ -85,7 +85,7 @@ else
} }
end end
-- TODO fix these mappings -- TODO: fix these mappings
vim.api.nvim_exec( vim.api.nvim_exec(
[[ [[
autocmd Filetype rust nnoremap <leader>lm <Cmd>RustExpandMacro<CR> autocmd Filetype rust nnoremap <leader>lm <Cmd>RustExpandMacro<CR>

View file

@ -10,7 +10,7 @@ require "settings"
require "lv-utils" require "lv-utils"
require "lv-treesitter" require "lv-treesitter"
-- TODO these guys need to be in language files -- TODO: these guys need to be in language files
-- require "lsp" -- require "lsp"
-- if O.lang.emmet.active then -- if O.lang.emmet.active then
-- require "lsp.emmet-ls" -- require "lsp.emmet-ls"

View file

@ -54,7 +54,7 @@ O = {
scrolloff = 8, -- is one of my fav scrolloff = 8, -- is one of my fav
}, },
-- TODO refactor for tree -- TODO: refactor for tree
auto_close_tree = 0, auto_close_tree = 0,
nvim_tree_disable_netrw = 0, nvim_tree_disable_netrw = 0,
@ -76,7 +76,7 @@ O = {
lush = { active = false }, lush = { active = false },
}, },
-- TODO just using mappings (leader mappings) -- TODO: just using mappings (leader mappings)
user_which_key = {}, user_which_key = {},
user_plugins = { user_plugins = {

View file

@ -15,7 +15,7 @@ vim.api.nvim_set_keymap("i", "<C-k>", "<C-\\><C-N><C-w>k", { silent = true, nore
vim.api.nvim_set_keymap("i", "<C-l>", "<C-\\><C-N><C-w>l", { silent = true, noremap = true }) vim.api.nvim_set_keymap("i", "<C-l>", "<C-\\><C-N><C-w>l", { silent = true, noremap = true })
vim.api.nvim_set_keymap("t", "<Esc>", "<C-\\><C-n>", { silent = true, noremap = true }) vim.api.nvim_set_keymap("t", "<Esc>", "<C-\\><C-n>", { silent = true, noremap = true })
-- TODO fix this -- TODO: fix this
-- resize with arrows -- resize with arrows
if vim.fn.has "mac" == 1 then if vim.fn.has "mac" == 1 then
vim.api.nvim_set_keymap("n", "<C-Up>", ":resize -2<CR>", { silent = true }) vim.api.nvim_set_keymap("n", "<C-Up>", ":resize -2<CR>", { silent = true })

View file

@ -1,4 +1,4 @@
-- TODO find correct root filetype -- TODO: find correct root filetype
-- :LspInstall angular -- :LspInstall angular
require("lspconfig").angularls.setup { require("lspconfig").angularls.setup {
cmd = { DATA_PATH .. "/lspinstall/angular/node_modules/@angular/language-server/bin/ngserver", "--stdio" }, cmd = { DATA_PATH .. "/lspinstall/angular/node_modules/@angular/language-server/bin/ngserver", "--stdio" },

View file

@ -1,4 +1,4 @@
-- TODO figure out why this don't work -- TODO: figure out why this don't work
vim.fn.sign_define( vim.fn.sign_define(
"LspDiagnosticsSignError", "LspDiagnosticsSignError",
{ texthl = "LspDiagnosticsSignError", text = "", numhl = "LspDiagnosticsSignError" } { texthl = "LspDiagnosticsSignError", text = "", numhl = "LspDiagnosticsSignError" }

View file

@ -1,4 +1,4 @@
-- TODO what is a svelte filetype -- TODO: what is a svelte filetype
require("lspconfig").svelte.setup { require("lspconfig").svelte.setup {
cmd = { DATA_PATH .. "/lspinstall/svelte/node_modules/.bin/svelteserver", "--stdio" }, cmd = { DATA_PATH .. "/lspinstall/svelte/node_modules/.bin/svelteserver", "--stdio" },
on_attach = require("lsp").common_on_attach, on_attach = require("lsp").common_on_attach,

View file

@ -1,4 +1,4 @@
-- TODO what is a tailwindcss filetype -- TODO: what is a tailwindcss filetype
local lspconfig = require "lspconfig" local lspconfig = require "lspconfig"
lspconfig.tailwindcss.setup { lspconfig.tailwindcss.setup {

View file

@ -1,6 +1,6 @@
O.plugin.gitsigns = { O.plugin.gitsigns = {
signs = { signs = {
-- TODO add hl to colorscheme -- TODO: add hl to colorscheme
add = { add = {
hl = "GitSignsAdd", hl = "GitSignsAdd",
text = "", text = "",

View file

@ -1,4 +1,4 @@
-- TODO refacor this whole file and treesitter in general -- TODO: refacor this whole file and treesitter in general
-- if not package.loaded['nvim-treesitter'] then return end -- if not package.loaded['nvim-treesitter'] then return end
-- --
-- Custom parsers -- Custom parsers
@ -86,4 +86,5 @@ if not status_ok then
return return
end end
treesitter_configs.setup(O.treesitter) treesitter_configs.setup(O.treesitter)

View file

@ -121,4 +121,4 @@ endfunction
return lv_utils return lv_utils
-- TODO find a new home for these autocommands -- TODO: find a new home for these autocommands

View file

@ -27,7 +27,7 @@ return require("packer").startup(function(use)
-- Packer can manage itself as an optional plugin -- Packer can manage itself as an optional plugin
use "wbthomason/packer.nvim" use "wbthomason/packer.nvim"
-- TODO refactor all of this (for now it works, but yes I know it could be wrapped in a simpler function) -- TODO: refactor all of this (for now it works, but yes I know it could be wrapped in a simpler function)
use { "neovim/nvim-lspconfig" } use { "neovim/nvim-lspconfig" }
use { use {
"kabouzeid/nvim-lspinstall", "kabouzeid/nvim-lspinstall",
@ -177,7 +177,7 @@ return require("packer").startup(function(use)
disable = not O.plugin.dashboard.active, disable = not O.plugin.dashboard.active,
} }
-- TODO remove in favor of akinsho/nvim-toggleterm.lua -- TODO: remove in favor of akinsho/nvim-toggleterm.lua
-- Floating terminal -- Floating terminal
use { use {
"numToStr/FTerm.nvim", "numToStr/FTerm.nvim",

View file

@ -18,7 +18,7 @@ O.default_options.wrap = true
O.default_options.timeoutlen = 100 O.default_options.timeoutlen = 100
O.leader_key = " " O.leader_key = " "
-- TODO User Config for predefined plugins -- TODO: User Config for predefined plugins
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
O.plugin.dashboard.active = true O.plugin.dashboard.active = true
O.plugin.floatterm.active = true O.plugin.floatterm.active = true

View file

@ -18,7 +18,7 @@ O.default_options.wrap = true
O.default_options.timeoutlen = 100 O.default_options.timeoutlen = 100
O.leader_key = " " O.leader_key = " "
-- TODO User Config for predefined plugins -- TODO: User Config for predefined plugins
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
O.plugin.dashboard.active = true O.plugin.dashboard.active = true
O.plugin.floatterm.active = true O.plugin.floatterm.active = true