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
|
||||
require("config.lazy")
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
|
|||
})
|
||||
|
||||
-- if cspell config found then disable buitlin spell check
|
||||
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
|
||||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile", }, {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
-- 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.config.json",
|
||||
"cpsell.config.yaml",
|
||||
".cpsell.config.yaml"
|
||||
".cpsell.config.yaml",
|
||||
}
|
||||
|
||||
for _, file in ipairs(cspell_files) do
|
||||
|
@ -38,5 +38,5 @@ vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
|
|||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
|
|
@ -11,12 +11,6 @@ vim.opt.timeoutlen = 200
|
|||
|
||||
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
|
||||
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_put({ "¯\\_(ツ)_/¯" }, "", false, true)
|
||||
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({
|
||||
-- "mfussenegger/nvim-lint",
|
||||
"folke/tokyonight.nvim",
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
-- snippets are wildly really annoying
|
||||
"L3MON4D3/LuaSnip",
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
|
|
|
@ -1,14 +1,4 @@
|
|||
return {
|
||||
require("util").setup_lang({ treesitter = { "nim", "nim_format_string" }, lsp = { "nim_langserver" } }),
|
||||
{ "alaviss/nim.nvim" },
|
||||
-- {
|
||||
-- "neovim/nvim-lspconfig",
|
||||
-- opts = {
|
||||
-- servers = {
|
||||
-- nim_langserver = {
|
||||
-- mason = false,
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- { "alaviss/nim.nvim" },
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
-- 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"
|
||||
|
||||
return {
|
||||
require("util").setup_lang({ treesitter = { "python", "toml" }, mason = { "ruff" } }),
|
||||
require("util").setup_lang({ treesitter = { "python", "toml" } }),
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
|
|
|
@ -73,3 +73,4 @@ css
|
|||
stylesheet
|
||||
href
|
||||
chainable
|
||||
doxorubicin
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue