From e8018c2f616d0db046403f7efcdb9d5f195e999d Mon Sep 17 00:00:00 2001 From: Rikuoh Date: Sat, 19 Aug 2023 22:38:20 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=80=E3=83=96=E3=83=AB=E3=82=AF=E3=82=A9?= =?UTF-8?q?=E3=83=BC=E3=83=88=E3=81=AE=E5=BB=83=E6=AD=A2=E3=81=A8=E3=82=AD?= =?UTF-8?q?=E3=83=BC=E3=83=9E=E3=83=83=E3=83=94=E3=83=B3=E3=82=B0=E3=81=AE?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 70 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/init.lua b/init.lua index 7f52671..64da3ad 100644 --- a/init.lua +++ b/init.lua @@ -274,9 +274,9 @@ options = { --telescope require('telescope').setup({ defaults = { - borderchars = { "─", "│", "─", "│", "┌", "┐", "┘", "└" }, + borderchars = { '─', '│', '─', '│', '┌', '┐', '┘', '└' }, color_devicons = true, - file_ignore_patterns = { 'node_modules', '.git', '.svg', '.npm', 'go', 'MEGA'}, + file_ignore_patterns = { 'node_modules', '.git', '.svg', '.npm', 'go' }, mappings = { i = { [''] = require('telescope.actions').close, @@ -325,12 +325,12 @@ local on_attach = function(client, bufnr) client.server_capabilities.documentFormattingProvider = false local set = vim.keymap.set set('n', 'K', 'lua vim.lsp.buf.hover()') - set('n', 'ls', 'lua vim.lsp.buf.signature_help()') - set('n', 'ln', 'lua vim.lsp.buf.rename()') - set('n', 'la', 'lua vim.lsp.buf.code_action()') - set('n', 'l[', 'lua vim.lsp.diagnostic.goto_prev()') - set('n', 'l]', 'lua vim.lsp.diagnostic.goto_next()') - set('n', 'lf', 'lua vim.lsp.buf.format {async = true}') + set('n', '1', 'lua vim.lsp.buf.signature_help()') + set('n', '2', 'lua vim.lsp.buf.rename()') + set('n', '3', 'lua vim.lsp.buf.code_action()') + set('n', '[', 'lua vim.lsp.diagnostic.goto_prev()') + set('n', ']', 'lua vim.lsp.diagnostic.goto_next()') + set('n', '4', 'lua vim.lsp.buf.format {async = true}') end vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with( vim.lsp.diagnostic.on_publish_diagnostics, { virtual_text = false }) @@ -365,60 +365,60 @@ map("n", "d", ":lua require'dapui'.eval()", { silent = true} ---DAP-UI -require("dapui").setup({ - icons = { expanded = "▾", collapsed = "▸", current_frame = "▸" }, +require('dapui').setup({ + icons = { expanded = '▾', collapsed = '▸', current_frame = '▸' }, mappings = { -- Use a table to apply multiple mappings - expand = { "", "<2-LeftMouse>" }, - open = "o", - remove = "d", - edit = "e", - repl = "r", - toggle = "t", + expand = { '', '<2-LeftMouse>' }, + open = 'o', + remove = 'd', + edit = 'e', + repl = 'r', + toggle = 't', }, - expand_lines = vim.fn.has("nvim-0.7") == 1, + expand_lines = vim.fn.has('nvim-0.7') == 1, layouts = { { elements = { -- Elements can be strings or table with id and size keys. - { id = "scopes", size = 0.25 }, - "breakpoints", - "stacks", - "watches", + { id = 'scopes', size = 0.25 }, + 'breakpoints', + 'stacks', + 'watches', }, size = 40, -- 40 columns - position = "left", + position = 'left', }, { elements = { - "repl", + 'repl', }, size = 0.25, -- 25% of total lines - position = "bottom", + position = 'bottom', }, }, controls = { -- Requires Neovim nightly (or 0.8 when released) enabled = true, -- Display controls in this element - element = "repl", + element = 'repl', icons = { - pause = "", - play = "", - step_into = "", - step_over = "", - step_out = "", - step_back = "", - run_last = "↻", - terminate = "□", + pause = '', + play = '', + step_into = '', + step_over = '', + step_out = '', + step_back = '', + run_last = '↻', + terminate = '□', }, }, floating = { max_height = nil, -- These can be integers or a float between 0 and 1. max_width = nil, -- Floats will be treated as percentage of your screen. - border = "single", -- Border style. Can be "single", "double" or "rounded" + border = 'single', -- Border style. Can be "single", "double" or "rounded" mappings = { - close = { "q", "" }, + close = { 'q', '' }, }, }, windows = { indent = 1 },