Instructions
- Copy the file below into one called
testez.yml
- In
selene.toml
, replacestd = "roblox"
withstd = "roblox+testez"
local M = {} | |
local module_name = 'map_utils' | |
local fn_store = {} | |
local function register_fn(fn) | |
table.insert(fn_store, fn) | |
return #fn_store | |
end | |
function M.apply_function(id) |
-- Taken from here: | |
-- https://github.com/neovim/neovim/issues/14116#issuecomment-977555102 | |
function PromptBackspace() | |
-- Have to know the length of the prompt | |
local prompt = 2 | |
local cursor = vim.api.nvim_win_get_cursor(0) | |
local line = cursor[1] | |
local col = cursor[2] | |
if col ~= prompt then |
--[[ | |
Dependencies: | |
Completion: | |
https://github.com/hrsh7th/nvim-cmp | |
https://github.com/hrsh7th/cmp-buffer | |
https://github.com/hrsh7th/cmp-path | |
https://github.com/saadparwaiz1/cmp_luasnip | |
Snippets: |
-- | |
-- Move this file to your neovim lua runtime path ie. ~/.config/nvim/lua/au.lua | |
-- | |
local cmd = vim.api.nvim_command | |
local function autocmd(this, event, spec) | |
local is_table = type(spec) == 'table' | |
local pattern = is_table and spec[1] or '*' | |
local action = is_table and spec[2] or spec | |
if type(action) == 'function' then |
-- put this file somewhere in your nvim config, like: ~/.config/nvim/lua/config/lua-lsp.lua | |
-- usage: require'lspconfig'.sumneko_lua.setup(require("config.lua-lsp")) | |
local library = {} | |
local path = vim.split(package.path, ";") | |
-- this is the ONLY correct way to setup your path | |
table.insert(path, "lua/?.lua") | |
table.insert(path, "lua/?/init.lua") |
-- ~/.config/nvim/lua/plugins/feline/colors.lua | |
-- One-dark colors | |
local _M = { | |
bg = '#2c323c', | |
fg = none, | |
yellow = '#e5c07b', | |
cyan = '#8abeb7', | |
darkblue = '#528bff', | |
green = '#98c379', |
#Neovim Trick | |
Live Reload on plugin development and init.lua | |
# Demo | |
# How | |
* [ ] code |
;;; Asynchronous detailed git modeline. | |
;; git-ml is free software: you can redistribute it and/or modify it under the | |
;; terms of the GNU General Public License as published by the Free Software | |
;; Foundation, either version 3 of the License, or (at your option) any later | |
;; version. | |
;; This is a rough sketch. Things to do before publishing it as a package: | |
;; | |
;; * Consider doing the checks per git directory instead of per buffer, then |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" VIM SETTINGS | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" TURNS LINE NUMBERING ON | |
set nu | |
" trigger `autoread` when files changes on disk | |
set autoread | |
autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' | checktime | endif |
testez.yml
selene.toml
, replace std = "roblox"
with std = "roblox+testez"