diff --git a/.config/nvim/lua/core/autocmd.lua b/.config/nvim/lua/core/autocmd.lua index 5b2469b..0ebc951 100644 --- a/.config/nvim/lua/core/autocmd.lua +++ b/.config/nvim/lua/core/autocmd.lua @@ -28,7 +28,7 @@ local aucmd_dict = { FileType = { { -- Set tabstop to 2 for Dart, Vue, JavaScript, TypeScript, and JSON files - pattern = "html,dart,vue,javascript,typescript,json,markdown,css,sass", + pattern = "html,dart,vue,javascript,typescript,typescriptreact,json,markdown,css,sass", callback = function() vim.opt_local.tabstop = 2 vim.opt_local.softtabstop = 2 diff --git a/.config/nvim/lua/plugins/csvview.lua b/.config/nvim/lua/plugins/csvview.lua new file mode 100644 index 0000000..f3f25f8 --- /dev/null +++ b/.config/nvim/lua/plugins/csvview.lua @@ -0,0 +1,6 @@ +return { + 'hat0uma/csvview.nvim', + config = function() + require('csvview').setup() + end +} diff --git a/.config/nvim/lua/plugins/lspconfig.lua b/.config/nvim/lua/plugins/lspconfig.lua index c221bbc..0cab6e9 100644 --- a/.config/nvim/lua/plugins/lspconfig.lua +++ b/.config/nvim/lua/plugins/lspconfig.lua @@ -168,7 +168,7 @@ return { { name = "@vue/typescript-plugin", location = base_path .. "/@vue/typescript-plugin", - languages = { "javascript", "typescript", "vue" }, + languages = { "javascript", "typescript", "vue", "react" }, }, }, }, @@ -176,6 +176,7 @@ return { "javascript", "typescript", "vue", + "typescriptreact", }, commands = { OrganizeImports = { diff --git a/.config/nvim/lua/plugins/nvim-cmp.lua b/.config/nvim/lua/plugins/nvim-cmp.lua index 68cc64c..3086111 100644 --- a/.config/nvim/lua/plugins/nvim-cmp.lua +++ b/.config/nvim/lua/plugins/nvim-cmp.lua @@ -28,6 +28,8 @@ return { "hrsh7th/cmp-buffer", "hrsh7th/cmp-path", "hrsh7th/cmp-nvim-lsp-signature-help", + + "Snikimonkd/cmp-go-pkgs", }, config = function() local cmp = require("cmp") @@ -68,11 +70,21 @@ return { { name = "buffer" }, { name = "path" }, { name = "vim-dadbod-completion" }, + { name = "go_pkgs" }, }, + matching = { + disallow_fullfuzzy_matching = false, + disallow_partial_fuzzy_matching = false, + disallow_fuzzy_matching = false, + disallow_partial_matching = false, + disallow_symbol_nonprefix_matching = false, + disallow_prefix_unmatching = false, + }, formatting = { expandable_indicator = true, fields = { "abbr", "kind", "menu" }, format = lspkind.cmp_format({ + with_text = true, mode = "symbol_text", menu = { nvim_lua = "[API]", @@ -81,6 +93,7 @@ return { vim_dadbod_completion = "[DBUI]", path = "[PATH]", buffer = "[BUFF]", + go_pkgs = "[PKGS]", }, }), }, diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index a2ca0ef..02e4cf1 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -114,5 +114,7 @@ if [ -f "$HOME/.cargo/env" ]; then . "$HOME/.cargo/env" fi +export PATH=~/.config/composer/vendor/bin:$PATH + # Speed debugging # zprof