Skip to content

Commit eadd71a

Browse files
committed
personalized it a bit
1 parent 1b78057 commit eadd71a

File tree

4 files changed

+41
-10
lines changed

4 files changed

+41
-10
lines changed

init.lua

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,8 @@ require('lazy').setup({
607607
local ensure_installed = vim.tbl_keys(servers or {})
608608
vim.list_extend(ensure_installed, {
609609
'stylua', -- Used to format Lua code
610+
'tsserver',
611+
'lua_ls',
610612
})
611613
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
612614

@@ -657,7 +659,8 @@ require('lazy').setup({
657659
--
658660
-- You can use a sub-list to tell conform to run *until* a formatter
659661
-- is found.
660-
-- javascript = { { "prettierd", "prettier" } },
662+
javascript = { { 'prettierd', 'prettier' } },
663+
typescript = { { 'prettierd', 'prettier' } },
661664
},
662665
},
663666
},
@@ -666,6 +669,10 @@ require('lazy').setup({
666669
'hrsh7th/nvim-cmp',
667670
event = 'InsertEnter',
668671
dependencies = {
672+
'L3MON4D3/LuaSnip',
673+
'saadparwaiz1/cmp_luasnip',
674+
'hrsh7th/cmp-nvim-lsp',
675+
'hrsh7th/cmp-path',
669676
-- Snippet Engine & its associated nvim-cmp source
670677
{
671678
'L3MON4D3/LuaSnip',
@@ -835,7 +842,21 @@ require('lazy').setup({
835842
'nvim-treesitter/nvim-treesitter',
836843
build = ':TSUpdate',
837844
opts = {
838-
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc' },
845+
ensure_installed = {
846+
'bash',
847+
'c',
848+
'diff',
849+
'html',
850+
'javascript',
851+
'lua',
852+
'luadoc',
853+
'markdown',
854+
'tsx',
855+
'typescript',
856+
'vim',
857+
'vimdoc',
858+
'yaml',
859+
},
839860
-- Autoinstall languages that are not installed
840861
auto_install = true,
841862
highlight = {
@@ -874,18 +895,18 @@ require('lazy').setup({
874895
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
875896
--
876897
-- require 'kickstart.plugins.debug',
877-
-- require 'kickstart.plugins.indent_line',
878-
-- require 'kickstart.plugins.lint',
879-
-- require 'kickstart.plugins.autopairs',
880-
-- require 'kickstart.plugins.neo-tree',
898+
require 'kickstart.plugins.indent_line',
899+
require 'kickstart.plugins.lint',
900+
require 'kickstart.plugins.autopairs',
901+
require 'kickstart.plugins.neo-tree',
881902
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
882903

883904
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
884905
-- This is the easiest way to modularize your config.
885906
--
886907
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
887908
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
888-
-- { import = 'custom.plugins' },
909+
{ import = 'custom.plugins' },
889910
}, {
890911
ui = {
891912
-- If you are using a Nerd Font: set icons to an empty table which will use the

lua/custom/plugins/init.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22
-- I promise not to create any merge conflicts in this directory :)
33
--
44
-- See the kickstart.nvim README for more information
5-
return {}
5+
return {
6+
{
7+
'github/copilot.vim',
8+
event = 'VimEnter',
9+
config = function()
10+
vim.cmd 'Copilot setup'
11+
end,
12+
},
13+
}

lua/kickstart/plugins/indent_line.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
return {
22
{ -- Add indentation guides even on blank lines
33
'lukas-reineke/indent-blankline.nvim',
4-
-- Enable `lukas-reineke/indent-blankline.nvim`
5-
-- See `:help ibl`
64
main = 'ibl',
75
opts = {},
86
},

lua/kickstart/plugins/lint.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ return {
77
local lint = require 'lint'
88
lint.linters_by_ft = {
99
markdown = { 'markdownlint' },
10+
javascript = { 'eslint' },
11+
javascriptreact = { 'eslint' },
12+
typescript = { 'eslint' },
13+
typescriptreact = { 'eslint' },
1014
}
1115

1216
-- To allow other plugins to add linters to require('lint').linters_by_ft,

0 commit comments

Comments
 (0)