-
Notifications
You must be signed in to change notification settings - Fork 1
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
dc90f18
commit 28b3a6e
Showing
15 changed files
with
183 additions
and
99 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,7 @@ | ||
theme = "GruvboxDark" | ||
font-family = "FiraCode Nerd Font" | ||
font-size = 16 | ||
font-feature = -liga | ||
font-feature = -calt | ||
font-feature = -dlig | ||
selection-invert-fg-bg = true |
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
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,21 @@ | ||
-- triggers CursorHold event faster | ||
vim.opt.updatetime = 200 | ||
|
||
require("barbecue").setup({ | ||
create_autocmd = false, -- prevent barbecue from updating itself automatically | ||
}) | ||
|
||
vim.api.nvim_create_autocmd({ | ||
"WinScrolled", -- or WinResized on NVIM-v0.9 and higher | ||
"BufWinEnter", | ||
"CursorHold", | ||
"InsertLeave", | ||
|
||
-- include this if you have set `show_modified` to `true` | ||
"BufModifiedSet", | ||
}, { | ||
group = vim.api.nvim_create_augroup("barbecue.updater", {}), | ||
callback = function() | ||
require("barbecue.ui").update() | ||
end, | ||
}) |
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,18 @@ | ||
require("conform").setup({ | ||
formatters_by_ft = { | ||
lua = { "stylua" }, | ||
-- Conform will run multiple formatters sequentially | ||
python = { "isort", "black" }, | ||
-- You can customize some of the format options for the filetype (:help conform.format) | ||
rust = { "rustfmt", lsp_format = "fallback" }, | ||
javascript = { "prettierd", stop_after_first = false }, | ||
typescript = { "prettierd", stop_after_first = false }, | ||
typescriptreact = { "prettierd", stop_after_first = false }, | ||
javascriptreact = { "prettierd", stop_after_first = false }, | ||
}, | ||
format_on_save = { | ||
-- These options will be passed to conform.format() | ||
timeout_ms = 500, | ||
lsp_format = "fallback", | ||
}, | ||
}) |
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 @@ | ||
require("dapui").setup() |
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,33 +0,0 @@ | ||
-- local dap = require('dap') | ||
|
||
-- dap.adapters.chrome = { | ||
-- type = "executable", | ||
-- command = "node", | ||
-- args = {os.getenv("HOME") .. "/path/to/vscode-chrome-debug/out/src/chromeDebug.js"} -- TODO adjust | ||
-- } | ||
|
||
-- dap.configurations.javascriptreact = { -- change this to javascript if needed | ||
-- { | ||
-- type = "chrome", | ||
-- request = "attach", | ||
-- program = "${file}", | ||
-- cwd = vim.fn.getcwd(), | ||
-- sourceMaps = true, | ||
-- protocol = "inspector", | ||
-- port = 9222, | ||
-- webRoot = "${workspaceFolder}" | ||
-- } | ||
-- } | ||
|
||
-- dap.configurations.typescriptreact = { -- change to typescript if needed | ||
-- { | ||
-- type = "chrome", | ||
-- request = "attach", | ||
-- program = "${file}", | ||
-- cwd = vim.fn.getcwd(), | ||
-- sourceMaps = true, | ||
-- protocol = "inspector", | ||
-- port = 9222, | ||
-- webRoot = "${workspaceFolder}" | ||
-- } | ||
-- } | ||
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,10 +1,10 @@ | ||
local mark = require('harpoon.mark') | ||
local ui = require('harpoon.ui') | ||
|
||
vim.keymap.set('n', '<leader>a', mark.add_file) | ||
vim.keymap.set('n', '<C-e>', ui.toggle_quick_menu) | ||
-- vim.keymap.set('n', '<leader>a', mark.add_file) | ||
-- vim.keymap.set('n', '<C-e>', ui.toggle_quick_menu) | ||
|
||
vim.keymap.set('n', '<C-h>', function () ui.nav_file(1) end) | ||
vim.keymap.set('n', '<C-t>', function () ui.nav_file(2) end) | ||
vim.keymap.set('n', '<C-n>', function () ui.nav_file(3) end) | ||
vim.keymap.set('n', '<C-s>', function () ui.nav_file(4) end) | ||
-- vim.keymap.set('n', '<C-h>', function () ui.nav_file(1) end) | ||
-- vim.keymap.set('n', '<C-t>', function () ui.nav_file(2) end) | ||
-- vim.keymap.set('n', '<C-n>', function () ui.nav_file(3) end) | ||
-- vim.keymap.set('n', '<C-s>', function () ui.nav_file(4) end) |
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
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 +1,6 @@ | ||
require("llago") | ||
if vim.g.vscode then | ||
-- VSCode Neovim specific stuff | ||
else | ||
require("llago") | ||
end | ||
|
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,5 +1,6 @@ | ||
vim.api.nvim_create_autocmd('BufWritePre', { | ||
pattern = { '*.tsx', '*.ts', '*.jsx', '*.js' }, | ||
command = 'silent! EslintFixAll', | ||
group = vim.api.nvim_create_augroup('MyAutocmdsJavaScripFormatting', {}), | ||
vim.api.nvim_create_autocmd("BufWritePre", { | ||
pattern = "*", | ||
callback = function(args) | ||
require("conform").format({ bufnr = args.buf, lsp_fallback = true }) | ||
end, | ||
}) |
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
Oops, something went wrong.