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 lazy-lock.json
.DS_Store .DS_Store
**/packer_compiled.lua **/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.coding.mini-surround",
"lazyvim.plugins.extras.dap.core", "lazyvim.plugins.extras.dap.core",
"lazyvim.plugins.extras.editor.aerial", "lazyvim.plugins.extras.editor.aerial",
"lazyvim.plugins.extras.editor.aerial",
"lazyvim.plugins.extras.editor.harpoon2", "lazyvim.plugins.extras.editor.harpoon2",
"lazyvim.plugins.extras.editor.navic", "lazyvim.plugins.extras.editor.navic",
"lazyvim.plugins.extras.formatting.prettier", "lazyvim.plugins.extras.formatting.prettier",
@ -10,15 +11,14 @@
"lazyvim.plugins.extras.lang.elixir", "lazyvim.plugins.extras.lang.elixir",
"lazyvim.plugins.extras.lang.go", "lazyvim.plugins.extras.lang.go",
"lazyvim.plugins.extras.lang.java", "lazyvim.plugins.extras.lang.java",
"lazyvim.plugins.extras.lang.nix",
"lazyvim.plugins.extras.lang.omnisharp", "lazyvim.plugins.extras.lang.omnisharp",
"lazyvim.plugins.extras.lang.rust", "lazyvim.plugins.extras.lang.rust",
"lazyvim.plugins.extras.lang.tailwind", "lazyvim.plugins.extras.lang.tailwind",
"lazyvim.plugins.extras.lang.typescript", "lazyvim.plugins.extras.lang.typescript"
"lazyvim.plugins.extras.editor.aerial"
], ],
"news": { "news": {
"NEWS.md": "6077" "NEWS.md": "6077"
}, },
"version": 6 "version": 6
} }

View File

@ -16,16 +16,20 @@ local function map(mode, lhs, rhs, opts)
end end
end end
map( vim.keymap.set("n", "<C-d>", "<C-d>zz", { desc = "Center cursor after moving down half-page" })
"n", vim.keymap.set("n", "<C-u>", "<C-u>zz", { desc = "Center cursor after moving up half-page" })
"<C-u>",
"<Cmd>lua vim.cmd('normal! <C-u>'); MiniAnimate.execute_after('scroll', 'normal! zz')<CR>", -- map(
{ desc = "Centered Half Page Up", remap = true } -- "n",
) -- "<C-u>",
map( -- "<Cmd>lua vim.cmd('normal! <C-u>'); MiniAnimate.execute_after('scroll', 'normal! zz')<CR>",
"n", -- { desc = "Centered Half Page Up", remap = true }
"<C-d>", -- )
"<Cmd>lua vim.cmd('normal! <C-d>'); MiniAnimate.execute_after('scroll', 'normal! zz')<CR>", -- map(
{ desc = "Centered Half Page Down", remap = true } -- "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 }) 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 vim.o.conceallevel = 2
if vim.loader then
vim.loader.enable()
end
vim.filetype.add({ vim.filetype.add({
extension = { extension = {
mdx = "markdown", mdx = "markdown",
}, },
}) })
vim.g.editorconfig = true
vim.cmd([[ vim.cmd([[
filetype plugin on filetype plugin on
filetype indent off filetype indent off

View File

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

View File

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

View File

@ -6,7 +6,6 @@ return {
opts = { opts = {
-- -@type lspconfig.options -- -@type lspconfig.options
servers = { servers = {
-- pyright will be automatically installed with mason and loaded with lspconfig
nil_ls = { nil_ls = {
mason = false, mason = false,
settings = { settings = {
@ -20,8 +19,8 @@ return {
lua_ls = { lua_ls = {
mason = false, mason = false,
}, },
rust_analyzer = { -- rust_analyzer = {
mason = false, -- mason = false,
-- settings = { -- settings = {
-- ["rust-analyzer"] = { -- ["rust-analyzer"] = {
-- -- rustfmt = { -- -- rustfmt = {
@ -47,7 +46,7 @@ return {
-- }, -- },
-- }, -- },
-- }, -- },
}, -- },
tailwindcss = { tailwindcss = {
init_options = { init_options = {
userLanguages = { userLanguages = {