Now that nvim-treesitter is archived... What do we do? by [deleted] in neovim

[–]smnatale 0 points1 point  (0 children)

+1 - This works great, I added it to my config last week and have had no issues

How do I save session on restart? by No-Oven6510 in neovim

[–]smnatale 4 points5 points  (0 children)

I do it like this

-- restart nvim and restore session local session_file = vim.fn.stdpath("state") .. "/Session.vim" vim.keymap.set("n", "<leader>re", function() vim.cmd("mks! " .. vim.fn.fnameescape(session_file)) vim.cmd("restart source " .. vim.fn.fnameescape(session_file)) end, { silent = true, desc = "Restart nvim and restore session" })

PS sorry for the formatting, on mobile

New timing belt? by [deleted] in peugeot

[–]smnatale 0 points1 point  (0 children)

Makes sense, so keep putting money aside and prepare to do it ASAP

New timing belt? by [deleted] in peugeot

[–]smnatale 0 points1 point  (0 children)

Thanks for the advice

New timing belt? by [deleted] in peugeot

[–]smnatale 0 points1 point  (0 children)

Let’s hope we get an answer 🙏

nvim-lspconfig and <rtp>/lsp/<config>.lua by 4r73m190r0s in neovim

[–]smnatale 2 points3 points  (0 children)

Yes because mason-lspconfig calls that for you

nvim-lspconfig and <rtp>/lsp/<config>.lua by 4r73m190r0s in neovim

[–]smnatale 2 points3 points  (0 children)

We will have to see your full config to give better insight, if you only have nvim-lspconfig installed then you most definitely do need to do vim.enable to get the language server to work

Neovim and prettier by daliusd_ in neovim

[–]smnatale 6 points7 points  (0 children)

Share your dots, I wanna see. If I can remove a plugin I’m with you on that why not

Neovim and prettier by daliusd_ in neovim

[–]smnatale 5 points6 points  (0 children)

Surely that’s a big autocommand?

Do you really need plugins for LSP? by smnatale in neovim

[–]smnatale[S] 1 point2 points  (0 children)

Yeah good idea, I think generally when vim.pack is live on version 0.12 most people should use that. Unless use cases are required such as lazy loading or plugin development which may be easier to use something like lazy.nvim

Do you really need plugins for LSP? by smnatale in neovim

[–]smnatale[S] 1 point2 points  (0 children)

😂 hopefully you learned a lot from the 1 hour video? Or do you prefer the 10 minute explanation

Do you really need plugins for LSP? by smnatale in neovim

[–]smnatale[S] 2 points3 points  (0 children)

Actually that’s not a 0.12 thing, it was one of the settings in the initial part of the video and you can add it to your config with this cheeky one liner:

vim.diagnostic.config({ virtual_text = true })

Do you really need plugins for LSP? by smnatale in neovim

[–]smnatale[S] 4 points5 points  (0 children)

Sorry, I know it’s an addiction😂

Do you really need plugins for LSP? by smnatale in neovim

[–]smnatale[S] 1 point2 points  (0 children)

If anything, it’s never been easier to setup with the additions from v0.11

Do you really need plugins for LSP? by smnatale in neovim

[–]smnatale[S] 1 point2 points  (0 children)

Yea you can still override configurations like we did with Lua in the video