nvim
This commit is contained in:
parent
5ef82625d1
commit
3d94779c7a
8 changed files with 16 additions and 22 deletions
|
@ -1,2 +1,3 @@
|
||||||
-- bootstrap lazy.nvim, LazyVim and your plugins
|
-- bootstrap lazy.nvim, LazyVim and your plugins
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
|
||||||
})
|
})
|
||||||
|
|
||||||
-- if cspell config found then disable buitlin spell check
|
-- if cspell config found then disable buitlin spell check
|
||||||
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
|
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile", }, {
|
||||||
pattern = "*",
|
pattern = "*",
|
||||||
callback = function()
|
callback = function()
|
||||||
-- this isn't exhuastive and won't work if config is contained in a package.json
|
-- this isn't exhuastive and won't work if config is contained in a package.json
|
||||||
|
@ -29,7 +29,7 @@ vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
|
||||||
".cSpell.json",
|
".cSpell.json",
|
||||||
".cspell.config.json",
|
".cspell.config.json",
|
||||||
"cpsell.config.yaml",
|
"cpsell.config.yaml",
|
||||||
".cpsell.config.yaml"
|
".cpsell.config.yaml",
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, file in ipairs(cspell_files) do
|
for _, file in ipairs(cspell_files) do
|
||||||
|
@ -38,5 +38,5 @@ vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end,
|
||||||
})
|
})
|
||||||
|
|
|
@ -11,12 +11,6 @@ vim.opt.timeoutlen = 200
|
||||||
|
|
||||||
vim.g.autoformat = false
|
vim.g.autoformat = false
|
||||||
|
|
||||||
-- make .roc files have the correct filetype
|
|
||||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
|
|
||||||
pattern = { "*.roc" },
|
|
||||||
command = "set filetype=roc",
|
|
||||||
})
|
|
||||||
|
|
||||||
-- https://github.com/ziglang/zig.vim/issues/51#issuecomment-1637180522
|
-- https://github.com/ziglang/zig.vim/issues/51#issuecomment-1637180522
|
||||||
vim.g.zig_fmt_autosave = 0
|
vim.g.zig_fmt_autosave = 0
|
||||||
|
|
||||||
|
@ -25,3 +19,10 @@ vim.lsp.set_log_level("off")
|
||||||
vim.api.nvim_create_user_command("Shrug", function()
|
vim.api.nvim_create_user_command("Shrug", function()
|
||||||
vim.api.nvim_put({ "¯\\_(ツ)_/¯" }, "", false, true)
|
vim.api.nvim_put({ "¯\\_(ツ)_/¯" }, "", false, true)
|
||||||
end, {})
|
end, {})
|
||||||
|
|
||||||
|
vim.api.nvim_create_user_command("Bootstrap", function()
|
||||||
|
vim.cmd [[:Lazy! sync]]
|
||||||
|
vim.cmd [[:TSUpdateSync]]
|
||||||
|
vim.cmd [[sleep 20]]
|
||||||
|
vim.cmd [[q]]
|
||||||
|
end, {})
|
||||||
|
|
|
@ -9,6 +9,7 @@ end
|
||||||
return disable({
|
return disable({
|
||||||
-- "mfussenegger/nvim-lint",
|
-- "mfussenegger/nvim-lint",
|
||||||
"folke/tokyonight.nvim",
|
"folke/tokyonight.nvim",
|
||||||
|
"MeanderingProgrammer/render-markdown.nvim",
|
||||||
-- snippets are wildly really annoying
|
-- snippets are wildly really annoying
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
|
|
@ -1,14 +1,4 @@
|
||||||
return {
|
return {
|
||||||
require("util").setup_lang({ treesitter = { "nim", "nim_format_string" }, lsp = { "nim_langserver" } }),
|
require("util").setup_lang({ treesitter = { "nim", "nim_format_string" }, lsp = { "nim_langserver" } }),
|
||||||
{ "alaviss/nim.nvim" },
|
-- { "alaviss/nim.nvim" },
|
||||||
-- {
|
|
||||||
-- "neovim/nvim-lspconfig",
|
|
||||||
-- opts = {
|
|
||||||
-- servers = {
|
|
||||||
-- nim_langserver = {
|
|
||||||
-- mason = false,
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
-- adapted from https://www.lazyvim.org/extras/lang/python#nvim-lspconfig
|
-- adapted from https://www.lazyvim.org/extras/lang/python#nvim-lspconfig
|
||||||
local lsp = vim.g.lazyvim_python_lsp or "pyright"
|
-- local lsp = vim.g.lazyvim_python_lsp or "pyright"
|
||||||
local ruff = vim.g.lazyvim_python_ruff or "ruff"
|
local ruff = vim.g.lazyvim_python_ruff or "ruff"
|
||||||
|
|
||||||
return {
|
return {
|
||||||
require("util").setup_lang({ treesitter = { "python", "toml" }, mason = { "ruff" } }),
|
require("util").setup_lang({ treesitter = { "python", "toml" } }),
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = {
|
||||||
|
|
|
@ -73,3 +73,4 @@ css
|
||||||
stylesheet
|
stylesheet
|
||||||
href
|
href
|
||||||
chainable
|
chainable
|
||||||
|
doxorubicin
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue