diff --git a/init.lua b/init.lua index cfe1d74e..f9c00f9f 100644 --- a/init.lua +++ b/init.lua @@ -45,7 +45,7 @@ vim.g.maplocalleader = ' ' -- https://jaketrent.com/post/set-node-version-nvim/ -- need to npm install -g typescript-language-server local home_dir = "/home/justinprather" -local node_bin = "/home/justinprather/.nvm/versions/node/v18.4.0/bin" +local node_bin = "/.nvm/versions/node/v18.4.0/bin" vim.g.node_host_prog = home_dir .. node_bin .. "/node" vim.cmd("let $PATH = '" .. home_dir .. node_bin .. ":' . $PATH") @@ -92,7 +92,7 @@ require('lazy').setup({ -- Useful status updates for LSP -- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})` - { 'j-hui/fidget.nvim', opts = {} }, + { 'j-hui/fidget.nvim', opts = {} }, -- Additional lua configuration, makes nvim stuff amazing! 'folke/neodev.nvim', diff --git a/lua/custom/plugins/autoclose.lua b/lua/custom/plugins/autoclose.lua new file mode 100644 index 00000000..c4947864 --- /dev/null +++ b/lua/custom/plugins/autoclose.lua @@ -0,0 +1,10 @@ +-- You can add your own plugins here or in other files in this directory! +-- I promise not to create any merge conflicts in this directory :) +-- +-- See the kickstart.nvim README for more information +return { + 'm4xshen/autoclose.nvim', + config = function() + require('autoclose').setup() + end, +} diff --git a/lua/custom/plugins/cmp-npm.lua b/lua/custom/plugins/cmp-npm.lua new file mode 100644 index 00000000..5e4786cf --- /dev/null +++ b/lua/custom/plugins/cmp-npm.lua @@ -0,0 +1,12 @@ +return { + 'David-Kunz/cmp-npm', + config = function() + require('cmp-npm').setup() + local cmp = require('cmp') + local config = cmp.get_config() + table.insert(config.sources, { + name = 'npm', keyword_length = 4 + }) + cmp.setup(config) + end +} diff --git a/lua/custom/plugins/deferred-clipboard.lua b/lua/custom/plugins/deferred-clipboard.lua new file mode 100644 index 00000000..9125f53b --- /dev/null +++ b/lua/custom/plugins/deferred-clipboard.lua @@ -0,0 +1,9 @@ + +return { + 'EtiamNullam/deferred-clipboard.nvim', + config = function() + require('deferred-clipboard').setup { + fallback = 'unnamedplus', -- or your preferred setting for clipboard + } + end, +} diff --git a/lua/custom/plugins/nvim-ts-autotag.lua b/lua/custom/plugins/nvim-ts-autotag.lua new file mode 100644 index 00000000..ad420ae9 --- /dev/null +++ b/lua/custom/plugins/nvim-ts-autotag.lua @@ -0,0 +1,6 @@ +return { + 'windwp/nvim-ts-autotag', + config = function() + require('nvim-ts-autotag').setup() + end, +}