diff --git a/dot_config/nvim/init.lua b/dot_config/nvim/init.lua index 24c1183..d46ca85 100644 --- a/dot_config/nvim/init.lua +++ b/dot_config/nvim/init.lua @@ -17,6 +17,7 @@ require('packer').startup(function(use) use {'hrsh7th/cmp-nvim-lua', requires={'hrsh7th/nvim-cmp'}} use 'hrsh7th/vim-vsnip' use {'hrsh7th/cmp-vsnip', requires={'hrsh7th/nvim-cmp', 'hrsh7th/vim-vsnip'}} + use {'onsails/lspkind.nvim'} use 'simrat39/symbols-outline.nvim' use { 'jose-elias-alvarez/null-ls.nvim', requires = { "nvim-lua/plenary.nvim" }} @@ -148,12 +149,11 @@ local on_attach = function(client, bufnr) buf_set_keymap('n', 'ca', 'lua vim.lsp.buf.code_action()', opts) buf_set_keymap('v', 'ca', 'lua vim.lsp.buf.range_code_action()', opts) buf_set_keymap('n', 'gr', 'lua vim.lsp.buf.references()', opts) - buf_set_keymap('n', 'e', 'lua vim.show_line_diagnostics()', opts) buf_set_keymap('n', '[d', 'lua vim.diagnostic.goto_prev()', opts) buf_set_keymap('n', ']d', 'lua vim.diagnostic.goto_next()', opts) buf_set_keymap('n', 'q', 'lua vim.diagnostic.setloclist()', opts) - buf_set_keymap("n", "f", "lua vim.lsp.buf.formatting()", opts) - buf_set_keymap("v", "f", "lua vim.lsp.buf.range_formatting()", opts) + buf_set_keymap("n", "gf", "lua vim.lsp.buf.formatting()", opts) + buf_set_keymap("v", "gf", "lua vim.lsp.buf.range_formatting()", opts) end -- Use a loop to conveniently both setup defined servers @@ -193,16 +193,9 @@ cmp.setup({ { name = 'path' }, }, formatting = { - format = function(entry, vim_item) - -- set a name for each source - vim_item.menu = ({ - buffer = "[Buffer]", - nvim_lsp = "[LSP]", - nvim_lua = "[Lua]", - path = "[Path]" - })[entry.source.name] - return vim_item - end, + format = require'lspkind'.cmp_format({ + -- mode = 'symbol', + }), }, window = { -- completion = cmp.config.window.bordered(), @@ -288,7 +281,9 @@ vim.api.nvim_set_keymap('n', '', [[NvimTreeFindFile]], { noremap = -- }}} NvimTree -- Telescope {{{ -vim.api.nvim_set_keymap('n', '', [[Telescope buffers]], { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'b', [[Telescope buffers]], { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'f', [[Telescope fd]], { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'T', [[Telescope]], { noremap = true, silent = true }) require("telescope").setup { defaults = { @@ -322,6 +317,8 @@ n = { } } +--[[ local telescope_ag = vim.api.nvim_create_augroup('Telescope') +nvim.nvim_create_autocmd('FileType', { pattern='TelescopePrompt', command = nvim.nvim_buf_set_keymap('n', '' ]] vim.cmd 'augroup Telescope' vim.cmd 'autocmd FileType TelescopePrompt inoremap Telescope buffers initial_mode=insert' vim.cmd 'autocmd FileType TelescopePrompt inoremap Telescope fd initial_mode=insert' @@ -343,9 +340,9 @@ require'nvim-treesitter.configs'.setup { enable = true, keymaps = { init_selection = "gnn", - node_incremental = "grn", + node_incremental = "+", scope_incremental = "grc", - node_decremental = "grm", + node_decremental = "-", }, }, indent = { diff --git a/dot_config/php/74/fpm/php-fpm.conf.tmpl b/dot_config/php/74/fpm/php-fpm.conf.tmpl index b4f51a2..64255fe 100644 --- a/dot_config/php/74/fpm/php-fpm.conf.tmpl +++ b/dot_config/php/74/fpm/php-fpm.conf.tmpl @@ -1,5 +1,5 @@ [global] -error_log = /proc/self/fd/2 +error_log = /tmp/php74.log daemonize = no [www] @@ -13,7 +13,7 @@ pm.max_spare_servers = 3 pm.status_path = /fpm-status -access.log = /proc/self/fd/2 +access.log = /tmp/php74.access.log access.format = "%R - %u %t \"%m %r\" %s %d" request_terminate_timeout = 0 @@ -22,5 +22,5 @@ catch_workers_output = yes php_admin_value[error_log] = /dev/stderr ;php_admin_flag[log_errors] = on ;php_admin_value[memory_limit] = 32M -php_admin_value[sendmail_path] = {{.chezmoi.homeDir}}/bin/pipemail -php_admin_value[sys_temp_dir] = {{.chezmoi.homeDir}}/jopixel/webserver/temp +php_admin_value[sendmail_path] = {{ .chezmoi.homeDir }}/bin/pipemail +php_admin_value[sys_temp_dir] = {{ .chezmoi.homeDir }}/jopixel/webserver/temp diff --git a/dot_config/php/74/php.ini.tmpl b/dot_config/php/74/php.ini.tmpl index 1c0200e..ca1fb36 100644 --- a/dot_config/php/74/php.ini.tmpl +++ b/dot_config/php/74/php.ini.tmpl @@ -890,7 +890,7 @@ default_socket_timeout = 60 extension=openssl.so extension=mysqlnd.so -zend_extension=opcache.so +#zend_extension=opcache.so extension=pdo.so extension=json.so extension=xml.so @@ -925,7 +925,7 @@ extension=zip.so extension=imagick.so zend_extension=xdebug.so -extension=mailparse.so +#extension=mailparse.so ;;;;;;;;;;;;;;;;;;; ; Module Settings ; @@ -1065,7 +1065,7 @@ smtp_port = 25 ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path -sendmail_path = {{.chezmoi.homeDir}}/bin/pipemail +sendmail_path = {{ .chezmoi.homeDir }}/bin/pipemail ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of @@ -1327,7 +1327,7 @@ session.save_handler = files ; where MODE is the octal representation of the mode. Note that this ; does not overwrite the process's umask. ; http://php.net/session.save-path -session.save_path = "{{.chezmoi.homeDir}}/jopixel/webserver/sessions" +session.save_path = "{{ .chezmoi.homeDir }}/jopixel/webserver/sessions" ; Whether to use strict session mode. ; Strict session mode does not accept an uninitialized session ID, and