-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6956d8
commit cdd73d5
Showing
44 changed files
with
573 additions
and
887 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
vim.g.html_indent_inctags = "html,body,head,tbody,div" | ||
vim.g.html_indent_script1 = "inc" | ||
vim.b.softtabstop = 2 | ||
vim.b.shiftwidth = 2 | ||
vim.b.tabstop = 2 |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
vim.api.nvim_create_autocmd("InsertCharPre", { | ||
pattern = { "*.py" }, | ||
group = vim.api.nvim_create_augroup("py-fstring", { clear = true }), | ||
callback = function(params) | ||
if vim.v.char ~= "{" then return end | ||
|
||
local node = vim.treesitter.get_node({}) | ||
|
||
if not node then return end | ||
|
||
if node:type() ~= "string" then node = node:parent() end | ||
|
||
if not node or node:type() ~= "string" then return end | ||
local row, col, _, _ = vim.treesitter.get_node_range(node) | ||
local first_char = vim.api.nvim_buf_get_text(params.buf, row, col, row, col + 1, {})[1] | ||
if first_char == "f" then return end | ||
|
||
vim.api.nvim_input("<Esc>m'" .. row + 1 .. "gg" .. col + 1 .. "|if<esc>`'la") | ||
end, | ||
}) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- vim.g.rustfmt_autosave = 0 | ||
-- vim.g.syntastic_rust_checkers = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- vim.keymap.set("n", "<leader>s", "<Plug>(tmux_source_file)", { silent = true, noremap = true }) | ||
-- vim.keymap.set("n", "K", "<Plug>(tmux_show_man_floatwin)", { silent = true, noremap = true }) | ||
-- vim.keymap.set("n", "g!!", "<Plug>(tmux_execute_cursorline)", { silent = true, noremap = true }) | ||
-- vim.keymap.set("n", "g!", "<Plug>(tmux_execute_selection)", { silent = true, noremap = true }) | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, { | ||
pattern = "*.vcf", | ||
callback = function() | ||
vim.bo.filetype = 'vcf' | ||
end | ||
}) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,12 @@ | ||
-------------------------------------------------------------------------------- | ||
-- TODO | ||
-------------------------------------------------------------------------------- | ||
-- light theme | ||
-- hot reload colors | ||
-- breaks statusline? | ||
-- filetype autocmds | ||
-- nvim-lsp | ||
-- individual LSPs: js, tex | ||
-- key mapping updates | ||
-- set root_dir = lspconfig.util.root_pattern('.git') as global default for lsps | ||
|
||
-------------------------------------------------------------------------------- | ||
-- bootstrap lazy.nvim | ||
-------------------------------------------------------------------------------- | ||
|
||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | ||
if not vim.loop.fs_stat(lazypath) then | ||
vim.fn.system({ | ||
"git", | ||
"clone", | ||
"--filter=blob:none", | ||
"https://github.com/folke/lazy.nvim.git", | ||
"--branch=stable", | ||
lazypath, | ||
}) | ||
local load = function(mod) | ||
package.loaded[mod] = nil | ||
require(mod) | ||
end | ||
vim.opt.rtp:prepend(lazypath) | ||
|
||
-------------------------------------------------------------------------------- | ||
-- utilities | ||
-------------------------------------------------------------------------------- | ||
-- https://oroques.dev/notes/neovim-init | ||
|
||
require("load_plugins") | ||
|
||
require("lsp") | ||
require("options") | ||
require("mappings") | ||
require("theme") | ||
require("utils") | ||
require("treesitter") | ||
load("user.settings") | ||
load("user.commands") | ||
load("user.mappings") | ||
require("user.plugins") | ||
|
||
-------------------------------------------------------------------------------- | ||
-- TeX ftplugin? | ||
-------------------------------------------------------------------------------- | ||
-- TODO: | ||
-- compile shortcut | ||
-- au FileType tex let b:AutoPairs = {'(':')', '[':']', '{':'}', '"':'"', '"""':'"""'} | ||
-- let g:surround_{char2nr('c')} = "\\\1command\1{\r}" | ||
-- aucmd to re-enable syntax highlighting | ||
-- must be after plugin config | ||
pcall(vim.cmd.colorscheme, "tokyonight") |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.