From 573eb27a185ee128265386ac38c6e64641840299 Mon Sep 17 00:00:00 2001 From: Ye Thi Ha Htwe <108426020+yethihahtwe@users.noreply.github.com> Date: Fri, 28 Feb 2025 02:54:06 +0000 Subject: [PATCH 1/6] updated to auto close quotes and brackets --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 5cac3d14601..a9cc98666eb 100644 --- a/init.lua +++ b/init.lua @@ -902,7 +902,7 @@ require('lazy').setup({ -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-night' + vim.cmd.colorscheme 'tokyonight-storm' end, }, @@ -984,7 +984,7 @@ require('lazy').setup({ -- require 'kickstart.plugins.debug', -- require 'kickstart.plugins.indent_line', -- require 'kickstart.plugins.lint', - -- require 'kickstart.plugins.autopairs', + require 'kickstart.plugins.autopairs', -- require 'kickstart.plugins.neo-tree', -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps From cf020ad0226723a5f93ddabd29a26a4eae4cbb87 Mon Sep 17 00:00:00 2001 From: Ye Thi Ha Htwe Date: Thu, 15 May 2025 01:10:57 +0700 Subject: [PATCH 2/6] updated lua --- init.lua | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index a9cc98666eb..d2ad9605b51 100644 --- a/init.lua +++ b/init.lua @@ -91,7 +91,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed and selected in the terminal -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- [[ Setting options ]] -- See `:help vim.opt` @@ -448,6 +448,17 @@ require('lazy').setup({ end, }, + -- Flutter tools + { + 'nvim-flutter/flutter-tools.nvim', + lazy = false, + dependencies = { + 'nvim-lua/plenary.nvim', + 'stevearc/dressing.nvim', -- optional for vim.ui.select + }, + config = true, + }, + -- LSP Plugins { -- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins @@ -685,6 +696,9 @@ require('lazy').setup({ }, }, }, + html = { + filetypes = { 'html', 'twig', 'hbs', 'handlebars', 'htmldjango', 'blade', 'jsx', 'tsx' }, + }, } -- Ensure the servers and tools above are installed @@ -703,6 +717,7 @@ require('lazy').setup({ local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { 'stylua', -- Used to format Lua code + 'html-lsp', }) require('mason-tool-installer').setup { ensure_installed = ensure_installed } @@ -902,7 +917,7 @@ require('lazy').setup({ -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-storm' + vim.cmd.colorscheme 'tokyonight-night' end, }, @@ -952,7 +967,7 @@ require('lazy').setup({ main = 'nvim-treesitter.configs', -- Sets main module to use for opts -- [[ Configure Treesitter ]] See `:help nvim-treesitter` opts = { - ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' }, + ensure_installed = { 'bash', 'c', 'diff', 'html', 'css', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' }, -- Autoinstall languages that are not installed auto_install = true, highlight = { @@ -960,7 +975,7 @@ require('lazy').setup({ -- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules. -- If you are experiencing weird indenting issues, add the language to -- the list of additional_vim_regex_highlighting and disabled languages for indent. - additional_vim_regex_highlighting = { 'ruby' }, + additional_vim_regex_highlighting = { 'ruby', 'html' }, }, indent = { enable = true, disable = { 'ruby' } }, }, From ea8714273198033dd249e998f1cfeb2b91845fff Mon Sep 17 00:00:00 2001 From: Ye Thi Ha Htwe Date: Thu, 15 May 2025 09:27:03 +0700 Subject: [PATCH 3/6] Checkout to Linux branch --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index a725a510af2..0677c1c809d 100644 --- a/init.lua +++ b/init.lua @@ -907,7 +907,7 @@ require('lazy').setup({ -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-storm' + vim.cmd.colorscheme 'tokyonight-night' end, }, From fe83148d1651b64e9a6bcf5ff3fed83b1e0559d8 Mon Sep 17 00:00:00 2001 From: Ye Thi Ha Htwe Date: Fri, 16 May 2025 13:58:26 +0700 Subject: [PATCH 4/6] Added php intelephense in the lsp servers --- init.lua | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 96 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 872ab34c743..f0c0a33f7a3 100644 --- a/init.lua +++ b/init.lua @@ -215,7 +215,7 @@ vim.api.nvim_create_autocmd('TextYankPost', { desc = 'Highlight when yanking (copying) text', group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }), callback = function() - vim.hl.on_yank() + vim.highlight.on_yank() end, }) @@ -482,8 +482,8 @@ require('lazy').setup({ -- Automatically install LSPs and related tools to stdpath for Neovim -- Mason must be loaded before its dependents so we need to set it up here. -- NOTE: `opts = {}` is the same as calling `require('mason').setup({})` - { 'mason-org/mason.nvim', opts = {} }, - 'mason-org/mason-lspconfig.nvim', + { 'mason-org/mason.nvim', version = '^1.0.0', opts = {} }, + { 'mason-org/mason-lspconfig.nvim', version = '^1.0.0' }, 'WhoIsSethDaniel/mason-tool-installer.nvim', -- Useful status updates for LSP. @@ -683,7 +683,98 @@ require('lazy').setup({ -- But for many setups, the LSP (`ts_ls`) will work just fine -- ts_ls = {}, -- - + intelephense = { + settings = { + intelephense = { + stubs = { + 'apache', + 'bcmath', + 'bz2', + 'calendar', + 'com_dotnet', + 'Core', + 'ctype', + 'curl', + 'date', + 'dba', + 'dom', + 'enchant', + 'exif', + 'FFI', + 'fileinfo', + 'filter', + 'fpm', + 'ftp', + 'gd', + 'gettext', + 'gmp', + 'hash', + 'iconv', + 'imap', + 'intl', + 'json', + 'ldap', + 'libxml', + 'mbstring', + 'meta', + 'mysqli', + 'oci8', + 'odbc', + 'openssl', + 'pcntl', + 'pcre', + 'PDO', + 'pdo_ibm', + 'pdo_mysql', + 'pdo_pgsql', + 'pdo_sqlite', + 'pgsql', + 'Phar', + 'posix', + 'pspell', + 'readline', + 'Reflection', + 'session', + 'shmop', + 'SimpleXML', + 'snmp', + 'soap', + 'sockets', + 'sodium', + 'SPL', + 'sqlite3', + 'standard', + 'superglobals', + 'sysvmsg', + 'sysvsem', + 'sysvshm', + 'tidy', + 'tokenizer', + 'xml', + 'xmlreader', + 'xmlrpc', + 'xmlwriter', + 'xsl', + 'Zend OPcache', + 'zip', + 'zlib', + }, + files = { + maxSize = 5000000, + }, + environment = { + includePaths = {}, + }, + format = { + enable = true, + }, + completion = { + importFunction = true, + importClass = true, + }, + }, + }, + }, lua_ls = { -- cmd = { ... }, -- filetypes = { ... }, @@ -716,6 +807,7 @@ require('lazy').setup({ local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { 'stylua', -- Used to format Lua code + 'intelephense', }) require('mason-tool-installer').setup { ensure_installed = ensure_installed } From bef4c086f091b5bb197f4f9001399490eee3d0a7 Mon Sep 17 00:00:00 2001 From: Ye Thi Ha Htwe Date: Wed, 21 Jan 2026 11:58:25 +0700 Subject: [PATCH 5/6] jan21-1158 --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index f0c0a33f7a3..b736b2db858 100644 --- a/init.lua +++ b/init.lua @@ -248,6 +248,7 @@ rtp:prepend(lazypath) require('lazy').setup({ -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). 'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically + 'github/copilot.vim', -- NOTE: Plugins can also be added by using a table, -- with the first argument being the link and the following @@ -436,6 +437,7 @@ require('lazy').setup({ vim.keymap.set('n', 'sr', builtin.resume, { desc = '[S]earch [R]esume' }) vim.keymap.set('n', 's.', builtin.oldfiles, { desc = '[S]earch Recent Files ("." for repeat)' }) vim.keymap.set('n', '', builtin.buffers, { desc = '[ ] Find existing buffers' }) + vim.keymap.set('n', 'cp', ':let @+=expand("%:p")') -- Slightly advanced example of overriding default behavior and theme vim.keymap.set('n', '/', function() From d506e0460dbe727453e8d373deb2c64c071025fe Mon Sep 17 00:00:00 2001 From: Ye Thi Ha Htwe Date: Fri, 30 Jan 2026 01:22:36 +0700 Subject: [PATCH 6/6] jan30-122 --- init.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/init.lua b/init.lua index 174bfa197d1..725edbfc733 100644 --- a/init.lua +++ b/init.lua @@ -176,6 +176,15 @@ vim.keymap.set('n', '', 'nohlsearch') -- Diagnostic keymaps vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) +-- Insert PHP doc block comment +vim.keymap.set('n', 'cd', function() + local line = vim.api.nvim_get_current_line() + if line:match '^%s*$' then -- if line is empty or whitespace + vim.api.nvim_put({ '/**', ' * ', ' */' }, 'l', true, true) + vim.api.nvim_command 'normal! k$' + end +end, { desc = '[C]omment [D]oc block' }) + -- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier -- for people to discover. Otherwise, you normally need to press , which -- is not what someone will guess without a bit more experience. @@ -1027,6 +1036,7 @@ require('lazy').setup({ -- - sd' - [S]urround [D]elete [']quotes -- - sr)' - [S]urround [R]eplace [)] ['] require('mini.surround').setup() + require('mini.comment').setup() -- Simple and easy statusline. -- You could remove this setup call if you don't like it, @@ -1047,6 +1057,17 @@ require('lazy').setup({ -- Check out: https://github.com/echasnovski/mini.nvim end, }, + { -- outline view of symbols in current file + 'hedyhli/outline.nvim', + config = function() + -- Example mapping to toggle outline + vim.keymap.set('n', 'o', 'Outline', { desc = 'Toggle Outline' }) + + require('outline').setup { + -- Your setup opts here (leave empty to use defaults) + } + end, + }, { -- Highlight, edit, and navigate code 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate',