Compare commits

..

10 Commits

Author SHA1 Message Date
Zynh Ludwig 5f6957f137 disable rust_analyzer 2024-07-29 21:42:09 -07:00
Zynh Ludwig 521a481e71 moving editorconfig to options 2024-07-22 01:47:32 -07:00
Zynh Ludwig 4388bdef04 loader is already part of lazy/core 2024-07-22 01:41:28 -07:00
Zynh Ludwig 3668419abd import parsers for nix 2024-07-22 01:39:25 -07:00
Zynh Ludwig b754c49669 ignore parsers.lua 2024-07-22 01:38:49 -07:00
Zynh Ludwig a627b96d61 don't load oxocarbon 2024-07-22 01:38:45 -07:00
Zynh Ludwig 57decb1037 no more animate 2024-07-22 00:39:40 -07:00
Zynh0722 46958142ff fixing init.lua 2024-07-09 03:32:31 -07:00
Zynh Ludwig 306d2b2361 doing my best here 2024-06-28 00:17:30 -07:00
Zynh Ludwig 3133e85b0b nix update 2024-06-27 22:27:23 -07:00
8 changed files with 56 additions and 51 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
lazy-lock.json
.DS_Store
**/packer_compiled.lua
parsers.lua

View File

@ -1 +0,0 @@
/nix/store/hqcbiwnv1298ak69qhdq58ppy47vja9c-home-manager-files/.config/nvim/init.lua

4
init.lua Normal file
View File

@ -0,0 +1,4 @@
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
local ok, mymod = pcall(require, "parsers")

View File

@ -3,6 +3,7 @@
"lazyvim.plugins.extras.coding.mini-surround",
"lazyvim.plugins.extras.dap.core",
"lazyvim.plugins.extras.editor.aerial",
"lazyvim.plugins.extras.editor.aerial",
"lazyvim.plugins.extras.editor.harpoon2",
"lazyvim.plugins.extras.editor.navic",
"lazyvim.plugins.extras.formatting.prettier",
@ -10,15 +11,14 @@
"lazyvim.plugins.extras.lang.elixir",
"lazyvim.plugins.extras.lang.go",
"lazyvim.plugins.extras.lang.java",
"lazyvim.plugins.extras.lang.nix",
"lazyvim.plugins.extras.lang.omnisharp",
"lazyvim.plugins.extras.lang.rust",
"lazyvim.plugins.extras.lang.tailwind",
"lazyvim.plugins.extras.lang.typescript",
"lazyvim.plugins.extras.editor.aerial"
"lazyvim.plugins.extras.lang.typescript"
],
"news": {
"NEWS.md": "6077"
},
"version": 6
}
}

View File

@ -16,16 +16,20 @@ local function map(mode, lhs, rhs, opts)
end
end
map(
"n",
"<C-u>",
"<Cmd>lua vim.cmd('normal! <C-u>'); MiniAnimate.execute_after('scroll', 'normal! zz')<CR>",
{ desc = "Centered Half Page Up", remap = true }
)
map(
"n",
"<C-d>",
"<Cmd>lua vim.cmd('normal! <C-d>'); MiniAnimate.execute_after('scroll', 'normal! zz')<CR>",
{ desc = "Centered Half Page Down", remap = true }
)
vim.keymap.set("n", "<C-d>", "<C-d>zz", { desc = "Center cursor after moving down half-page" })
vim.keymap.set("n", "<C-u>", "<C-u>zz", { desc = "Center cursor after moving up half-page" })
-- map(
-- "n",
-- "<C-u>",
-- "<Cmd>lua vim.cmd('normal! <C-u>'); MiniAnimate.execute_after('scroll', 'normal! zz')<CR>",
-- { desc = "Centered Half Page Up", remap = true }
-- )
-- map(
-- "n",
-- "<C-d>",
-- "<Cmd>lua vim.cmd('normal! <C-d>'); MiniAnimate.execute_after('scroll', 'normal! zz')<CR>",
-- { desc = "Centered Half Page Down", remap = true }
-- )
map("n", "<leader>u<Tab>", ":set list!<CR>", { desc = "Toggle list (Whitespace display)", remap = true })

View File

@ -4,16 +4,14 @@
vim.o.conceallevel = 2
if vim.loader then
vim.loader.enable()
end
vim.filetype.add({
extension = {
mdx = "markdown",
},
})
vim.g.editorconfig = true
vim.cmd([[
filetype plugin on
filetype indent off

View File

@ -15,7 +15,6 @@ return {
},
{
"nyoom-engineering/oxocarbon.nvim",
event = "VeryLazy",
},
-- Configure LazyVim to load rose-pine

View File

@ -3,6 +3,7 @@ return {
opts = {
formatters_by_ft = {
sql = { "sql_formatter" },
-- nix = { "nixpgs_fmt" },
},
},
}

View File

@ -6,7 +6,6 @@ return {
opts = {
-- -@type lspconfig.options
servers = {
-- pyright will be automatically installed with mason and loaded with lspconfig
nil_ls = {
mason = false,
settings = {
@ -20,34 +19,34 @@ return {
lua_ls = {
mason = false,
},
rust_analyzer = {
mason = false,
-- settings = {
-- ["rust-analyzer"] = {
-- -- rustfmt = {
-- -- overrideCommand = { "leptosfmt", "--stdin", "--rustfmt" },
-- -- },
-- imports = {
-- granularity = {
-- group = "module",
-- },
-- },
-- cargo = {
-- buildScripts = {
-- enable = false,
-- },
-- },
-- files = {
-- excludeDirs = {
-- "pe-template",
-- },
-- },
-- procMacro = {
-- enable = true,
-- },
-- },
-- },
},
-- rust_analyzer = {
-- mason = false,
-- settings = {
-- ["rust-analyzer"] = {
-- -- rustfmt = {
-- -- overrideCommand = { "leptosfmt", "--stdin", "--rustfmt" },
-- -- },
-- imports = {
-- granularity = {
-- group = "module",
-- },
-- },
-- cargo = {
-- buildScripts = {
-- enable = false,
-- },
-- },
-- files = {
-- excludeDirs = {
-- "pe-template",
-- },
-- },
-- procMacro = {
-- enable = true,
-- },
-- },
-- },
-- },
tailwindcss = {
init_options = {
userLanguages = {