Browse Source

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

Abouzar Parvan 4 years ago
parent
commit
93379a2977

+ 1 - 1
ftplugin/euphoria3.lua

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

+ 1 - 1
ftplugin/java.lua

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

+ 1 - 1
ftplugin/python.lua

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

+ 1 - 1
ftplugin/rust.lua

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

+ 1 - 1
init.lua

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

+ 2 - 2
lua/default-config.lua

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

+ 1 - 1
lua/keymappings.lua

@@ -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("t", "<Esc>", "<C-\\><C-n>", { silent = true, noremap = true })
 
--- TODO fix this
+-- TODO: fix this
 -- resize with arrows
 if vim.fn.has "mac" == 1 then
   vim.api.nvim_set_keymap("n", "<C-Up>", ":resize -2<CR>", { silent = true })

+ 1 - 1
lua/lsp/angular-ls.lua

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

+ 1 - 1
lua/lsp/init.lua

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

+ 1 - 1
lua/lsp/svelte-ls.lua

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

+ 1 - 1
lua/lsp/tailwindcss-ls.lua

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

+ 1 - 1
lua/lv-gitsigns/config.lua

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

+ 2 - 1
lua/lv-treesitter/init.lua

@@ -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
 --
 -- Custom parsers
@@ -86,4 +86,5 @@ if not status_ok then
   return
 end
 
+
 treesitter_configs.setup(O.treesitter)

+ 1 - 1
lua/lv-utils/init.lua

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

+ 2 - 2
lua/plugins.lua

@@ -27,7 +27,7 @@ return require("packer").startup(function(use)
   -- Packer can manage itself as an optional plugin
   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 {
     "kabouzeid/nvim-lspinstall",
@@ -177,7 +177,7 @@ return require("packer").startup(function(use)
     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
   use {
     "numToStr/FTerm.nvim",

+ 1 - 1
utils/installer/lv-config.example-no-ts.lua

@@ -18,7 +18,7 @@ O.default_options.wrap = true
 O.default_options.timeoutlen = 100
 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
 O.plugin.dashboard.active = true
 O.plugin.floatterm.active = true

+ 1 - 1
utils/installer/lv-config.example.lua

@@ -18,7 +18,7 @@ O.default_options.wrap = true
 O.default_options.timeoutlen = 100
 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
 O.plugin.dashboard.active = true
 O.plugin.floatterm.active = true