diff --git a/init.lua b/init.lua index 4094d6e..fc654ae 100644 --- a/init.lua +++ b/init.lua @@ -174,6 +174,13 @@ if vim.g.started_by_firenvim == true then --}) end +-- Neogen Configuration +require('neogen').setup { + enabled = true, --if you want to disable Neogen + input_after_comment = true, -- (default: true) automatic jump (with insert mode) on inserted annotation + -- jump_map = "" -- (DROPPED SUPPORT, see [here](#cycle-between-annotations) !) The keymap in order to jump in the annotation fields (in insert mode) +} + -- LSP Configuration local lsp_zero = require('lsp-zero') -- https://lsp-zero.netlify.app/v3.x/language-server-configuration.html#default-keybindings @@ -190,7 +197,13 @@ lspconfig.bashls.setup({}) lspconfig.clangd.setup({}) lspconfig.jdtls.setup({}) lspconfig.eslint.setup({}) -lspconfig.ts_ls.setup({}) +lspconfig.ts_ls.setup({ + settings = { + implicitProjectConfiguration = { + checkJs = true + }, + } +}) lspconfig.jedi_language_server.setup({}) lspconfig.nixd.setup({}) lspconfig.nginx_language_server.setup({}) @@ -244,6 +257,10 @@ lspconfig.cssls.setup { lspconfig.jsonls.setup { capabilities = capabilities, } + +-- LSP Inline diagnostics +require('tiny-inline-diagnostic').setup() +vim.diagnostic.config({ virtual_text = false }) -- Only if needed in your configuration, if you already have native LSP diagnostics local cmp = require('cmp') cmp.setup({ diff --git a/lua/plugins/neogen.lua b/lua/plugins/neogen.lua new file mode 100644 index 0000000..fcc8391 --- /dev/null +++ b/lua/plugins/neogen.lua @@ -0,0 +1,6 @@ +return { + "danymat/neogen", + config = true, + -- Uncomment next line if you want to follow only stable versions + -- version = "*" +} diff --git a/lua/plugins/tiny-inline-diagnostic.lua b/lua/plugins/tiny-inline-diagnostic.lua new file mode 100644 index 0000000..9db94c5 --- /dev/null +++ b/lua/plugins/tiny-inline-diagnostic.lua @@ -0,0 +1,5 @@ +return { + "rachartier/tiny-inline-diagnostic.nvim", + event = "VeryLazy", -- Or `LspAttach` + priority = 1000, -- needs to be loaded in first +} diff --git a/lua/plugins/xcodebuild.lua b/lua/plugins/xcodebuild.lua new file mode 100644 index 0000000..4151e82 --- /dev/null +++ b/lua/plugins/xcodebuild.lua @@ -0,0 +1,15 @@ +return { + "wojciech-kulik/xcodebuild.nvim", + dependencies = { + "nvim-telescope/telescope.nvim", + "MunifTanjim/nui.nvim", + "nvim-tree/nvim-tree.lua", -- (optional) to manage project files + "stevearc/oil.nvim", -- (optional) to manage project files + "nvim-treesitter/nvim-treesitter", -- (optional) for Quick tests support (required Swift parser) + }, + config = function() + require("xcodebuild").setup({ + -- put some options here or leave it empty to use default settings + }) + end, +}