Skip to content

Commit 0ab8e71

Browse files
committed
autoformat
1 parent 989e881 commit 0ab8e71

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

init.lua

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ require('lazy').setup({
9797
},
9898
},
9999

100+
{ 'stevearc/conform.nvim', opts = {} },
101+
100102
{
101103
-- Autocompletion
102104
'hrsh7th/nvim-cmp',
@@ -114,7 +116,7 @@ require('lazy').setup({
114116
},
115117

116118
-- Useful plugin to show you pending keybinds.
117-
{ 'folke/which-key.nvim', opts = {} },
119+
{ 'folke/which-key.nvim', opts = {} },
118120
{
119121
-- Adds git related signs to the gutter, as well as utilities for managing changes
120122
'lewis6991/gitsigns.nvim',
@@ -187,7 +189,7 @@ require('lazy').setup({
187189
},
188190

189191
-- "gc" to comment visual regions/lines
190-
{ 'numToStr/Comment.nvim', opts = {} },
192+
{ 'numToStr/Comment.nvim', opts = {} },
191193

192194
-- Fuzzy Finder (files, lsp, etc)
193195
{
@@ -222,7 +224,7 @@ require('lazy').setup({
222224
-- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
223225
-- These are some example plugins that I've included in the kickstart repository.
224226
-- Uncomment any of the lines below to enable them.
225-
-- require 'kickstart.plugins.autoformat',
227+
require 'kickstart.plugins.autoformat',
226228
-- require 'kickstart.plugins.debug',
227229

228230
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
@@ -507,6 +509,13 @@ require('which-key').register {
507509
require('mason').setup()
508510
require('mason-lspconfig').setup()
509511

512+
-- Enable Formatters
513+
local mason = require 'mason';
514+
515+
mason.setup {
516+
ensure_installed = { "prettier" }
517+
}
518+
510519
-- Enable the following language servers
511520
-- Feel free to add/remove any LSPs that you want here. They will automatically be installed.
512521
--
@@ -516,7 +525,6 @@ require('mason-lspconfig').setup()
516525
-- If you want to override the default filetypes that your language server will attach to you can
517526
-- define the property 'filetypes' to the map in question.
518527
local servers = {
519-
-- clangd = {},
520528
-- gopls = {},
521529
pyright = {
522530
python = {
@@ -525,12 +533,12 @@ local servers = {
525533
}
526534
}
527535
},
528-
529536
clangd = {},
530537

531538
-- rust_analyzer = {},
532-
-- tsserver = {},
533-
-- html = { filetypes = { 'html', 'twig', 'hbs'} },
539+
tsserver = {},
540+
eslint = {},
541+
html = { filetypes = { 'html', 'twig', 'hbs' } },
534542

535543
lua_ls = {
536544
Lua = {

lazy-lock.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"LuaSnip": { "branch": "master", "commit": "2dbef19461198630b3d7c39f414d09fb07d1fdd2" },
44
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
55
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
6+
"conform.nvim": { "branch": "master", "commit": "192a6d2ddace343f1840a8f72efe2315bd392243" },
67
"fidget.nvim": { "branch": "main", "commit": "ad8873c16faa123fe3f9fd6539c41dfb0f97a9e9" },
78
"friendly-snippets": { "branch": "main", "commit": "b8fae73a479ae0a1c54f5c98fa687ae8a0addc53" },
89
"gitsigns.nvim": { "branch": "main", "commit": "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" },

0 commit comments

Comments
 (0)