mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Add kotlin lang
This commit is contained in:
parent
97480dc5d2
commit
580336c662
1 changed files with 47 additions and 0 deletions
47
lua/lazyvim/plugins/extras/lang/kotlin.lua
Normal file
47
lua/lazyvim/plugins/extras/lang/kotlin.lua
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
return {
|
||||
-- Add linting, debug adapter, language server
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = {
|
||||
ensure_installed = { "ktlint", "kotlin-language-server", "kotlin-debug-adapter" },
|
||||
},
|
||||
},
|
||||
-- Add syntax highlighting
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = { "kotlin" },
|
||||
},
|
||||
},
|
||||
-- Add language server
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = "williamboman/mason.nvim",
|
||||
opts = {
|
||||
servers = {
|
||||
kotlin_language_server = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
-- Add linting
|
||||
{
|
||||
"mfussenegger/nvim-lint",
|
||||
dependencies = "williamboman/mason.nvim",
|
||||
opts = {
|
||||
linters_by_ft = { kotlin = { "ktlint" } },
|
||||
},
|
||||
},
|
||||
-- Add formatting
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
dependencies = "williamboman/mason.nvim",
|
||||
opts = {
|
||||
formatters_by_ft = { kotlin = { "ktlint" } },
|
||||
},
|
||||
},
|
||||
-- Add debugger
|
||||
{
|
||||
"mfussenegger/nvim-dap",
|
||||
dependencies = "williamboman/mason.nvim",
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue