aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2023-04-04 12:23:01 +0300
committerValentin Popov <valentin@popov.link>2023-04-04 12:28:22 +0300
commit7f709a3edee9870728fdf1ef99e11158410ca348 (patch)
tree8e9e0193f19d740b56fc14f92219815c4d5b226d /lua
parent07523f09bf476d5e48b8577530acd7282c7b8847 (diff)
downloadnvim-config-7f709a3edee9870728fdf1ef99e11158410ca348.tar.xz
nvim-config-7f709a3edee9870728fdf1ef99e11158410ca348.zip
Подключил форматирование для JS/TS
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 12eb6bc..2e5eb51 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -88,7 +88,7 @@ return require('packer').startup(function(use)
config = function()
require('indent_blankline').setup {
show_end_of_line = true,
- space_char_blankline = " ",
+ space_char_blankline = ' ',
}
end,
}
@@ -96,6 +96,18 @@ return require('packer').startup(function(use)
-- Линтер для файлов
use 'dense-analysis/ale'
+ -- Диагностика, отладка и форматирование кода
+ use {
+ 'jose-elias-alvarez/null-ls.nvim',
+ config = function()
+ require('null-ls').setup({
+ sources = {
+ require('null-ls').builtins.formatting.prettier,
+ },
+ })
+ end,
+ }
+
-- Структура классов и функций файла
use 'majutsushi/tagbar'
end)