feat: Sync work windows
This commit is contained in:
@@ -31,10 +31,12 @@
|
||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "b8221e42cf7287c4dcde81f232f58d7b947c210d" },
|
||||
"overseer.nvim": { "branch": "master", "commit": "fe7b2f9ba263e150ab36474dfc810217b8cf7400" },
|
||||
"peek.nvim": { "branch": "master", "commit": "5820d937d5414baea5f586dc2a3d912a74636e5b" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||
"render-markdown.nvim": { "branch": "main", "commit": "9ab9dade85d8c7d411cc89b592028da3d1b7955a" },
|
||||
"rust.vim": { "branch": "master", "commit": "889b9a7515db477f4cb6808bef1769e53493c578" },
|
||||
"rustaceanvim": { "branch": "master", "commit": "e9c5aaba16fead831379d5f44617547a90b913c7" },
|
||||
"sniprun": { "branch": "master", "commit": "94ca2a7ff33f9dbe9bef093a2efb2aa12ad64aeb" },
|
||||
"sonarlint.nvim": { "branch": "main", "commit": "6a3f95e0b034ce601d7a970ce4136d6a3ba7a685" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
local M = {}
|
||||
|
||||
M.base46 = {
|
||||
theme = "everforest",
|
||||
theme = "starlight",
|
||||
|
||||
-- hl_override = {
|
||||
-- Comment = { italic = true },
|
||||
@@ -24,6 +24,7 @@ M.base46 = {
|
||||
M.mason = {
|
||||
pkgs = {
|
||||
"typescript-language-server",
|
||||
"nilaway",
|
||||
"eslint-lsp",
|
||||
"lua-language-server",
|
||||
"html-lsp",
|
||||
@@ -44,7 +45,12 @@ M.mason = {
|
||||
"clangd",
|
||||
"tilt",
|
||||
"cpptools",
|
||||
"cucumber-language-server",
|
||||
"vacuum",
|
||||
"deno",
|
||||
"api-linter",
|
||||
"buf",
|
||||
"graphql-language-service-cli",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,9 @@ local options = {
|
||||
tsx = { "prettier" },
|
||||
js = { "prettier" },
|
||||
jsx = { "prettier" },
|
||||
typescript = { "prettier" },
|
||||
proto = { "buf" },
|
||||
graphql = { "prettier" },
|
||||
},
|
||||
|
||||
format_on_save = {
|
||||
|
||||
@@ -6,7 +6,12 @@ local lspconfig_util = require("lspconfig.util")
|
||||
local root_pattern = lspconfig_util.root_pattern
|
||||
|
||||
local servers = {
|
||||
{ name = "buf_ls" },
|
||||
{ name = "html" },
|
||||
{ name = "cucumber-language-server" },
|
||||
{ name = "nilaway", config = { filetypes = { "go" } } },
|
||||
{ name = "api-linter" },
|
||||
{ name = "graphql" },
|
||||
{ name = "vacuum", config = { filetypes = { "api.yaml" } } },
|
||||
{ name = "tilt_ls", config = { filetypes = { "starlark" } } },
|
||||
{ name = "cssls" },
|
||||
|
||||
@@ -59,3 +59,5 @@ map("n", "<leader>ghd", function()
|
||||
vim.cmd("split")
|
||||
require("telescope.builtin").lsp_definitions()
|
||||
end, { desc = "Go to LSP definition in a new split" })
|
||||
|
||||
vim.cmd(":tnoremap <Esc> <C-\\><C-n>")
|
||||
|
||||
@@ -11,4 +11,19 @@ vim.filetype.add({
|
||||
["Tiltfile"] = "starlark",
|
||||
["api.yaml"] = "api.yaml",
|
||||
},
|
||||
pattern = {
|
||||
[".*%.tilt"] = "starlark",
|
||||
},
|
||||
})
|
||||
|
||||
-- Reload file if changed on disk
|
||||
vim.o.autoread = true
|
||||
-- Check for file changes automatically on common events
|
||||
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHoldI" }, {
|
||||
command = "checktime",
|
||||
})
|
||||
vim.api.nvim_create_autocmd("FileChangedShellPost", {
|
||||
callback = function()
|
||||
vim.notify("File changed on disk. Buffer reloaded.", vim.log.levels.INFO)
|
||||
end,
|
||||
})
|
||||
|
||||
@@ -4,11 +4,34 @@ return {
|
||||
event = "BufWritePre", -- uncomment for format on save
|
||||
opts = require("configs.conform"),
|
||||
},
|
||||
{
|
||||
"toppair/peek.nvim",
|
||||
event = { "VeryLazy" },
|
||||
build = "deno task --quiet build:fast",
|
||||
config = function()
|
||||
require("peek").setup()
|
||||
vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {})
|
||||
vim.api.nvim_create_user_command("PeekClose", require("peek").close, {})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"michaelb/sniprun",
|
||||
branch = "master",
|
||||
lazy = false,
|
||||
|
||||
build = "sh install.sh",
|
||||
-- do 'sh install.sh 1' if you want to force compile locally
|
||||
-- (instead of fetching a binary from the github release). Requires Rust >= 1.65
|
||||
|
||||
config = function()
|
||||
require("sniprun").setup({
|
||||
-- your options
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-mini/mini.nvim" }, -- if you use the mini.nvim suite
|
||||
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.icons' }, -- if you use standalone mini plugins
|
||||
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-mini/mini.nvim" },
|
||||
---@module 'render-markdown'
|
||||
---@type render.md.UserConfig
|
||||
opts = {},
|
||||
|
||||
Reference in New Issue
Block a user