Compare commits

...

4 Commits

Author SHA1 Message Date
ce3b31dbb0
fix(nvim): make nvim-java hover work
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m9s
2024-06-05 16:53:28 -05:00
248d3353ed
refactor(nvim): reorganize lsp setup 2024-06-05 16:05:07 -05:00
e732a14c92
Revert "refactor(nvim): set markdown & org textwidth to 0"
This reverts commit 27671e66558bf2bf53f40eb88c000b6a387813f4.
2024-06-05 11:44:06 -05:00
069066266e
feat(nix/hm/price): install pandoc 2024-06-05 11:43:40 -05:00
4 changed files with 54 additions and 28 deletions

View File

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ texliveTeTeX ];
programs.pandoc = {
enable = true;
};
}

View File

@ -1,6 +1,6 @@
vim.opt_local.tabstop = 2
vim.opt_local.shiftwidth = 2
vim.opt_local.textwidth = 0
vim.opt_local.textwidth = 120
vim.opt_local.wrap = false
vim.keymap.set("n", "<leader>fr", "<cmd>MarkdownPreview<CR>", {

View File

@ -1,4 +1,3 @@
vim.opt_local.shiftwidth = 2
vim.opt_local.textwidth = 0
vim.opt_local.modeline = true
vim.opt_local.wrap = false

View File

@ -145,10 +145,46 @@ return {
"neovim/nvim-lspconfig",
dependencies = {
"Decodetalkers/csharpls-extended-lsp.nvim",
{
"williamboman/mason-lspconfig.nvim",
dependencies = {
"neovim/nvim-lspconfig",
},
opts = {
automatic_installation = true,
ensure_installed = {
"tsserver",
},
},
},
{
"nvim-java/nvim-java",
config = true,
ft = { "java" },
config = function()
require("java").setup()
require("lspconfig").jdtls.setup({
capabilities = lsp_capabilities,
on_attach = on_attach,
init_options = {
extendedClientCapabilities = {
-- Have to disable this to make jdtls actually show hovers lol
clientHoverProvider = false,
},
},
settings = {
java = {
inlayHints = {
parameterNames = {
enabled = "all",
exclusions = { "this" },
},
},
},
},
})
end,
dependencies = {
"nvim-java/lua-async-await",
"nvim-java/nvim-java-refactor",
@ -156,21 +192,19 @@ return {
"nvim-java/nvim-java-test",
"nvim-java/nvim-java-dap",
"MunifTanjim/nui.nvim",
"neovim/nvim-lspconfig",
"mfussenegger/nvim-dap",
"williamboman/mason.nvim",
},
},
{
"williamboman/mason.nvim",
opts = {
max_concurrent_installers = 12,
registries = {
"github:nvim-java/mason-registry",
"github:mason-org/mason-registry",
},
},
},
},
},
{
"williamboman/mason.nvim",
cmd = {
"Mason",
"MasonLog",
@ -179,11 +213,7 @@ return {
"MasonUninstall",
"MasonUninstallAll",
},
opts = {
max_concurrent_installers = 12,
},
},
"simrat39/rust-tools.nvim",
"Hoffs/omnisharp-extended-lsp.nvim",
"b0o/schemastore.nvim",
{
@ -282,17 +312,8 @@ return {
},
event = { "BufReadPre", "BufNewFile" },
config = function()
local mason_lspconfig = require("mason-lspconfig")
local lspconfig = require("lspconfig")
-- NOTE: Keep this near top
mason_lspconfig.setup({
automatic_installation = true,
ensure_installed = {
"tsserver",
},
})
-- NOTE: ANSIBLE LSP
-- I use ansible a lot, define exceptions for servers that can use
-- server:setup & vim.cmd at the bottom here
@ -484,7 +505,6 @@ return {
"eslint",
"html",
"cssls",
"jdtls",
"kotlin_language_server",
"terraformls",
"tflint",