2 Commits 1848fab1a6 ... 67e0740f56

Autor SHA1 Mensagem Data
  Danil Budanov 67e0740f56 add filetype .ASM 1 ano atrás
  Danil Budanov 4671850888 Tidy up 1 ano atrás
6 arquivos alterados com 92 adições e 64 exclusões
  1. 1 0
      ftdetect/asm.vim
  2. 5 2
      init.lua
  3. 19 0
      lua/gui.lua
  4. 0 0
      lua/key.lua
  5. 62 0
      lua/plug.lua
  6. 5 62
      lua/set.lua

+ 1 - 0
ftdetect/asm.vim

@@ -0,0 +1 @@
+au BufRead,BufNewFile *.ASM                setfiletype masm

+ 5 - 2
init.lua

@@ -1,4 +1,3 @@
-
 local plug, _ = pcall(require, 'plug')
 if not plug then
   print("Not plug")
@@ -9,5 +8,9 @@ if not set then
   print("Not set")
 end
 
-require('key')
+local plug, _ = pcall(require, 'gui')
+if not plug then
+  print("Not gui")
+end
 
+-- Hello

+ 19 - 0
lua/gui.lua

@@ -0,0 +1,19 @@
+-----------------------------------------------------------
+-- set Font
+-----------------------------------------------------------
+vim.api.nvim_create_autocmd({'UIEnter'}, {
+    callback = function(event)
+        local client = vim.api.nvim_get_chan_info(vim.v.event.chan).client
+        if client ~= nil and client.name == "Firenvim" then
+            vim.api.nvim_exec([[:set guifont=Nerd:h13]], false)
+            vim.api.nvim_exec([[:set syntax=c]], false)
+        end
+    end
+})
+vim.api.nvim_create_autocmd({'UILeave'}, {
+    callback = function(event)
+        local client = vim.api.nvim_get_chan_info(vim.v.event.chan).client
+        if client ~= nil and client.name == "Firenvim" then
+        end
+    end
+})

+ 0 - 0
lua/key.lua


+ 62 - 0
lua/plug.lua

@@ -6,5 +6,67 @@ require "paq" {
     "nvim-lualine/lualine.nvim", 
     { "nvim-tree/nvim-web-devicons", opt = true },
     {"akinsho/bufferline.nvim", version = "*", dependencies = "nvim-tree/nvim-web-devicons"},
+    {"glacambre/firenvim", run = function() vim.fn["firenvim#install"](0) end},
 }
 
+-----------------------------------------------------------
+-- set Plugins
+-----------------------------------------------------------
+-- lualine
+require('lualine').setup {
+  options = {
+    icons_enabled = true,
+    them = 'nord',
+    component_separators = { left = '', right = ''},
+    section_separators = { left = '', right = ''},
+    disabled_filetypes = {
+      statusline = {},
+      winbar = {},
+    },
+    ignore_focus = {},
+    always_divide_middle = true,
+    globalstatus = false,
+    refresh = {
+      statusline = 1000,
+      tabline = 1000,
+      winbar = 1000,
+    }
+  },
+  sections = {
+    lualine_a = {'mode'},
+    lualine_b = {'branch', 'diff', 'diagnostics'},
+    lualine_c = {'filename'},
+    lualine_x = {'encoding', 'fileformat', 'filetype'},
+    lualine_y = {'progress'},
+    lualine_z = {'location'}
+  },
+  inactive_sections = {
+    lualine_a = {},
+    lualine_b = {},
+    lualine_c = {'filename'},
+    lualine_x = {'location'},
+    lualine_y = {},
+    lualine_z = {}
+  },
+  tabline = {},
+  winbar = {},
+  inactive_winbar = {},
+  extensions = {}
+}
+
+-- bufferline
+local bufferline_use = false
+if bufferline_use then
+    local bufferline = require("bufferline")
+    bufferline.setup {}
+    local highlights = require("nord").bufferline.highlights({
+        italic = true,
+        bold = true,
+    })
+    require("bufferline").setup({
+        options = {
+            separator_style = "thin",
+        },
+        highlights = highlights,
+    })
+end

+ 5 - 62
lua/set.lua

@@ -32,8 +32,8 @@ vim.api.nvim_exec([[
 
 
 -- start Tab
-local TAB_W         = 4
-vim.opt.expandtab	= true
+local TAB_W         = 2
+vim.opt.expandtab	  = true
 vim.opt.shiftwidth	= TAB_W
 vim.opt.tabstop     = TAB_W
 vim.opt.softtabstop	= TAB_W
@@ -66,66 +66,6 @@ vim.api.nvim_exec([[
     set iminsert=0
     set imsearch=0
 ]], false)
-
-
------------------------------------------------------------
------------------------------------------------------------
-require('lualine').setup {
-  options = {
-    icons_enabled = true,
-    them = 'nord',
-    component_separators = { left = '', right = ''},
-    section_separators = { left = '', right = ''},
-    disabled_filetypes = {
-      statusline = {},
-      winbar = {},
-    },
-    ignore_focus = {},
-    always_divide_middle = true,
-    globalstatus = false,
-    refresh = {
-      statusline = 1000,
-      tabline = 1000,
-      winbar = 1000,
-    }
-  },
-  sections = {
-    lualine_a = {'mode'},
-    lualine_b = {'branch', 'diff', 'diagnostics'},
-    lualine_c = {'filename'},
-    lualine_x = {'encoding', 'fileformat', 'filetype'},
-    lualine_y = {'progress'},
-    lualine_z = {'location'}
-  },
-  inactive_sections = {
-    lualine_a = {},
-    lualine_b = {},
-    lualine_c = {'filename'},
-    lualine_x = {'location'},
-    lualine_y = {},
-    lualine_z = {}
-  },
-  tabline = {},
-  winbar = {},
-  inactive_winbar = {},
-  extensions = {}
-}
-
-local bufferline_use = false
-if bufferline_use then
-    local bufferline = require("bufferline")
-    bufferline.setup {}
-    local highlights = require("nord").bufferline.highlights({
-        italic = true,
-        bold = true,
-    })
-    require("bufferline").setup({
-        options = {
-            separator_style = "thin",
-        },
-        highlights = highlights,
-    })
-end
+vim.api.nvim_exec([[
+  xnoremap <leader>c <esc>:'<'>:w !trans -brief :ru<CR>
+]], false)